jdegrace Posted April 4, 2007 Posted April 4, 2007 I recently had a working OSCommerce site hosted on a shared server from GoDaddy.com. I changed my site over to a virtual dedicated server from GoDaddy for improved performance by copying all my previous OSCommerce files and SQL database to the new virtual dedicated server. I changed my catalog/includes/config.php and catalog/admin/includes/config.php files to reflect the new changes for my new server. Everything comes up correctly on my new server, but for some reason my navigation under my category box doesn't work. Everytime I try to click on a link under the categories box it keeps re-loading my homepage. Does anyone know what could be causing this problem? My site is www.jenlynndesigns.com, if you'd like to see it in action. Thanks!
dehydratedchicken Posted April 4, 2007 Posted April 4, 2007 I tried viewing the site but I get taken to Fedora Core Test Page
jdegrace Posted April 4, 2007 Author Posted April 4, 2007 I tried viewing the site but I get taken to Fedora Core Test Page Sorry about that. Can you please try again? Thanks.
failsafe Posted April 4, 2007 Posted April 4, 2007 ...Everytime I try to click on a link under the categories box it keeps re-loading my homepage. Does anyone know what could be causing this problem? My site is www.jenlynndesigns.com, if you'd like to see it in action. Thanks! It's more serious than that. I just had a go and couldn't get a product page to come up if I clicked on a product - it just said No Product Found. Also doing a search turns up nothing. It's as though GET and POST isn't working properly? Could that be it? I can mirror the symptoms if I wipe off everything after the ? on a site that works. I think you need to first verify that the GET and POST are working by sticking some debug in to print them out. Try looking in catalog/includes/application_top.php in the following section for clues, and try some debug near there to check GET is working... // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { if (strlen(getenv('PATH_INFO')) > 1) { $GET_array = array(); $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF); $vars = explode('/', substr(getenv('PATH_INFO'), 1)); If GET looks OK then perhaps it's a path problem in your config file, though I'd have expected nothing to get displayed at all in that case. Or perhaps it's a database access problem, but again, why does the index page get displayed with categories and products if the database doesn't work? Very strange!
jdegrace Posted April 5, 2007 Author Posted April 5, 2007 It's more serious than that. I just had a go and couldn't get a product page to come up if I clicked on a product - it just said No Product Found.Also doing a search turns up nothing. It's as though GET and POST isn't working properly? Could that be it? I can mirror the symptoms if I wipe off everything after the ? on a site that works. I think you need to first verify that the GET and POST are working by sticking some debug in to print them out. Try looking in catalog/includes/application_top.php in the following section for clues, and try some debug near there to check GET is working... // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { if (strlen(getenv('PATH_INFO')) > 1) { $GET_array = array(); $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF); $vars = explode('/', substr(getenv('PATH_INFO'), 1)); If GET looks OK then perhaps it's a path problem in your config file, though I'd have expected nothing to get displayed at all in that case. Or perhaps it's a database access problem, but again, why does the index page get displayed with categories and products if the database doesn't work? Very strange! Do you happen to have any suggestions about implementing some debug code? Thanks!
jdegrace Posted April 6, 2007 Author Posted April 6, 2007 OK. I finally got it working using a solution from another post I received on a similar topic. The issue was the fact that "register_long_arrays = OFF" wasn't turned on in my PHP.ini file. Once I turned this back on it worked perfectly. Do you happen to have any suggestions about implementing some debug code? Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.