I just installed Zen Cart, but I can't log into the Admin account. It just refreshes back to the login screen each time. I looked the FAQs, the Forum, and tried all the things here (except for looking at the server logs - I don't know where they are and it's not documented anywhere, so I submitted the question to support):
https://www.zen-cart.com/content.php...lling-zen-cart
I deleted the user entry from the database (with login info I manually entered during install), and inserted the Admin/admin username/password provided in another thread. I tried in both Chrome (v54.0.2840.99 m) and IE (v11.0.9600.18376). I tried the function renaming tip here:
https://www.zen-cart.com/showthread....log-into-admin
When that didn't work, I did a global renaming of all functions called "animate" in any of the files to "waiting_spinner." Still no go.
Here's where my situation may vary from others, although I can't figure out how it might come into play.
My (well, my friend's - I'm helping him with web development) main domain is for his remodeling business. I'll call it paintingremodeling.com. He also has a product he invented for scuba diving, and his site for that business is in a subdomain we'll call divingequipment.com. The files are located in the subdirectory paintingremodeling.com/diving. So although the install path for Zen Cart was divingequipment.com/zencart, the physical path was something like d:/users/paintingremodeling/diving/zencart/. But this messed things up. When installation was done and I tried to open the admin pages at divingequipment.com/zencart/admin/ (with "admin" renamed during install), it kept trying to refresh to pages in divingequipment.com/diving/zencart/. (the customer pages seemed to work fine - only the admin pages gave me errors) As you can see, it was putting the /diving/ directory in there with the subdomain, which is incorrect.
I troubleshooted through the various files to see where and why this was being done, and it seems somewhere the /diving/ directory was being extracted from the path (or perhaps the url "paintingremodeling.com/diving/" - which was never used anywhere), then rebuilding a url with /diving/ appended to divingequipment.com. In a couple configure.php files (admin/includes/configure.php and includes/configure.php), I saw this:
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
So in each of these files, I added the line:
define('DIR_WS_ADMIN', '/zencart/admin/');
(with "admin" changed to the directory renamed by the system during install)
This seemed to fix it - I was now able to get the login page. But it would never accept the correct username and password - and it would not send the password reset email if I clicked on the "forgot password" link. I click the Submit button, the spinny thing shows briefly, then it goes back to the same login page.
----------------------------------------------
- Zen Cart version 1.5.5b, New install - not upgrade
- No payment modules installed yet
- Manual install by uploading files and running install from there - one-click install from hosting company wasn't possible because I was installing to a subdomain of the main account, and their control center didn't give me the option to do that.
- PHP Version 5.4.9
- MySQL Version 5.0.10 - 20111026
- Logs: there are no entries in the logs during the days/times when I was having this problem.
- Server Type: ASP/ASP.NET 2008 Value
----------------------------------------------
Cheers!
John
Bookmarks