Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Odd Pathing


Masterlubu

Recommended Posts

Posted

So I built my OSCommerce site on a developement server and HAD everything running beautifully.

 

Then it came time to push it out into the world. In the developement stages I had listed in configure.php the following line:

 

"define('HTTP_SERVER', 'http://<hostIPaddress>');

"define('HTTP_CATALOG_SERVER', 'http://<hostIPaddress');

 

Once we got the web hosting plan purchased, we had a full domain name, so I changed them too:

 

define('HTTP_SERVER', 'http://<www.domainname.com>');

define('HTTP_CATALOG_SERVER', 'http://<www.domainname.com>');

 

My problem is that the admin panel is seeing it's image folder (catalog/admin/images) as the catalog's image path (catalog/images). I hope that makes sense, but in essence, when I upload a products picture, it goes to the wrong image folder.

 

Here is the rest of my config file, can anyone spot the error please?

 

define('HTTP_SERVER', 'http://<www.domainname.com>'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.domainname.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_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/');

 

Thank you in advance for anyone who can shed some light on this.

-Lubu

Posted

Ok, here's a quick update:

 

I believe the problem is in this line:

define('DIR_FS_CATALOG', ''); // absolute path required

 

Does anyone know how to find the absolute paths on a hosted server? I can't very well put C:\xampp\htdocs etc etc.....

 

ARGH!?

Posted
Does anyone know how to find the absolute paths on a hosted server? I can't very well put C:\xampp\htdocs etc etc.....

 

ARGH!?

 

go into oscommerce admin and under tools click server info

 

Look for DOCUMENT_ROOT

 

or ...

 

Look at the path shown in your FTP program

 

or ...

 

Create a php file called phpinfo.php containing ...

 

<?php

phpinfo();

?>

 

Then call the file in your browser.

 

or ...

 

Create a php file called show_me_the_root.php

 

:blink:

 

containing

 

<?php
echo $_SERVER['DOCUMENT_ROOT'] . '<br />';
?>

 

Then call the file in your browser

 

:D

Archived

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

×
×
  • Create New...