zacourie Posted October 4, 2013 Posted October 4, 2013 I've spent hours trying to figure this out; googling and googling, and trying every option from others' experiencing being unable to log into admin after moving to a new server. Specifically, when I go to the admin page, the refer parameter isn't filled out all the way (login.php?refer=%3F) like it was when on IIS6: login.php?refer=%2Fa1p16%2Forders.php%3F I can't tell if this is a rewrites issue, or perhaps due to a difference in PHP versions, or what. Does anyone have any ideas? Thanks! Zac
zacourie Posted October 7, 2013 Author Posted October 7, 2013 "Bueller?" I should clarify, this is moving from a Windows server with IIS6 to a Linux (RHEL) server with Nginx.
Guest Posted October 8, 2013 Posted October 8, 2013 @@zacourie You shouldn't have a refer= anything. Your URL should look something like this....login.php?osCAdminID=d46d4dmtusdo3ill9ql6h..... Since windows doesn't use the .htaccess file, I would check to ensure you do have one in your /admin directory and it is configured correctly. Chris
zacourie Posted October 8, 2013 Author Posted October 8, 2013 @@DunWeb Thank you for responding. Actually, we went ahead and migrated over to our RHEL/Nginx server, but the situation is the same in regard to the content of the "refer". I'm actually able to access the admin now, thanks to Steve Kamerman's fix (http://www.stevekamerman.com/2007/01/oscommerce-doesnt-work-on-php5-seriously/). There are now other issues. When I go to http://alightpromos.com in Chrome with the Console open, this message comes up: Uncaught ReferenceError: Set_Cookie is not defined Now I can't place a test order on the frontend as a user. The checkout_shipping.php page either refreshes (without any error message) after populating the fields and continuing, or, I'll continue to the checkout_confirmation.php page, but then when I click "Submit", I'm taken back to checkout_shipping.php with an error message up top that says, "The expiry date entered for the credit card is invalid. Please check the date and try again." I'm using 4111... with an expiration of 01/2017. I'm investigating this issue now and any insight is greatly appreciated. Thanks, again, Chris! -Zac
burt Posted October 8, 2013 Posted October 8, 2013 At first glance this looks like an old version of osCommerce, can you check the version and let us know which it is. The version will be listed at the DEFINE_PROJECT line of code in /includes/application_top.php
zacourie Posted October 8, 2013 Author Posted October 8, 2013 @@burt Yes, it is "osCommerce 2.2-MS2." It is also heavily customized, so unfortunately I can't simply apply a fresh install on our new server, nor can I easily upgrade. Thanks, Zac
Guest Posted October 9, 2013 Posted October 9, 2013 @@burt Yes, it is "osCommerce 2.2-MS2." It is also heavily customized, so unfortunately I can't simply apply a fresh install on our new server, nor can I easily upgrade. Thanks, Zac Install fresh copy of osC in directory "demo" ans see the config file content, find the difference ;)
zacourie Posted October 9, 2013 Author Posted October 9, 2013 @@imop Good call, Boriss! I'll try that. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.