Admin Login Page Loops forever
I just moved to a new host. Copied all the files. Everything seems to be working fine. But, I cannot log in to the admin
I type in the correct admin username and password, but I just loop back to the login page.
Any thoughts?
I found a thread saying to add some code to the to the /includes/functions/sessions.php
Here's the link:
http://www.zen-cart.com/forum/showpo...8&postcount=29
I did it and it didn't work. Need some help quickl, please
Re: Admin Login Page Loops forever
Just noticed same thing happens on my cutomer log in page - they are unable to log in as well....
Re: Admin Login Page Loops forever
What version of Zen Cart?
What version of PHP?
Who is the new host?
What is the URL?
What steps did you follow to do your move? This FAQ outlines the recommended process: https://www.zen-cart.com/tutorials/i...hp?article=100
Re: Admin Login Page Loops forever
What version of Zen Cart?
1.3.0.2
What version of PHP?
php 5.2.5
Who is the new host?
midphase / an hosting
What is the URL?
touchplate/com/store
To move to new host - I downloaded all files, created a mysql dump, uploaded new files and imported new sql.
I also just used the fix cache program.
Also, I have tried to check and double check both config files. Alll looks ok.
Re: Admin Login Page Loops forever
Tried doing a fresh install and got same problem on a clean database...
This time I got this error:
Fatal error: Call to a member function Execute() on a non-object in /home/touchal4/public_html/store2/includes/functions/sessions.php on line 61
showed up at the bottom of the login page?
Re: Admin Login Page Loops forever
For what it is worth. Here is the info from the fix_cache_key.php output:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/touchal4/public_html/store/fix_cache_key.php:43) in /home/touchal4/public_html/store/includes/functions/sessions.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /home/touchal4/public_html/store/fix_cache_key.php:43) in /home/touchal4/public_html/store/includes/init_includes/init_templates.php on line 78
Cache Settings Synchronization Tool
Recommendations
Possible appropriate cache directory for your site is: /home/touchal4/public_html/store/cache
Actual Information
Read DIR_FS_SQL_CACHE from configure.php: /home/touchal4/public_html/store/cache
Found SESSION_WRITE_DIRECTORY in database: /home/touchpla/public_html/store/cache
Now synchronizing...
Database now contains the following SESSION_WRITE_DIRECTORY: /home/touchal4/public_html/store/cache
Finished.
Security
PLEASE DELETE THIS FILE FROM YOUR SERVER NOW!!
Removing this file (fix_cache_key.php) from your server protects you from would-be hackers/predators who might seek to compromise your server.
Fatal error: Call to a member function Execute() on a non-object in /home/touchal4/public_html/store/includes/functions/sessions.php on line 61
Re: Admin Login Page Loops forever
Quote:
Originally Posted by
ehdesign
What version of Zen Cart?
1.3.0.2
What version of PHP?
php 5.2.5
v1.3.0.2 is not compatible with PHP 5.
v1.3.7.1 or v1.3.8a or newer are compatible with PHP5.
I suggest you plan an upgrade sooner than later.
In the meantime, you might get some temporary relief by grabbing the updated /includes/functions/sessions.php from v1.3.8a to try on your server.
Re: Admin Login Page Loops forever
I'll do that, but I tried a fresh install of the newest version on still received the problem. Downloaded from zen site and installed. Still same problem.
Any ideas?
Re: Admin Login Page Loops forever
Sorry, I lied. Both the "old" and the new were versions 1.3...
I'll try grabbing the file and see if that helps.
Could you post a link to an upgrade how to?
Re: Admin Login Page Loops forever
brilliant.
You have indeed helped. I uploaded the sessions.php file and all is well.
I will begin an immediate upgrade plan. Thanks.
Tell me where to send the beer as a thanks!