Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error when updating products


Guest

Recommended Posts

Posted

whenever I try to update a product on my site everything goes fine until the last step where I have to confirm the update by clicking the update button... when I click the button I get a page that says.

 

Bad Request

Your browser sent a request that this server could not understand.

Invalid URI in request GET /../catalog/admp/categories.php?cPath=125&pID=896&osCAdminID=f14d703fe3fb6dc6ae3c4342317ea42a HTTP/1.1

 

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have searched all of the site.. and can not seem to find a fix for this issue... any help would be appreciated.

 

I should also note that this error only occurs in IE not in Firefox.

Posted

anyone have any ideas?

I have tried changing file permissions and stuff like that.. nothing is fixing the problem.

Posted

I renamed my admin directory to admp.. not sure if that is what is causing people to be unable to suggest a fix or not.

 

I need to update some products and cant because of this error that i receive in the last step.

Posted
Could you post your admin/includes/ configure.php file wihtout the database section?
Instead of posting it I have went and compared my file to the default file and was able to resolve my problem. I had some extra unnecessary lines of code and some lines that were missing DIR_FS_CATALOG or had HTTP_CATALOG_SERVER in its place!!

 

thanks a lot.. never would have realized it without you suggesting for me to post it.

 

JUST FYI

 

This was my conifgure.php file before I made changes:

  define('HTTP_SERVER', 'http://homeforgnomes.com');
 define('HTTP_CATALOG_SERVER', 'http://homeforgnomes.com');
 define('HTTPS_CATALOG_SERVER', 'https://homeforgnomes.com'); 
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/dvdd127/public_html/homeforgnomes/catalog/');  
 define('DIR_WS_ADMIN', DIR_WS_CATALOG . 'admp/');
 define('DIR_FS_ADMIN', $DOCUMENT_ROOT.'/admin/');
 define('DIR_FS_CATALOG', $DOCUMENT_ROOT.'/catalog/');
 define('DIR_WS_HTTP_CATALOG', 'catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', '/home/dvdd127/public_html/homeforgnomes/catalog/includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', '/home/dvdd127/public_html/homeforgnomes/catalog/images/');
 define('DIR_FS_CATALOG_MODULES', '/home/dvdd127/public_html/homeforgnomes/catalog/includes/modules/');
 define('DIR_FS_BACKUP', '/home/dvdd127/public_html/homeforgnomes/catalog/admp/backups/');

 

and this was my configure.php file after I edited it:

  define('HTTP_SERVER', 'http://homeforgnomes.com');
 define('HTTP_CATALOG_SERVER', 'http://homeforgnomes.com');
 define('HTTPS_CATALOG_SERVER', 'https://homeforgnomes.com'); 
 define('ENABLE_SSL_CATALOG', false);
 define('DIR_FS_DOCUMENT_ROOT', '/home/dvdd127/public_html/homeforgnomes/catalog/');  
 define('DIR_WS_ADMIN', '/catalog/admp/');
 define('DIR_FS_ADMIN', '/home/dvdd127/public_html/homeforgnomes/catalog/admp');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/dvdd127/public_html/homeforgnomes/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN .  'backups/');

Archived

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

×
×
  • Create New...