innocuous Posted October 29, 2012 Share Posted October 29, 2012 (edited) Hi, PS 1.5.2 Everything was working fine till morning. I asked hosting provider to enable mod_rewrite and disable magic_quotes as required. After that I cannot login to BO. I enter CORRECT admin email/password and it redirects me back to login page only. I have checked shop_url through phpmyadmin and tried with www.domain.com and also domain.com Nothing works. How do I fix this??? Edited October 31, 2012 by innocuous (see edit history) Link to comment Share on other sites More sharing options...
innocuous Posted October 30, 2012 Author Share Posted October 30, 2012 (edited) If I turn on display_errors in config file then the domain.com/admin page doesn't even open. It shows the following errors: Warning: base64_decode() has been disabled for security reasons in /home/lehkimeh/public_html/classes/Rijndael.php on line 36 Warning: base64_decode() has been disabled for security reasons in /home/lehkimeh/public_html/classes/Rijndael.php on line 71 Warning: Cannot modify header information - headers already sent by (output started at /home/lehkimeh/public_html/classes/Rijndael.php:36) in /home/lehkimeh/public_html/classes/Cookie.php on line 316 Warning: Cannot modify header information - headers already sent by (output started at /home/lehkimeh/public_html/classes/Rijndael.php:36) in /home/lehkimeh/public_html/classes/Tools.php on line 142 If I disable display_errors then page opens fine but unable to login to admin BO. It accepts user/pass but redirects back to login page Edited October 30, 2012 by innocuous (see edit history) Link to comment Share on other sites More sharing options...
Wandrille Posted October 30, 2012 Share Posted October 30, 2012 (edited) Your hosting provider block this function. Remove the base64_decode string from the disable_functions at php.ini* file Ask your hosting provider to remove the string above if you don't have an access to the php.ini* file or change your provider Edited October 30, 2012 by Wandrille (see edit history) Link to comment Share on other sites More sharing options...
innocuous Posted October 31, 2012 Author Share Posted October 31, 2012 Ok. Provider has removed the string. But I am still unable to login to BO. It keeps redirecting back to login page. Link to comment Share on other sites More sharing options...
innocuous Posted October 31, 2012 Author Share Posted October 31, 2012 Apparently its a token issue. PS just changed my token somehow and it logged in properly Link to comment Share on other sites More sharing options...
spirits999 Posted October 31, 2012 Share Posted October 31, 2012 Hello Innocuous, How did you get the token issue resolved? Link to comment Share on other sites More sharing options...
innocuous Posted October 31, 2012 Author Share Posted October 31, 2012 spirits999 it just happened on its own. But I am sure there is some settings in DB which you can use to reset it. Search in the forums or google it? Link to comment Share on other sites More sharing options...
spirits999 Posted October 31, 2012 Share Posted October 31, 2012 Okies! Thanks! Have already tried a lot of stuff. So was hoping really a lot on this one... Will update here if I get some solution! Link to comment Share on other sites More sharing options...
innocuous Posted October 31, 2012 Author Share Posted October 31, 2012 One more thing you can check which could also cause issues... For some reason I was also experiencing problems when I added www to domain in shop_url in DB like www.domain.com Changing to domain.com solved some issues namely empty cart on checkout in IE/Chrome. Weird but don't know why a simple www. would cause problems! Link to comment Share on other sites More sharing options...
Wandrille Posted October 31, 2012 Share Posted October 31, 2012 If you add www to your domain, you change cookie domain, the problem probably come from here. Link to comment Share on other sites More sharing options...
innocuous Posted November 1, 2012 Author Share Posted November 1, 2012 So any solution for that? Most users are more comfortable with www.domain Link to comment Share on other sites More sharing options...
spirits999 Posted November 6, 2012 Share Posted November 6, 2012 Folks! Finally have a solution to this. The problem was with the htaccess file. I'm hosted on a Windows server and I never knew that windows server does not recognize the htaccess file. I moved my server from Windows to Linux and now it is Superrrrrrrrrrr Fast! Oh and the redirects work fine! Link to comment Share on other sites More sharing options...
Recommended Posts