Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images not showing


kwraight

Recommended Posts

Hi,

 

Seem to be having a bit of a bizarre one.

 

Have looked at all other threads on subject and tried to implement solutions from them. Have checked css, file locations, file upload in binary.

 

Anyway to the point- take a look at our site and you might notice that some of the images aren't working - i know the product ones don't I haven't uploaded these yet. Depending on whether you use firefox or IE depends on the extent of the problem. To illustrate this try adding a product to the cart and all you will see is rectangles that should say reviews, add to cart etc.

 

Any ideas anybody?

 

Keith

Link to comment
Share on other sites

Cool, glad to know I am not the only one.

 

So far I have done the following:

 

Checked CSS references,

Reuploaded all images in binary,

checked configure.php,

copied all images to the relevant folders so both are identical.

 

Anybody got any ideas?

Link to comment
Share on other sites

Can you post your includes/configure.php file up here (all but the database section, keep that to yourself, please). Maybe then we can figure out what's wrong where.

Link to comment
Share on other sites

Hi, thanks for offering to help on this one.

 

congifure.php is below:

 

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

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.bearcreekadventure.co.uk');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

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

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/fhlinux209/b/bearcreekadventure.co.uk/user/htdocs/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

having done some digging and comparisons on oscommerce shops, some file references eg button_in_cart are relative and some aren't ie http://blah blah blah and some are /includes/....

 

I am sure this one will be quite simple to fix but having spent the past couple of days blundering around this problem the resolution could come and slap me in the face and i wouldn't notice.

 

 

Keith

Link to comment
Share on other sites

The reason they don't show up (on some servers) is there's a .htacess file in the includes folder.

 

# $Id: .htaccess,v 1.4 2001/04/22 20:30:03 dwatkins Exp $
#
# This is used with Apache WebServers
# The following blocks direct HTTP requests in this directory recursively
#
# For this to work, you must include the parameter 'Limit' to the AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
#  AllowOverride Limit
#
# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)
#
# This does not affect PHP include/require functions
#
# Example: http://server/catalog/includes/application_top.php will not work

<Files *.php>
Order Deny,Allow
Deny from all
</Files>

 

The purpose of this file is to prevent outsiders from directly accessing .php files in /includes, a security measure.

 

You've got two options.

 

1) remove/rename the .htaccess file

2) move /languages out of and up to the same level as includes.

 

You'll need to edit /catalog/includes/configure.php if you choose option 2

 

Like so...

 

from:

 

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

to:

 

define('DIR_WS_LANGUAGES', 'languages/');

 

The php files within /languages are pretty harmless and no one can do much damage if they can access them.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

If you choose option 2 you'll also need to make a change to admin/includes/configure.php

 

Admin uses some images from the /catalog/images folder so it needs to know where they are.

 

You'll need to edit the location in admin/includes/configure.php

 

From:

 

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

 

to:

 

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'languages/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...