Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Aug 2005
    Posts
    169
    Plugin Contributions
    0

    red flag There was a security error when trying to login

    I have an issue with not being able to log in after creating an account ("There was a security error when trying to login"). I did a full 3.8 install and updated the necessary files to 3.8a.

    When I create an account, I can successfully place an order but I cannot log back in after logging off, even using the "forget password" feature.

    Where should I look?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: There was a security error when trying to login

    This issue is discussed in the following tutorial. It's related to customized files in your template:
    http://tutorials.zen-cart.com/index.php?article=312

    Related thread:
    http://www.zen-cart.com/forum/showthread.php?t=84197
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Aug 2005
    Posts
    169
    Plugin Contributions
    0

    Default Re: There was a security error when trying to login

    Looks like that was it. Thanks again! :)

  4. #4

    Default Re: There was a security error when trying to login

    Situation:

    I have just upgraded and now getting this error when trying to login from the customer screen "There was a security error when trying to login"

    Cause:

    Zen Cart™ v1.3.8 has an added security feature to prevent spoofed external logins. A "security token" field has been added to all login forms. This token must be current (not expired), and must be submitted with login username+password in order for logins to work properly.

    Remedy:

    If you have customized template "login" files, the new security features need to be merged into your customized template files.

    The following files are affected:
    - /includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php
    - /includes/templates/YOUR_TEMPLATE/templates/tpl_timeout_default.php

    And if you're encountering it in your Admin area, this file is affected as well:
    - /admin/login.php


    Additionally, if you have customized your /includes/functions/sessions.php file for some reason, you'll also need to merge the new changes for this core file into your customized version.
    I am getting this error message when trying to login to the store admin. I have tried logging in as a customer and all seems fine. I raised the issue as a support ticket with my web hosting but they have only reached the above point with me so far. Obviously, the first part of this relates to customers and I didn't customise those files anyway.

    However, even though I didn't customise this file
    And if you're encountering it in your Admin area, this file is affected as well:
    - /admin/login.php
    I am guessing this is what is causing the problem
    Trouble is, I can't find the file to look at it or amend it!

    Any help is appreciated and please remember when replying that I am stupid - therefore you need to explain things in simple terms, lol.

    Other useful info,,, my web host has changed my password so many times I have no idea what it is anymore!
    this was not a full install, but I upgraded through my web host cpanel (fantastico)

  5. #5
    Join Date
    Oct 2006
    Posts
    5,486
    Plugin Contributions
    12

    Default Re: There was a security error when trying to login

    I am getting this error message when trying to login to the store admin. I have tried logging in as a customer and all seems fine
    What do you mean? How can you login in as customer on store admin?

    Did you try to copy admin/login.php from the download package, and upload it to your server?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #6

    Default Re: There was a security error when trying to login

    Sorry, I wasn't very clear. I have been reading the forum and it seems a lot of people have a similar error but with regard to customer login. I have a customer account in my store and I logged into that and logged out and in again and didn't have any problems.

    However, I can't get into the admin area at all. I finally located the admin/login file and have downloaded it, but I can't for the life of me see what I need to change on it. I didn't customise any of these files in the first place and I don't want to make things worse by changing anything when I don't know what I'm doing.

    No, I didn't copy any file and upload, I just clicked the upgrade button in fantastico, then I reuploaded all the customised files

    I just need to over-ride this security thing
    TIA

  7. #7
    Join Date
    Oct 2006
    Posts
    5,486
    Plugin Contributions
    12

    Default Re: There was a security error when trying to login

    If you didnt customize the admin side, you can safely download the 1.3.8a package, then upload that admin/login.php file to your server, overwrite the current one.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #8
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: There was a security error when trying to login

    Quote Originally Posted by ScrapdragonDesigns View Post
    this was not a full install, but I upgraded through my web host cpanel (fantastico)
    Number one lesson ... don't do that !
    Fantastico's upgrader is not reliable and should not be used.
    A manual upgrade is *always* the recommended approach.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  9. #9
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: There was a security error when trying to login

    ok, bear with me cause I am stupid too :) I upgraded as well and am having the log in error. So...what you are saying is to use winmerge and put the files side by side ...my customized and the newest version of the zen file. Then i take the yellow highlighted new zen files and copy and paste them to the customized file. Then reupload??

    This stuff scares me to death :) thanks for taking the time to verify this for me :)

  10. #10
    Join Date
    Feb 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: There was a security error when trying to login

    Okay Dr Byte. This is going to sound insane, but I am hoping that you can help me. When I went to test my customer login it returned the security error mentioned above. After reading the posts I figured that the issue had to lie in tpl_login. The thin that is different about my situation is that I did a clean install of 1.3.8a. Not an upgrade. But because nothing else seemed to work I compared a new 1.3.8a tpl_login file with the one on my site using WinMerge. It turns out that the login file that was at my site was copyright 2006. The new one was 2007. I copied the new files over and it all works fine.

    Here's my problem. How did the old tpl_login get there? One other material fact. Up until I added Google Checkout the login worked fine.

    Any thoughts? Am I just insane?
    Brad

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. "There was a security error when trying to login" - v1.3.8
    By lucianman in forum Upgrading from 1.3.x to 1.3.9
    Replies: 134
    Last Post: 12 Nov 2011, 10:58 AM
  2. Lindas Login Box security error
    By HumDaddy in forum Addon Sideboxes
    Replies: 19
    Last Post: 22 Oct 2008, 04:43 AM
  3. Users cannot login after upgrade - "There was a security error when trying to login"
    By rob.chevalier in forum Upgrading from 1.3.x to 1.3.9
    Replies: 19
    Last Post: 9 Jun 2008, 08:04 PM
  4. 10002 Security error - Security header is not valid
    By Patrick Sheffield in forum PayPal Express Checkout support
    Replies: 7
    Last Post: 9 Jan 2008, 11:12 AM
  5. Replies: 3
    Last Post: 1 Jan 2008, 11:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •