Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images missing again


trevb54

Recommended Posts

Well it happened again. This time on a different site. I set up oscommerce to one site and it lost all the images and no matter what I did I was unable to recover it. So I then set it up on a different site (web-fx.net.au) and it was all working well until I checked it today. (I've been away for a week) All the images again, are gone???? I have been using autoresponder magic which has an activater code in the index page, that is not directly linked to the oscommerce site, but does any one know if it would corrupt my oscommerce site? I am waiting to hear from my server to see if it's there as the same server has been used both times. I hope someone can help please.

Link to comment
Share on other sites

looks to me like you didnt setup your configure.php files properly or you have configure.php files located in the includes/local which should not be there

Link to comment
Share on other sites

looks to me like you didnt setup your configure.php files properly or you have configure.php files located in the includes/local which should not be there

 

 

I checked that folder and there is no configure.php in there at all only a cvsignore file and a read me file. If you right click on an image file and select properties, it has 3 forward slashes before the image required. e.g. http:///images/mb149.gif

I know that's wrong but where it went wrong I don't know. It was working perfectly for about a week.

Link to comment
Share on other sites

It looks to me as though you don't have your domain set in includes/configure.php, as in:

 

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

 

Vger

 

I had a look at the file in question and seems right.

Here is a copy of it

 

<?php

/*

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://www.web-fx.net.au'); // 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.web-fx.net.au');

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

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

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

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

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

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

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

?>

Link to comment
Share on other sites

Go to: http://web-fx.net.au/catalog/index.php

 

Have a look at the source, you'll find:

 

<base href="">

 

So the server is for some reason choosing the https domain and path.

 

The easy fix is to set

 

define('HTTPS_SERVER', 'http://www.web-fx.net.au');

 

and

 

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

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

 

If you want to investigate the reason for the server's doing this see:

 

http://www.oscommerce.com/forums/index.php?sho...ndpost&p=672623

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

Go to: http://web-fx.net.au/catalog/index.php

 

Have a look at the source, you'll find:

 

<base href="">

 

So the server is for some reason choosing the https domain and path.

 

The easy fix is to set

 

define('HTTPS_SERVER', 'http://www.web-fx.net.au');

 

and

 

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

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

 

If you want to investigate the reason for the server's doing this see:

 

http://www.oscommerce.com/forums/index.php?sho...ndpost&p=672623

 

Your a genius. That has almost almost fixed it thankyou very much. I am still missing a few images and the background colour still hasn't loaded. Any other ideas please?

Link to comment
Share on other sites

What images are missing? You probably goofed somewhere else.

 

Oh, I see:

 

Now you've got

 

<base href="http://web-fx.net.au">

 

Did you set the

 

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

 

The base href should be:

 

<base href="http://web-fx.net.au/catalog/">

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

Hi

 

This is a problem I also have that I posted about myself (one of three with a Windows server).

 

http://store.pressdigital.com.au/store/

 

We can't see product images. I viewed the source and if I looked for "specials" which is a missing image, it looks like the right path to me.

 

Our configure.php file:

 

 

<?php

/*

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://store.pressdigital.com.au');

define('HTTPS_SERVER', '');

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

define('HTTP_COOKIE_DOMAIN', 'store.pressdigital.com.au');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '');

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

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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

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', 'C:/htdocs/store/');

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

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

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

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

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

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

 

 

// STS: ADD: Define Simple Template System files

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');

define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

// STS: EOADD

 

?>

 

 

Can anyone see anything wrong? Alan, would it help to adapt your ggetenv.php to show all my settings, you think?

 

thanks from a getting desparate

 

Kym

 

PS I know the configure file etc. file is not protected.

Link to comment
Share on other sites

What? images are missing? You probably goofed somewhere else.

 

Oh, I see:

 

Now you've got

 

<base href="http://web-fx.net.au">

 

Did you set the

 

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

 

The base href should be:

 

<base href="http://web-fx.net.au/catalog/">

 

Alan I don't know how to thank you for your help. But I'm sure glad you did. I hadn't set

define('DIR_WS_HTTPS_CATALOG', '/catalog/'); ? but I have now and it's perfect. Thankyou once again. Thankyou to all who also submitted there advise. It is a truely powerful resource.

 

Trevor

Link to comment
Share on other sites

Hi

 

This is a problem I also have that I posted about myself (one of three with a Windows server).

 

http://store.pressdigital.com.au/store/

 

We can't see product images.  I viewed the source and if I looked for "specials" which is a missing image, it looks like the right path to me.

 

Our configure.php file:

<?php

/*

  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://store.pressdigital.com.au');

  define('HTTPS_SERVER', '');

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

  define('HTTP_COOKIE_DOMAIN', 'store.pressdigital.com.au');

  define('HTTPS_COOKIE_DOMAIN', '');

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

  define('HTTPS_COOKIE_PATH', '');

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

  define('DIR_WS_HTTPS_CATALOG', '');

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

  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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

  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', 'C:/htdocs/store/');

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

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

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

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

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

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

// STS: ADD: Define Simple Template System files

  define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

  define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

  define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

  define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');

  define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html');

  define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

  define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

  define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

// STS: EOADD

 

?>

Can anyone see anything wrong? Alan, would it help to adapt your ggetenv.php to show all my settings, you think?

 

thanks from a  getting desparate

 

Kym

 

PS I know the configure file etc. file is not protected.

 

Hi Kym has your problem been fixed yet?

If not you may have the same problem I did and that is as follows.

 

define('HTTP_SERVER', 'http://store.pressdigital.com.au');

define('HTTPS_SERVER', '');

You may need to change the line above to

 

define('HTTPS_SERVER', 'http://store.pressdigital.com.au');

 

See how you go

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...