Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No Images since changing host


StephenH

Recommended Posts

Hi there,

 

I have done a search regarding this but none of the posts I have found have solved my problem.

I am running version osCommerce 2.2-MS2.

 

When I go to my homepage no images are displayed. I get a red cross where the image should be.

Right clicking on the image and looking at the src gives me:

 

src="images/100-1025.jpg"

 

When I goto http://mysite/images/100-1025.jpg the image is there.

 

The file CHMOD is 777.

 

Any ideas why my images could not be showing?

Link to comment
Share on other sites

Let's have a look at your /catalog/includes/configure.php file. (except for the database stuff, of course.)

 

/catalog/includes is empty except for a classes folder.

 

I have changed includes/configure.php

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.co.uk

 Copyright (c) 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://mysite.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://mysite.co.ukk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'mysite.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'mysite.co.uk');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_IMAGES_LARGE', 'images_large/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/petra/public_html');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// include local zz_configure.php
define('DIR_WS_LOCAL', DIR_WS_INCLUDES . 'local/');
 define('DIR_WS_LOCAL_BOXES', DIR_WS_LOCAL . 'boxes/');
 define('DIR_WS_LOCAL_IMAGES', DIR_WS_LOCAL . 'images/');
 define('DIR_WS_LOCAL_ICONS', DIR_WS_LOCAL_IMAGES . 'icons/');
 define('DIR_WS_LOCAL_BUTTONS', DIR_WS_LOCAL_IMAGES . 'buttons/');
 define('DIR_WS_LOCAL_CLASSES', DIR_WS_LOCAL . 'classes/');
 define('DIR_WS_LOCAL_FUNCTIONS', DIR_WS_LOCAL . 'functions/');
 define('DIR_WS_LOCAL_MODULES', DIR_WS_LOCAL . 'modules/');
 define('DIR_WS_LOCAL_LANGUAGES', DIR_WS_LOCAL . 'languages/');

 define('DIR_WS_CATALOG_LOCAL_LANGUAGES', DIR_WS_CATALOG . 'includes/local/languages/');
 define('DIR_FS_CATALOG_LOCAL_LANGUAGES', DIR_FS_CATALOG . 'includes/local/languages/');
 define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/locimages/');
 define('DIR_FS_CATALOG_LOCAL_MODULES', DIR_FS_CATALOG . 'includes/local/modules/');
 define('DIR_WS_CATALOG_LOCAL_IMAGES', DIR_WS_CATALOG . 'includes/locimages/');

Link to comment
Share on other sites

Stephan,

 

 

I think this line is the issue:

 

define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/locimages/');

 

 

Should read:

 

define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/local/images/');

 

 

 

Chris

Link to comment
Share on other sites

Stephan,

 

 

I think this line is the issue:

 

define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/locimages/');

 

 

Should read:

 

define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/local/images/');

 

 

 

Chris

 

Sadly the same thing occurs even after the code change.

Link to comment
Share on other sites

Stephan,

 

 

Did you change BOTH occurrences of it ??

 

define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/locimages/');

 

and

 

define('DIR_WS_CATALOG_LOCAL_IMAGES', DIR_WS_CATALOG . 'includes/locimages/');

 

 

 

Chris

Link to comment
Share on other sites

Stephan,

 

 

Did you change BOTH occurrences of it ??

 

define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/locimages/');

 

and

 

define('DIR_WS_CATALOG_LOCAL_IMAGES', DIR_WS_CATALOG . 'includes/locimages/');

 

 

 

Chris

 

 

File now reads (minus the top and bottom)

define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_IMAGES_LARGE', 'images_large/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 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_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/petra/public_html');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// include local zz_configure.php
define('DIR_WS_LOCAL', DIR_WS_INCLUDES . 'local/');
 define('DIR_WS_LOCAL_BOXES', DIR_WS_LOCAL . 'boxes/');
 define('DIR_WS_LOCAL_IMAGES', DIR_WS_LOCAL . 'images/');
 define('DIR_WS_LOCAL_ICONS', DIR_WS_LOCAL_IMAGES . 'icons/');
 define('DIR_WS_LOCAL_BUTTONS', DIR_WS_LOCAL_IMAGES . 'buttons/');
 define('DIR_WS_LOCAL_CLASSES', DIR_WS_LOCAL . 'classes/');
 define('DIR_WS_LOCAL_FUNCTIONS', DIR_WS_LOCAL . 'functions/');
 define('DIR_WS_LOCAL_MODULES', DIR_WS_LOCAL . 'modules/');
 define('DIR_WS_LOCAL_LANGUAGES', DIR_WS_LOCAL . 'languages/');

 define('DIR_WS_CATALOG_LOCAL_LANGUAGES', DIR_WS_CATALOG . 'includes/local/languages/');
 define('DIR_FS_CATALOG_LOCAL_LANGUAGES', DIR_FS_CATALOG . 'includes/local/languages/');
 define('DIR_FS_CATALOG_LOCAL_IMAGES', DIR_FS_CATALOG . 'includes/local/images/');
 define('DIR_FS_CATALOG_LOCAL_MODULES', DIR_FS_CATALOG . 'includes/local/modules/');
 define('DIR_WS_CATALOG_LOCAL_IMAGES', DIR_WS_CATALOG . 'includes/local/images/');

Link to comment
Share on other sites

If I visit the image directly then go back to the page it appears. If I clear the browser cache it goes again. Very confused.

Look in your Web hosts cPanel (not osC!) for "Hotlink Protection" (or something similar).

 

If it's on turn it off.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Look in your Web hosts cPanel (not osC!) for "Hotlink Protection" (or something similar).

 

If it's on turn it off.

HotLink protection is currently disabled.

 

Still no joy. It's a strange one...

Link to comment
Share on other sites

HotLink protection is currently disabled.

 

Still no joy. It's a strange one...

Well I guess I won't be buying a lottery ticket today...

>_<

 

Have you:

 

1. Tried a different browser? A differnt computer to view the site?

 

2. Asked someone else to view the site and see if they have the same problem?

 

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Well I guess I won't be buying a lottery ticket today...

>_<

 

Have you:

 

1. Tried a different browser? A differnt computer to view the site?

 

2. Asked someone else to view the site and see if they have the same problem?

 

:unsure:

 

1. IE8 and Chrome on work PC and personal laptop

2. Friend tried it from home and the same thing.

Link to comment
Share on other sites

1. IE8 and Chrome on work PC and personal laptop

2. Friend tried it from home and the same thing.

If the path to the image is correct but it doen't show it's not an "osC problem" (IMHO).

 

Something on the server must be preventing it.

 

Get your Host involved.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

define('DIR_FS_CATALOG', '/home/petra/public_html');

 

...should be

 

define('DIR_FS_CATALOG', '/home/petra/public_html/');

 

Could it be a permission issue?

 

My hosts don't seem to think it is a problem with them as some images in the same locations re being displayed. All the product one's are not.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...