Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

prob with getting directories right in config file


Guest

Recommended Posts

hi

 

have just moved everything to a new server and trying to get it all sorted

 

i am able to view the images of the products when i view them in normal catalog area. however, in the admin section, i go to look at a product and I can't view the image.

 

there is that pink error message saying

" Error: Catalog images directory does not exist: /usr/local/apache/htdocs/catalog/images/"

 

and when i try to upload an image I get this message

 

Warning: move_uploaded_file(/usr/local/apache/htdocs/catalog/images/14_beltsander.jpg) [function.move-uploaded-file]: failed to create stream: No such file or directory in /home/ouboxes/public_html/catalog/admin/includes/functions/general.php on line 798

 

but as you can see i can view the image directory @ http://server1.solidinternet.com/~ouboxes/..._beltsander.jpg

 

this is the contetns of my /admin/includes/configure.php

  define('HTTP_SERVER', 'http://server1.solidinternet.com/~ouboxes'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', 'http://server1.solidinternet.com/~ouboxes');

 define('HTTPS_CATALOG_SERVER', 'http://server1.solidinternet.com/~ouboxes');

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

 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 define('DIR_WS_CATALOG', '/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/');

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

 

any ideas please?

 

thanks tim.

Link to comment
Share on other sites

ok i have changed this line:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/ouboxes/public_html'); // where your pages are located on the server. if 



$DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

 

and now have got rid of the error message saying that it can't find the directory.

 

the prob now though is that still no images are showing (neither the product images or the admin buttons).

 

anyone?

Link to comment
Share on other sites

something else i have found:

 

i looked at the properties of the image link (while the file couldn't be shown) and it was:

 

http://server1.solidinternet.com/catalog/includes/languages/english/images/icon.gif

 

but it should be

 

http://server1.solidinternet.com/~ouboxes/catalog/includes/languages/english/images/icon.gif

 

 

where do i change this in the config file so it points to the right spot?

 

thanks.

Link to comment
Share on other sites

Change this:

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

 

To be the real path to your root.

 

Go into the Admin ... click on Tools ... click on Server Info ...

Search for DOCUMENT_ROOT ... without the $ and use the value there, example:

define('DIR_FS_DOCUMENT_ROOT', '/home/mylinkto/public_html');

Link to comment
Share on other sites

What do I do, when I have nok uploaded the files to public_html?

 

When I got my site the osComerse was on it, I only had to change del all the products and Categories and make it my one.. it's in /catalog and admin is in /admin

Link to comment
Share on other sites

Go to the Tools ...

 

Go to the System Info ...

 

Search for DOCUMENT_ROOT

 

Take the value of that, and paste it into:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/mylinkto/public_html');

 

You are replacing my setting with your's:

/home/mylinkto/public_html

 

That value is your real path to the root of your home directory.

Link to comment
Share on other sites

I tryed it, and this time I didnt get any new errors so it seems to be right, but I steel get the error on modules..

 

Warning: main(/hsphere/local/*****/catalog/includes/languages/norwegian/modules/payment/authorizenet.php) [function.main]: failed to create stream: No such file or directory in /hsphere/local/******/admin/modules.php on line 120

Link to comment
Share on other sites

Warning: main(/hsphere/local/*****/catalog/includes/languages/norwegian/modules/payment/authorizenet.php) [function.main]: failed to create stream: No such file or directory in /hsphere/local/******/admin/modules.php on line 120

 

Is there a file called authorizenet.php in the /includes/languages/norwegian/modules/payment directory?

Link to comment
Share on other sites

:oops: eh.. no... :wink: If I hade just gone step by step I could have understud that.. sorry.. feel wrilly stupid.. :oops:

 

Now my new question is.. where can I get that file? :? I'?m so sorry for neding so much help.. 8)

Link to comment
Share on other sites

Well ... there should be one in each language folder.

 

Get the one out of the english folder and stick it in there for now until you can get a translated version.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...