ecclesr Posted October 6, 2008 Posted October 6, 2008 Background Have been developing my website over a period time under localhost. At the start of the yearI drop my laptop, so had to reinstall on xp pc. I managed to get the website on to a host. then my xp pc died. Have just managed to get website created on new vista business laptop. Has been a stop start year working on website so have been a bit lost Issue Admin under localhost appear as I would expect, but are finding I am unable to make any changes, ie i can not added any products or new categories. I get no error messages Sorry is I have not explained this well. I am happy to provide information at can assited in resolving the issue I have Thanking everyone in advance
Gauravs Posted October 6, 2008 Posted October 6, 2008 Check PHP settings, typically safe mode, register_globals etc may be different and thus values are not getting captured & inserted in database. Do an echo on the form you submit to check if any variable was captured (like new category) - and what output did you get, if it shows blank - you need to identify why the form values didn't come through. Best Regards,Gaurav
ecclesr Posted October 6, 2008 Author Posted October 6, 2008 Check PHP settings, typically safe mode, register_globals etc may be different and thus values are not getting captured & inserted in database. Gaurav thanks for your reply, where and what should I be looking at in php and what variables should i set Thanking you all in Advance
FIMBLE Posted October 6, 2008 Posted October 6, 2008 Hello Give this a try includes/functions/compatibility.php and admin/includes/functions/compatibility.php function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } make sure that reset($ar); is there. Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
ecclesr Posted October 7, 2008 Author Posted October 7, 2008 HelloGive this a try includes/functions/compatibility.php and admin/includes/functions/compatibility.php function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } make sure that reset($ar); is there. I made the required change. Now pages are not being displayed Thanking you all in advance
FIMBLE Posted October 7, 2008 Posted October 7, 2008 OK try and comment them all out //function do_magic_quotes_gpc(&$ar) { //if (!is_array($ar)) return false; //while (list($key, $value) = each($ar)) { //if (is_array($ar[$key])) { //do_magic_quotes_gpc($ar[$key]); //} else { //$ar[$key] = addslashes($value); //} //} //reset($ar); //} Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
ecclesr Posted October 7, 2008 Author Posted October 7, 2008 OK try and comment them all out //function do_magic_quotes_gpc(&$ar) { //if (!is_array($ar)) return false; //while (list($key, $value) = each($ar)) { //if (is_array($ar[$key])) { //do_magic_quotes_gpc($ar[$key]); //} else { //$ar[$key] = addslashes($value); //} //} //reset($ar); //} Nic
ecclesr Posted October 7, 2008 Author Posted October 7, 2008 OK try and comment them all out //function do_magic_quotes_gpc(&$ar) { //if (!is_array($ar)) return false; //while (list($key, $value) = each($ar)) { //if (is_array($ar[$key])) { //do_magic_quotes_gpc($ar[$key]); //} else { //$ar[$key] = addslashes($value); //} //} //reset($ar); //} Nic When I tried I got HTTP 500 Internal server error Removed the above change Examples of text I am see on the eg Admin cataloge TEXT_DATE_ADDED 11/05/2005 TEXT_IMAGE_NONEXISTENT 2981-blk-85.jpg TEXT_SUBCATEGORIES 5 Clicking on another info button nothing happens Under the configuration menu, changing say from My Store to Product Listing nothing changes in what is displayed Thnaking you all in advance
ecclesr Posted October 8, 2008 Author Posted October 8, 2008 I have found the following topic 269431 "if I try to insert or update Categories or to delete Products or Categories absolutely nothing happens: No Changes where made in the Database and no Error-Message is displayed. Everything else in the Shop seems to be OK" Their solution was "Damn Vista and it's weird user permissions. Although I was logged on as an administrator it was using my 'user' account which only had read access to the configuration files - oscommerce could not write the correct information to the file. I corrected this by adding myself (again!) to each of the config files as a user with complete rights. That solved my issue. " Can someone explain to me (dummies guide) what extactly I need to do
ecclesr Posted October 10, 2008 Author Posted October 10, 2008 Still no luck resolving this issue. Any members that have installed oscommerce under Vista - any special instructions Thanking you in advance
ecclesr Posted October 10, 2008 Author Posted October 10, 2008 Have found solution in php.ini i have set register_long_arrays = On
Recommended Posts
Archived
This topic is now archived and is closed to further replies.