Forums / Installing on a Linux/Unix Server / There was a security error when trying to login

There was a security error when trying to login

Views: 2,199

Results 1 to 15 of 15
23 Aug 2011, 3:31 PM
#1
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

There was a security error when trying to login

I'm pulling my hair out. Just moved my site and am getting this stupid security error. I googled it and replaced my tpl_login_default.php and tpl_time_out_default.php files and even my sessions.php file and am still getting this error. I've played with my configure.php files to no avail. What is throwing this error? All my files have the 'security token' line in them.

23 Aug 2011, 3:49 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: There was a security error when trying to login

What ZenCart Version?
Is it a fresh install or an upgraded install?

Any add ons??

Server info??
http://www.zen-cart.com/forum/faq.php

Zen-Venom Get Bitten

23 Aug 2011, 3:50 PM
#3
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: There was a security error when trying to login

I just did some more troubleshooting, if I can login with a cleared browser (resetting cache and history) but get the security error if I login, logout, and login.

23 Aug 2011, 3:51 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: There was a security error when trying to login

Still need to know what you are using and have?

Zen-Venom Get Bitten

23 Aug 2011, 4:15 PM
#5
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: There was a security error when trying to login

I'm getting so frustrated I'm going to throw up.

So, here is the whole scoop. I apologize for not being as clear as I should have. Zen version 1.3.9h for both directories.

Current: /products/
Replacement: /newsite/

I'm renaming /products/ to be /oldsite/ and renaming the /newsite/ to /products/

The new site works fine before I move it, but not after. Any thoughts? I tried the 'Fix Cache Key' .php file but it didn't fix anything. I can only presume that I'm getting the security error because I'm trying to move the new install into the same directory an old install was located.

23 Aug 2011, 4:19 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: There was a security error when trying to login

renaming the /newsite/ to /products/
What edits after the rename are you making to the 2 configure.php files??

Zen-Venom Get Bitten

23 Aug 2011, 4:21 PM
#7
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: There was a security error when trying to login

I replace all instances of /newsite/ with /products/ in both configure.php files.

I failed to mention that they each have their own databases as well.

23 Aug 2011, 7:27 PM
#8
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: There was a security error when trying to login

I just moved (really just renamed the dir) of my new site again to a different directory (/newsite2/) and it works fine in the new directory as well (after updating only my configure.php and .htaccess files). Only when I rename my new site directory to that of the existing one (/products/) do I get the token/security errors. I'm trying to think of something I could try to get it working...

24 Aug 2011, 3:33 PM
#9
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: There was a security error when trying to login

Yeah, couldn't figure it out. Just have a redirect to the new directory.

24 Aug 2011, 6:20 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: There was a security error when trying to login

Zen-Venom Get Bitten

14 Sep 2011, 4:43 AM
#11
fastbrad avatar

fastbrad

New Zenner

Join Date:
Apr 2010
Posts:
3
Plugin Contributions:
0

Re: There was a security error when trying to login

I started getting this in the last week of August/first week of September--but I didn't make any edits/changes updates to anything. Users just, all of a sudden, couldn't log in. In fact I hadn't been in the admin for a while since I rarely get orders over the summer.

I'm on an older version: 1.3.8a

I get the "There was a security error when trying to login" any time I try to log in as a user... in IE 7, 8 and multiple versions of FF.

Server info:

Server OS: Linux 2.6.18-238.19.1.el5PAE
Database: MySQL 5.0.91-log
HTTP Server: Apache
PHP Version: 5.2.17 (Zend: 2.2.0)
PHP Memory Limit: 64M PHP
Safe Mode: Off
PHP File Uploads: On
Max Size: 8M
POST Max Size: 8M
Database Data Size: 980 kB

I suspect it was something GoDaddy did with their servers....

Brad

14 Sep 2011, 5:55 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: There was a security error when trying to login

The FIRST thing you need to do is upgrade to the latest version ASAP. And when doing so, do a thorough inspection and cleanup of any rogue content found: http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks
AFTER you've completed your upgrade if the problem persists, post back again.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Sep 2011, 2:39 PM
#13
sam_brew avatar

sam_brew

New Zenner

Join Date:
Aug 2011
Posts:
6
Plugin Contributions:
0

Re: There was a security error when trying to login

I am having the same issue. There was no issue prior to this past week/weekend, the site was working fine. Now, all of a sudden users are not able to use the passwords that are being sent to them via the Forgotten Password tool.
I am using the latest version of ZC:
Your version of Zen Cart™ appears to be current.
(You are presently using: v1.3.9h)

Here is a screen shot of the error message:

This appears after I receive this message in my browser:

19 Sep 2011, 6:30 PM
#14
sam_brew avatar

sam_brew

New Zenner

Join Date:
Aug 2011
Posts:
6
Plugin Contributions:
0

Re: There was a security error when trying to login

This appears to happen ONLY to people who use the Password Reset tool. If people know their password, it still works.

19 Sep 2011, 7:01 PM
#15
sam_brew avatar

sam_brew

New Zenner

Join Date:
Aug 2011
Posts:
6
Plugin Contributions:
0

Re: There was a security error when trying to login

sam_brew:

This appears to happen ONLY to people who use the Password Reset tool. If people know their password, it still works.

Nevermind, it still doesn't let you log in even if you use the same password that you used to register...
It seems to be related a Redirect that the site is doing when you click LOGIN on this page:
http://mytrainingstore.com/index.php?main_page=login