Zen Cart Logo
Forums / Managing Customers and Orders / Customers Can't Login

Customers Can't Login

Views: 28,980

Results 21 to 40 of 55
03 Mar 2009, 20:59
#21
mistafootball33 avatar

mistafootball33

New Zenner

Join Date:
Jan 2009
Posts:
3
Plugin Contributions:
0

Customers Can't Login

I installed a fresh copy of zen cart 1.3.8 and im having the same issue. Customers cant log in after they leave the page, or want to log back in. I dont know what the issue is. I followed above steps, and still no luck.

The admin login works every time tho.

here is my config.php file on sever.

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://www.mellsdelicious.com'); define('HTTPS_SERVER', 'https:/'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/www.mellsdelicious.com/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', 'D:/WebRoot/Domains/mellsdelicious.com/wwwroot/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', '******'); define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', 'mells'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', 'D:/WebRoot/Domains/mellsdelicious.com/wwwroot/cache'); // EOF
04 Mar 2009, 04:06
#22
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customers Can't Login

This appears to be wrong:

define('HTTP_SERVER', 'http://www.mellsdelicious.com');
define('HTTPS_SERVER', 'https:/');

You need to check and see what your valid secure server is ...

This appears to be wrong:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/www.mellsdelicious.com/');

This should be:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

What settings do you have for the Configuration ... Sessions ...

Do you have any issues with the Admin when you login ... logout ... and try to login again?

Can you post, from the server, without your username and password, the file:
/admin/includes/configure.php

13 Mar 2009, 21:13
#23
inetmarketing avatar

inetmarketing

New Zenner

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

Re: Customers Can't Login

Hey,

I'm having the same problem here!

I'm running a new install with Version 1.3.8a

I tried the suggestion in the SESSIONS area, and it doesn't work for me.

I'm getting the error: There was a security error when trying to login.

I just found this article in the FAQ section-

"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

The exact changes needed may vary from release to release, but most likely you will need only add the following after every occurence of the password field (zen_draw_password_field function)

<?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>

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.

Link:
https://www.zen-cart.com/tutorials/index.php?article=312

I don't see a token on my login page! Arrg

Robert

13 Mar 2009, 21:49
#24
inetmarketing avatar

inetmarketing

New Zenner

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

Re: Customers Can't Login

Hey Update,

Token is in fact hidden! I was thinking of a Captcha Image.

I only had to add <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?> 2 times on my tpl_login_default.php file.

I didn't have a tpl_timeout_default.php file.

I refreshed my log in page, and retried to log in and it worked.:clap:

I hope this helps someone else!

Robert

28 Mar 2009, 04:06
#25
joefox avatar

joefox

New Zenner

Join Date:
Feb 2009
Posts:
71
Plugin Contributions:
0

Re: Customers Can't Login

inetmarketing:

Hey,

I'm having the same problem here!

I'm running a new install with Version 1.3.8a

I tried the suggestion in the SESSIONS area, and it doesn't work for me.

I'm getting the error: There was a security error when trying to login.

I just found this article in the FAQ section-

I don't see a token on my login page! Arrg

Robert

I just tried this and it didnt work...
Also, i found 1 of the files in that location, i cant find the section file listed that needs to be changed.

28 Mar 2009, 15:29
#26
inetmarketing avatar

inetmarketing

New Zenner

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

Re: Customers Can't Login

joefox:

I just tried this and it didnt work...
Also, i found 1 of the files in that location, i cant find the section file listed that needs to be changed.

Hey!

Are you using a template that you got from a template site?

Or are you referring to the Default template?

Also, did you find the tpl_login_default.php?

Robert

07 Apr 2009, 21:45
#27
gineta avatar

gineta

New Zenner

Join Date:
Mar 2009
Posts:
19
Plugin Contributions:
0

Re: Customers Can't Login

i use also the classic template and all this staff not work
only i get login the admin user

07 Apr 2009, 21:50
#28
gineta avatar

gineta

New Zenner

Join Date:
Mar 2009
Posts:
19
Plugin Contributions:
0

Re: Customers Can't Login

please any help

09 Jul 2009, 15:08
#29
greatbig47 avatar

greatbig47

New Zenner

Join Date:
Aug 2006
Posts:
32
Plugin Contributions:
0

Re: Customers Can't Login

Same problem here...

THe site is here: https://narcolepsynetwork.org/shop/
I'm using Zen Cart 1.3.8a

I'm using the default Template, where I made sure all of the

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>

Had..

<?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>

in the files...

  • tpl_login_default.php
  • tpl_timeout_default.php

:cry:

My boss sees the "Security Error" and freaks out thinking someone is trying to hack us...

PLease Help... ???

10 Jul 2009, 04:36
#30
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customers Can't Login

Your whole site is secure ... not sure why ... :unsure:

Currently you are Down for Maintenance so we really cannot test anything ...

10 Jul 2009, 05:23
#31
greatbig47 avatar

greatbig47

New Zenner

Join Date:
Aug 2006
Posts:
32
Plugin Contributions:
0

Re: Customers Can't Login

Paranoia...Not by me...

I opened it back up...

THANKS SO MUCH...I really need the help

10 Jul 2009, 15:26
#32
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customers Can't Login

Your site takes you to:
narcolepsynetwork.org

But if you mouse over your links you see they are set for:
https://www.narcolepsynetwork.org

This means your configure.php files are set for:
https://www.narcolepsynetwork.org

but you have rewrites or redirects forcing the change to:
narcolepsynetwork.org

This means you are configured wrong ...

You need to see what your secure certificate is ...

If that is set to:
narcolepsynetwork.org

then your two configure.php files need to use:
narcolepsynetwork.org

If your secure certificate is set to:
https://www.narcolepsynetwork.org

then your two configure.php files need to use:
https://www.narcolepsynetwork.org

All redirects or rewrites also need to use the correct usage of:
narcolepsynetwork.org
https://www.narcolepsynetwork.org

30 Jul 2009, 14:05
#33
tirsys avatar

tirsys

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: Customers Can't Login

Slightly different problem for me after SSL. I can login from admin but I cannot make changes for anything...

30 Jul 2009, 17:43
#34
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customers Can't Login

More details are really needed to know what to tell you ...

If your Zen Cart Admin was working, and now it has stopped ...

This sounds like you recently installed the Security Patch ...

If so, please re-download the patch and carefully install it again ...
http://www.zen-cart.com/forum/showthread.php?t=130161

Otherwise, has the Zen Cart Admin ever worked?

What changes have you made to the Zen Cart Admin?

Have you recently change the /admin directory? Since that change have you ever been able to login?

Check the two configure.php files, on the server, and see if there is something different about them on the URLs, Paths etc.

NOTE: these are different files

What errors are you getting when you try to go to your Zen Cart Admin? When you say you cannot make changes ... what happens if you attempt one?

30 Jul 2009, 21:14
#35
tirsys avatar

tirsys

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: Customers Can't Login

yes, I've recently installed the security patch uploading the files. No changes of admin dir. I login/logout without errors, I never get errors meanwhile I'm inside the admin. The problem is I can't update anything. For ex. if I get into configuration->Website Maintenance and set Down for Maintenance: ON/OFF nothing happens. After press 'update' I get from Firefox:

"Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

Are you sure you want to continue sending this information?"

YES

...and no changes. Still Down for Maintenance set to true as before. Same effect in the other sections...

Soonafter patch upgrade, I got the SSL cert, I didn't work a lot on zencart in that days and I don't know if the problem started because of SSL or patch upgrade.

31 Jul 2009, 01:08
#36
newmanz avatar

newmanz

New Zenner

Join Date:
Jul 2007
Posts:
21
Plugin Contributions:
0

Re: Customers Can't Login

Had same problem, i found that hackers had changed my store name to a whole lot of advertising garbage and web links

So all I did was change the store name back to what it should be and worked fine

So:
Enter your configuration - my store - store name

Check make sure it is correct, thank god itn was easy to fix, incredibly stressful

31 Jul 2009, 07:18
#37
tirsys avatar

tirsys

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: Customers Can't Login

I checked

Configuration -> My Store -> Store name

it's correct. Problem not fixed.

I'm going to have a look into DB if i found out some trash. But I don't think so becausa my store still has to start...

31 Jul 2009, 15:59
#38
tirsys avatar

tirsys

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: Customers Can't Login

may be I have to patch again? set again config.php?

...please don't tell me I have to reinstall everything... :cry:

03 Aug 2009, 15:38
#39
tirsys avatar

tirsys

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: Customers Can't Login

I temporary fixed deliting the patch files :clap:

07 Aug 2009, 17:29
#40
tirsys avatar

tirsys

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: Customers Can't Login

ok I've just installed a new fresh installation of ZC without patch at the moment. I've configured the SSL support to yes but I still have the problem I can't edit / update anything....