Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Problem


NS-Icon

Recommended Posts

Hi,

 

I installed osCcommerce about 3 weeks ago on a testing server and everything went smoothly, all the functions worked 100% without any problems. Once I added the extra modules required, the system was tested again it seamed to be operating correctly.

 

Now today I decided to move osCommerce to the correct location, I made the necessary changes in the configure.php files, both in admin and root dir.

 

Now the problem that I am having is the following,

 

I add a picture to anything (manufacturer, product etc) and the image comes up with a red X as apposed to the actual image.

 

I take a look at the path that the image is coming from, and it is admin/images and not /images

 

Can anyone help please, its quite urgent?

 

Thanks

Link to comment
Share on other sites

Hi all,

 

I guess no one can help with my problem  :(

 

Hi there i have exactly the same problem!, i cant figure it our either, when i add products they are appearing in the catalog but when i view the proiducts in the administration area the images are not show and have a location of admin/images. Why does it think that the images should be in the admin area, i though that the images were just placed in the catalog/images.

 

my admin confiuration.php is below, can any see what my problem is?

 

define('HTTP_SERVER', 'http://www.my domain.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk');

define('HTTPS_CATALOG_SERVER', 'http://www.mydomain.co.uk');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/worl3454/public_html/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/worl3454/public_html/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/worl3454/public_html/'); // 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/');

 

cheers in advance!

Link to comment
Share on other sites

Try replacing these two lines (the two lines are in different areas of the code):

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

with this:

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

 

What I changed was "/admin/" to "admin/"

 

and

 

I added a "/" for the DIR_WS_CATALOG.

 

Not sure if this will fix it but give it a shot.

Link to comment
Share on other sites

Your nearly there, for me I added a "/" for the DIR_WS_CATALOG. at it works now. if this does not work for you post the contents of you configure.php from your admin area and i will have a loo at yours, mine looks like this.

 

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

define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk');

define('HTTPS_CATALOG_SERVER', 'http://www.mydomain.co.uk');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/worl3454/public_html/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/worl3454/public_html/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/worl3454/public_html/'); // 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/');

 

cheers lemonsensation!

Link to comment
Share on other sites

Your nearly there, for me I added a "/" for the DIR_WS_CATALOG. at it works now. if this does not work for you post the contents of you configure.php from your admin area and i will have a loo at yours, mine looks like this.

 

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

  define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk');

  define('HTTPS_CATALOG_SERVER', 'http://www.mydomain.co.uk');

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

  define('DIR_FS_DOCUMENT_ROOT', '/home/worl3454/public_html/'); // where the pages are located on the server

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

  define('DIR_FS_ADMIN', '/home/worl3454/public_html/admin/'); // absolute pate required

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

  define('DIR_FS_CATALOG', '/home/worl3454/public_html/'); // 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/');

 

cheers lemonsensation!

 

 

Nice one m8, that worked a charm :P

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...