bigbird_3156 Posted December 16, 2013 Posted December 16, 2013 Hi I just upgraded from 2.3.3.3 to 2.3.3.4 just by copying updated files over into my site and now I cant load admin. when I try to load the admin page I get this message from my browser: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies. I tried disabling my cookies, it made no difference. the only addon that I have active that MAY be causing a problem is easypopulate as I noticed that some of the files updated had to do with database stuff... Any thoughts would be greatly appreciated
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 I am having this same issue; can't login into admin after 2.3.3.4. upgrade from 2.3.3. on Safari due to multiple redirects. One thread suggested removing the admin session from the MySql sessions table but there are 4 items there and I am not sure which ones are ok to remove to solve the problem. No reply yet.
♥joli1811 Posted May 7, 2014 Posted May 7, 2014 http://www.oscommerce.com/forums/topic/394567-upgrade-from-233-to-2333-admin-loop/ maybe the answer is it there normally due to a missed line in the upgrade @[member='Patrick'], can you check the following for me......does your sessions.php located in 'admin/includes/functions' contains this code at line 102: register_shutdown_function('session_write_close'); The full package has it, and mine current shop did not (also not the upgrade package).....when I added this line to sessions.php, all was working fine.... Deleting admin session is done in phpMyAdmin you have a table called action_recorder which can be emptied (truncate) that records normally the admin log in although sometimes other uses The sessions table can also be emptied As always before doing any database work do a backup first Regards Joli To improve is to change; to be perfect is to change often.
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Hello Joli, Thank you so very much for replying. I will check for that line of code. I am not sure how to do a db backup in phpMyAdmin, so I was hesitant to truncate those two tables. Is there a backup option within phpMyAdmin? September ;-)
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Line 102 does not contain that code but reads: return session_start(); Should I replace this code with the register_shutdown_function('session_write_close'); line or add it? Thanks again for your help! September ;-)
♥joli1811 Posted May 7, 2014 Posted May 7, 2014 Hello Joli, Thank you so very much for replying. I will check for that line of code. I am not sure how to do a db backup in phpMyAdmin, so I was hesitant to truncate those two tables. Is there a backup option within phpMyAdmin? September ;-) Depends a bit on your hosting most hosts would have a backup button for site and databases (which would be easiest) but some do not directly in your control panel not phpMyAdmin To back up directly from phpMyAdmin click on your database (not a single table) on the database name itself. Then on the top right you should see a button saying export it will ask what format SQL is correct this is normally default click go and you can then save Check that you have all the tables think about 50 with zones_to_geo_zones being the last . May be easier to see if you copy and paste into notepad++ save as .SQL Better always to get a backup done before any messing about with the database it is to important should be done regularly anyway so good time to learn :D To improve is to change; to be perfect is to change often.
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Thank you. I found a database backup download in the File Manager and downloaded the database to my mac before truncating the sessions and action recorder tables, but I am still getting the Safari too many redirects error when I try to log in to oscommerce Admin :-( I have cleared browser cache and rebooted. No luck. Should I add that line of code or replace line 102 with that code instead?
♥joli1811 Posted May 7, 2014 Posted May 7, 2014 Line 102 does not contain that code but reads: return session_start(); Should I replace this code with the register_shutdown_function('session_write_close'); line or add it? Thanks again for your help! September ;-) Below is the code I have line 98 - 105 so replace if yours is different maybe you do not need to touch the database but learn how to back up anyway if ($sane_session_id == false) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } register_shutdown_function('session_write_close'); return session_start(); } To improve is to change; to be perfect is to change often.
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Hmmm My lines 98-105 look like this: if ($sane_session_id == false) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } return session_start(); } function tep_session_register($variable) {
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Oh Hooey! I downloaded the original sessions.php file. Replaced lines 98-105 with the code you mentioned and uploaded the new sessions.php file, but still cannot login to Admin. So frustrating...not sure what to try now... September
♥joli1811 Posted May 7, 2014 Posted May 7, 2014 Replace your if ($sane_session_id == false) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } return session_start(); } with the standard 2.3.3.4 if ($sane_session_id == false) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } register_shutdown_function('session_write_close'); return session_start(); } To improve is to change; to be perfect is to change often.
♥joli1811 Posted May 7, 2014 Posted May 7, 2014 Well download the 2.3.3.4 version and overwrite your sessions.php must be something missing in the upgrade guide if the old line was there To improve is to change; to be perfect is to change often.
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Ok...thank you so much for the suggestions (the hardest part for me is running out of things to try since I don't know enough to truly troubleshoot the code), will give that a try now.
AlteredAttic Posted May 7, 2014 Posted May 7, 2014 Yes!!! I can log in now. Oh my goodness thanks so very much for your help. Now, on to the problem that prompted me to upgrade in the first place: Cannot get Paypal to add international shipping charges for my international buyers. I will sure be happy when I can get these issues fixed and return my focus to my shop and buyers...I am told that if I use Paypal standard in this new version, it should recognize foreign orders and charge appropriate shipping (fingers nervously crossed). September ;-)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.