Can’t login to your Zencart admin? Here is the solution
Today we installed a new Zencart for our client at obtainingmoksha.com and we ran into a very annoying problem: we keeps getting redirected back to the admin login page without any error at all. Thinking it’s the usual cache error of Zencart, I cleared out the browser’s cache. That didn’t help. At this point, we suspect it might be a session error, so we use the Fix cache key module which save us many times before. The cache path is now updated but we still can’t login @[email protected]
At the same time, on the front page we also had this error (with Zencart debug turned on)
Fatal error: Call to a member function add_current_page() on a non-object in /path…./autoload_func.php on line 90
Fearing that we may have some corrupted files during the upload, we reuploaded every single file. Still no joy!
At this point, we think it might have something to do with the server’s session handling. A quick search for the fatal error above returned several interesting pages where people ran into the same problem. Lucky enough, we found THE SOLUTION for our case here. In short:
- session.auto_start is enabled (in the server’s config)
- One solution is to contact your host to have this turned off. However, if you are on Linux server, you can try to fix this yourself by
- Use a FTP client, go to your store’s root folder and see if a file named .htaccess is there (please note some FTP clients hide this file by default, check the manual of your FTP client).
- If the file is there, edit it; if not then create it. Inside this file please put:
php_value session.auto_start 0
Hope this tip helps you!
Well, i try to open it by typing /public_html/admin/.htaccess and click on GO button,
i found……. “This directory is empty”.
I can’t create .htaccess because cPanel says “it’s already exist”, but i can’t see .htaccess file.
So how to solve it? Please, help.
I can’t login to mywebsite.com/admin
it always says “You entered the wrong username or password”.
I’ve checked on SQL what my admin password is. And i’m sure i’ve entered correct username and password (with its case-sensitive)
I have set SSL to “false” (by default) on
/admin/includes/configure.php
and
/admin/configuration.php
Thanks SO much – this was driving me crazy after trying everything else, and you had the solution!