Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What causes this error message


Guest

Recommended Posts

Posted

I tried to install two contributions this morning.

 

fckeditor-oscommerce_v_update051113

EmailOrderText_1_4_FCK

 

When they didn't seem to work the way I wanted them to, I restored the original files that had required changes and proceeded to to make some changes to my categoreis in the Categories/Products and Products Attributes modules in Admin.

 

Now, when I attempt to access my categories from the categories info box in the left column, I am taken to the following URL:

 

http://www.tea-and-scones-vermont.comdir_w...x.php/?cPath=32

 

and I get this error message

 

Firefox can't find the server at www.tea-and-scones-vermont.comdir_ws_adminindex.php.

 

Clearly there are slashes missing, but I have been unable to determine why that is so. Can anyone point me in the right direction. My scalp and remaining hair folicles will be very appreciative

 

Jerry Nielsen

Posted
check admin\includes\configure.php

i.e. ~ define('DIR_WS_ADMIN', '/catalog/admin/');

 

Dave,

 

That line in /catalog/admin/includes/configure.php is as you have shown it. I double checked it against my master osCommerce file also, and it matches there as well. (I keep a copy of my original download which only gets opened to make comparisons as I have here.)

 

Any other ideas would be appreciated. I'm still going over files I may have changed for some reason, but I am rapidly approaching a reinstall. What hurts is I was just about to go live.

 

Jerry Nielsen

Posted
Dave,

 

That line in /catalog/admin/includes/configure.php is as you have shown it. I double checked it against my master osCommerce file also, and it matches there as well. (I keep a copy of my original download which only gets opened to make comparisons as I have here.)

 

Any other ideas would be appreciated. I'm still going over files I may have changed for some reason, but I am rapidly approaching a reinstall. What hurts is I was just about to go live.

 

Jerry Nielsen

 

Well, further testing and checking of my site (I was focused on the Categories Info Box) demonstrates that all my links do the same thing. The slashes are eliminated and the reference to "dir_ws_admin" precedes every link. I've checked and double checked the /catalog/admin/includes/configure.php file, and I believe everything is as it should be.

 

If I don't figure it out, or I am unable to get an answer from the community, it looks like reinstall time this afternoon. I am going to try to pull out some of the files to which I have added my own content and add them after the reinstall.

 

Thanks for any insight anyone can give. Piffle!!! I was so close to going live.

 

Jerry Nielsen - Tea and Scones Vermont

Posted

post your configure file here and I'll take a look.... don't put the database gubbins in from the bottom bit though... :)

one-click installation..

Dave's info

Posted
post your configure file here and I'll take a look.... don't put the database gubbins in from the bottom bit though... :)

 

Dave,

 

Again, thank you for your help on this! Here is my configure.php file contents except for the "database gubbins"

 

<?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.tea-and-scones-vermont.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.tea-and-scones-vermont.com');

define('HTTPS_CATALOG_SERVER', 'https://www.tea-and-scones-vermont.com');

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

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/var/www/html/catalog/admin/'); // absolute path required

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

define('DIR_FS_CATALOG', '/var/www/html/catalog/'); // 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/');

 

I hope this helps you help me. :)

 

Jerry Nielsen - Tea and Scones Vermont

Posted

Try clearing your cache in the admin tools folder for categories.

Posted
Try this

 

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

 

Jolanta,

 

That broke even my Admin page.

 

Jerry

Posted

I've removed a bit of the "clutter"

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/var/www/html/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/var/www/html/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

This is what our install system chucks in there:

  define('DIR_WS_ADMIN', '/store/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/store/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

Note /catalog/admin/ = store/admin/

but /catalog/ is not = store/catalog/

 

maybe Jolantas solution might work or follow my logic through your file.

 

Hmm.. just seen you reply to Jolanta :( ...

one-click installation..

Dave's info

Posted
Try clearing your cache in the admin tools folder for categories.

 

Stuart,

 

My Admin page for cache control tells me that I do not have a cache file. This generates two questions:

 

1. How bad is it for me not to have a cache file?

2. If I should have one, how can I create it without going back to the installation process?

 

Jerry Nielsen - Tea and Scones Vermont

Posted

to create the files....

 

notepad

[blank file]

Save as: also_purchased-english.cache

(not *.txt - click on All files)

 

repeat for other two files

categories_box-english.cache

manufacturers_box-english.cache

 

upload to the server to the directory set in configuration / cache

check use cache is set to true

check the directory permissions are writeable

one-click installation..

Dave's info

Posted

Just a guess but I have two more definitions in my /catalog/includes/configure.php:

 

  define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

They are needed to generate the links in /catalog/includes/functions/html_output.php (tep_href_link).

 

Maybe you mixed up the two configure.php files (admin and catalog)?

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Posted
Just a guess but I have two more definitions in my /catalog/includes/configure.php:

 

  define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

They are needed to generate the links in /catalog/includes/functions/html_output.php (tep_href_link).

 

Maybe you mixed up the two configure.php files (admin and catalog)?

 

abra

Abra,

 

Your PM was right on. I mixed up the two html_output.php files. I suspect it was when I was restoring files after the contributions I was installing failed to work properly. All is now working as it should. I was wondering why I was getting a reference to "admin" when I wasn't making calls to that part of the installation. That should have been a clue.

 

The other issue has been corrected. Thanks again for your help!

 

Jerry Nielsen - Tea and Scones Vermont

Posted

Good to hear the problem is fixed.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Archived

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

×
×
  • Create New...