Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All images not displaying


valeomax

Recommended Posts

My installation was working perfectly until today(I know because it's my homepage). It's odd as I have not touched it for two weeks.

 

Suddenly all the images are not displaying. The images are still there. However something or somewhere is pointing the images to https location instead of http.

 

Here is my site. If you right click to view the broken images, all of them is pointing to https location. I haven't even installed SSL yet and I uploaded all my images to http location.

 

What is wrong?

 

HELP!

Link to comment
Share on other sites

Cheers m8,

 

I suspected as much as well. >_<

 

My host is suggesting to wipe everything clean as they cannot rectify it and for me to recreate my site.

 

Should I let them do this? I have backed up everything including www pages and database. Any issues that I need to be aware of?

Link to comment
Share on other sites

It looks like what happens when the configure file is not setup correctly. Before taking such a drastic step, you may want to post your configure file here, without the sensitive parts. It may not help but if it does, it could save you a lot of trouble.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

My installation was working perfectly until today(I know because it's my homepage). It's odd as I have not touched it for two weeks.

 

If that's correct then the hosts have messed up. I've seen this happen quite a few times to posters who genuinely haven't touched their files and then find their images are all pointing to https.

 

If the hosts are recommending you scrub the site and start agin, and if it is something they have done then scrubbing the site won't change a thing - except make you mad! It may be time to reconsider your hosting!

 

Vger

Link to comment
Share on other sites

Jack,

 

I am not sure what's sensitive info except for the database user name and password perhaps. Here are the two configure files.

 

.../includes/configure.php

 

<?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', 'http://valeomax.com');

define('HTTPS_SERVER', 'https://valeomax.com');

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

define('HTTP_COOKIE_DOMAIN', 'http://valeomax.com');

define('HTTPS_COOKIE_DOMAIN', 'https://valeomax.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

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

define('DIR_WS_ICONS', '/estock/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', 'localhost');

define('DB_SERVER_USERNAME', '*********');

define('DB_SERVER_PASSWORD', '*********');

define('DB_DATABASE', '**********');

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

define('STORE_SESSIONS', 'mysql');

?>

 

 

.../admin/includes./configure.php

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://valeomax.com');

define('HTTP_CATALOG_SERVER', 'http://valeomax.com');

define('HTTPS_CATALOG_SERVER', 'http://valeomax.com');

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

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/estock/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/estock/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '**********');

define('DB_SERVER_PASSWORD', '**********');

define('DB_DATABASE', '**********');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

 

I can't see anything wrong with them and I haven't touched anything for more than two weeks. Infact I haven't done any tweaking for the past month except look at who has registered. It was working fine yesterday (it's already Saturday here).

 

Vger, where I am it's difficult to get a good hosting with prompt response (forget support). Getting hosting with online payment is nearly impossbile.

Link to comment
Share on other sites

/includes/configure.php

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

 osCommerce, Open Source E-Commerce Solutions
 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 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', 'http://valeomax.com');
define('HTTPS_SERVER', '');
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'valeomax.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/estock/');
define('DIR_WS_HTTPS_CATALOG', '');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', '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', 'path_root/estock/); //if you can then change this to th actual pathway used e.g. /var/www/html/estock/
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '*********');
define('DB_SERVER_PASSWORD', '*********');
define('DB_DATABASE', '**********');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql');
?>
/admin/includes./configure.php

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 Copyright ? 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
define('HTTP_SERVER', 'http://valeomax.com');
define('HTTP_CATALOG_SERVER', 'http://valeomax.com');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/path_to_root/');
define('DIR_WS_ADMIN', '/estock/admin/');
define('DIR_FS_ADMIN', 'path_to_root/etsock/admin/');
define('DIR_WS_CATALOG', '/estock/');
define('DIR_FS_CATALOG', 'path_to_root/estock/');
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/');

// define our database connection
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '**********');
define('DB_SERVER_PASSWORD', '**********');
define('DB_DATABASE', '**********');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', '');
?>

 

Try those settings

 

Vger

Link to comment
Share on other sites

Vger,

 

Excellent stuff m8! You've got it working now! :thumbsup:

 

If you are ever in Malaysia, leave me a note and I'll take you out for a cuppa.

 

Now...what exactly went wrong?

 

I had a feeling that it was something on the hosting side because if I click Scripts Library in Cpanel and try to install anything, this comes up

[a fatal error or timeout occurred while processing this directive][a fatal error or timeout occurred while processing this directive]
Link to comment
Share on other sites

Take regular backups of your database (via download) and always keep a copy of all website folders/files on your computer - looks like you may need them!

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...