Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Missing Images Seeing Red "x"


Guest

Recommended Posts

I am getting red 'x' on the catalog pages. I can make red 'x' appear and the images appear on the admin page but have not been successful in identifying the root cause of the incorrect configuration.

 

It seems like an obvious error in the configuration file but for the life of me I can not figure it out. Can you help me out?

 

This is the path for the images as shown in the properties:

 

http://domain.com/catalog/images/infobox/c..._right_left.gif

 

Here is the configure.php file

 

<?php

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

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

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

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

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

define('DIR_WS_IMAGES', '/catalog/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

// define our database connection

define('DB_SERVER', 'http://domain.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

 

here is the physical path on the server as shown by oscommerce:

 

/hsphere/local/home2/julia7/domain.com//catalog/includes

 

I list this because I am not sure what the // means and if it is correct?

 

Thank you for your assistance.

 

signed,

fustrated by my lack of knowledge

Link to comment
Share on other sites

Well, where to start - it's either wrong or just plain missing:

 

define('HTTP_SERVER', 'http://www.yourdomain.com'); // 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.yourdomain.com');

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('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', ''); //Your MySQL User Name goes here

define('DB_SERVER_PASSWORD', ''); //Your MySQL Password goes here

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false'); // 'false' is correct

define('STORE_SESSIONS', 'mysql'); // to store sessions in the database

 

Vger

Link to comment
Share on other sites

Thank you, Vger. Unfortunately, it did not work. I read some of the threads on similar issues and without success as well. I am starting to think that I may have to reinstall. Any other suggestions? Or recommendation, regarding reinstall?

 

fguizar

 

Well, where to start - it's either wrong or just plain missing:

 

define('HTTP_SERVER', 'http://www.yourdomain.com'); // 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.yourdomain.com');

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('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', ''); //Your MySQL User Name goes here

define('DB_SERVER_PASSWORD', ''); //Your MySQL Password goes here

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false'); // 'false' is correct

define('STORE_SESSIONS', 'mysql'); // to store sessions in the database

 

Vger

Link to comment
Share on other sites

Thank you, Vger. Unfortunately, it did not work.  I read some of the threads on similar issues and without success as well. I am starting to think that I may have to reinstall.  Any other suggestions?  Or recommendation, regarding reinstall?

 

fguizar

 

Reinstalls are seldom effective or useful. Give us a link to the site and we'll probably find the problem in a few minutes.

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

Thank you for the offer. I was not sure if indeed reinstalling was the right thing.

 

The site is www.taylorsuccesssystems.com and the admin page can be found at:

 

http://taylorsuccesssystems.com/admin/index.php

 

To access the admin page, user: "open", password: "open"

 

fguizar

 

Reinstalls are seldom effective or useful. Give us a link to the site and we'll probably find the problem in a few minutes.

Link to comment
Share on other sites

Check the permissions on the images folder. Make them 777 for now

 

You don't have permission to access /catalog/images/table_background_default.gif on this server.

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

I have made the image folder 777. And proceed to add an image for a product. When I did the preview, I still got a red x and this is what the properties tag said:

 

http://taylorsuccesssystems.com/catalog//catalog/images/

 

I suspect there is not .../catalog//catalog/...folder. But where is the xtra, "//catalog" coming from? Any help would be appreciated.

 

thank you.

fguizar

 

Check the permissions on the images folder. Make them 777 for now

 

You don't have permission to access /catalog/images/table_background_default.gif on this server.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...