Zen Cart FIX – Customer can’t log in. Error msg: There was a security error when trying to login.

Problem: Customer can’t log in
Error message: “There was a security error when trying to login.”

FIX: http://tutorials.zen-cart.com/index.php?article=312

ALL new templates need the following code added to their tpl_login_default.php file

  • line 50: <?php echo zen_draw_hidden_field(‘securityToken’, $_SESSION[‘securityToken’]); ?>
  • line 79: <?php echo zen_draw_hidden_field(‘securityToken’, $_SESSION[‘securityToken’]); ?>

(Original master file is here: root > includes > templates > template_default > templates > tpl_login_default.php)

3 thoughts on “Zen Cart FIX – Customer can’t log in. Error msg: There was a security error when trying to login.”

  1. With havin so much content do you ever run into any issues of
    plagorism or copyright infringement? My website has a lot of
    completely unique content I’ve either authored myself or
    outsourced but it looks like a lot of it is popping it up all over
    the web without my agreement. Do you know any techniques to help protect against content from being ripped off?
    I’d really appreciate it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top