Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to make Admin changes under localhost


ecclesr

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted
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.

 

I made the required change. Now pages are not being displayed

 

Thanking you all in advance

Posted

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

Posted
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

Posted
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

Posted

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

Posted

Still no luck resolving this issue.

 

Any members that have installed oscommerce under Vista - any special instructions

 

Thanking you in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...