Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"%20%20/" added to admin page link adresses


kathyNY

Recommended Posts

When I click on links on my cart/admin page, I get an error message saying:

 

~~~~

Not Found

The requested URL /cart/ /admin/categories.php was not found on this server.

 

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

~~~~

 

When I check the URL the link was supposed to go to, I find that these characters have been added after the "cart/" and before "admin":

 

%20%20/

 

(two blank space holders and a slash). If I delete them from the web page address, the page loads fine. I click on another link to edit something, get the same error, manually remove the "%20%20/", and the page loads fine, but my edits don't come out right. The text I enter to replace the fake text that the system came loaded with doesn't show up, and the fake text is gone. I can create folders for categories, but the names don't show up, they are just blank.

 

My Search Engine Friendly URLs is set to false.

 

 

Please help--this will be insane to work with. Thanks.

Link to comment
Share on other sites

I have been having this same problem. It was intermittent and I never identified what the problem was, but I did have some slow access from my web host intermittently at that time. I don't know if they are related or not.

 

Try clearing the cache and cookies from your web browser and see if that works.

 

Mine has been clear for a while now.

 

Good luck

Buck

Link to comment
Share on other sites

Thanks for the replies. I just emptied the cache on my computer and the cache on oscommerce was set to false. I tried to change it to true, which didn't stick (just like all my other edits), so now it's not set to anything and I'm still having the same error problem.

 

You need to track down the problem - which will be in your admin/includes/configure.php file.

Vger

 

I don't know what to do to fix it there. Can you explain, or point me to where that info can be found?

Link to comment
Share on other sites

Thanks for the replies.  I just emptied the cache on my computer and the cache on oscommerce was set to false.  I tried to change it to true, which didn't stick (just like all my other edits), so now it's not set to anything and I'm still having the same error problem.

I don't know what to do to fix it there.  Can you explain, or point me to where that info can be found?

Post your config.php file minus the database information

Link to comment
Share on other sites

Post your admin/includes/configure.php file by all means (minus db user name and password), because there seems to be a problem there, and we'll take a look at it. But if you are unable to edit anything then that's far more likely to be a permissions problem.

 

Vger

Link to comment
Share on other sites

Post your admin/includes/configure.php file by all means (minus db user name and password), because there seems to be a problem there, and we'll take a look at it.

Thanks... big time newbie here--I might not have realized that was there since this is the first time I've actually looked at the code...

 

But if you are unable to edit anything then that's far more likely to be a permissions problem.

It let's me half edit--it removes the old info, but doesn't save the new. Don't know if that's any different.

 

Thanks for taking a look at my code!

 

 

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.nysn.org'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.nysn.org');

define('HTTPS_CATALOG_SERVER', 'https://www.nysn.org');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/nysnorg/nysn.org/cart/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/cart/ /admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/nysnorg/nysn.org/cart/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/cart/ /'); // absolute path required

define('DIR_FS_CATALOG', '/home/nysnorg/nysn.org/cart/'); // absolute path required

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/');

 

// define our database connection

define('DB_SERVER', 'shop.nysn.org'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'XXXXX');

define('DB_SERVER_PASSWORD', 'XXXXX');

define('DB_DATABASE', 'XXXXX');

define('USE_PCONNECT', 'true'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

OK--I got over my newbie-ness and decided to see if the solution was as easy as finding the extra " /" in the code. I found it, deleted it and am now moving along just fine. I did notice that the " /" is also in this line:

 

define('DIR_WS_CATALOG', '/cart/ /'); // absolute path required

 

Will it cause troubles there too?

 

Thanks again!

Link to comment
Share on other sites

Firstly, you don't appear to have a full ssl certificate installed. So these are your settings for admin/includes/configure.php:

 

define('HTTP_SERVER', 'http://www.nysn.org'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.nysn.org');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/nysnorg/nysn.org/cart/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/cart/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/nysnorg/nysn.org/cart/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/cart/'); // absolute path required

 

You also have similar problems you need to resolve with your includes/configure.php file.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...