Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No images appearing


pinballpickup

Recommended Posts

I have a problem, possibly a configue.php problem (because it is the only file i have edited).

 

The problem is that i have no images appearing on my catalog pages*. I have entered my database server username, database server password, data=base name and changed my store sessions to 'mysql' within the configure file.

 

If i remove any of these entered values i get a '1046 - no database selected ...' message.

 

I would be grateful for any help or recommendations,

 

thanks in advance,

PINBALLPICKUP.

 

*www.drgadgetz.co.uk/catalog

Link to comment
Share on other sites

I have a problem, possibly a configue.php problem (because it is the only file i have edited).

 

The problem is that i have no images appearing on my catalog pages*.  I have entered my database server username, database server password, data=base name and changed my store sessions to 'mysql' within the configure file. 

 

If i remove any of these entered values i get a '1046 - no database selected ...' message.

 

I would be grateful for any help or recommendations,

 

thanks in advance,

PINBALLPICKUP.

 

*www.drgadgetz.co.uk/catalog

 

 

your images display just fine in FF

Treasurer MFC

Link to comment
Share on other sites

your images display just fine in FF

 

but definitely not in IE

 

interesting problem, how can it show okay in FF but not in IE?

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

Thaks for the quick response.

 

Sorry, not that clued up... where is the base href tag?

 

Is it not a catalog/includes/configure.php problem; as that is the only file i have changed?

 

 

don't think so, when you open any php main file you will see this statement within the header tags:

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

 

that would normally result in a line in your outputted html of :

 

<base href="http://www.your_server.com/"> or

 

<base href="https://www.your_server.com/">

 

In your output it says :

 

<base href="">

 

resulting in IE that all images and links miss your server name.

Treasurer MFC

Link to comment
Share on other sites

I checked the properties of an image, and got this:

http:///images/dvd/blade_runner.gif

 

So I think it is an includes/configure problem

 

try

 

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

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

 

 

it looks like you might have:

 

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

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

 

or you might have a / at the end of

 

define('HTTP_SERVER', 'http://yoursiteaddress'blah blah (right after address!)

 

Jeremy

Link to comment
Share on other sites

I checked the properties of an image, and got this:

http:///images/dvd/blade_runner.gif

 

So I think it is an includes/configure problem

 

try

 

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

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

it looks like you might have:

 

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

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

 

or you might have a / at the end of

 

define('HTTP_SERVER', 'http://yoursiteaddress'blah blah (right after address!)

 

Jeremy

 

 

Thanks for pointing me in the right direction Jeremy,

 

yet i am still struggling. When i upload and install oscommerce only half of my configure.php page is automatically filled in, can someone please help me with what i insert into the empty spaces.

 

Thank you,

 

here is an example of my includes/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', '');

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', 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'); // 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', '*****'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

I've put what I'd change in bold, other than that I think it should be ok, let us know

 

 

Thanks for pointing me in the right direction Jeremy, 

 

yet i am still struggling.  When i upload and install oscommerce only half of my configure.php page is automatically filled in, can someone please help me with what i insert into the empty spaces. 

 

Thank you,

 

here is an example of my includes/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', 'put your site address here'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'put your secure site address here if you have one'); // eg, https://localhost - should not be empty for productive servers

  define('ENABLE_SSL', false[/b]you'd change this if you have an ssl cert.); // secure webserver for checkout procedure?

  define('HTTP_COOKIE_DOMAIN', 'put your site address here');

  define('HTTPS_COOKIE_DOMAIN', 'put your secure site address here if you have one');

  define('HTTP_COOKIE_PATH', 'my site has a / here, you may or may not need it');

  define('HTTPS_COOKIE_PATH', 'again if you have a secure server you mightt need to put a / here');

  define('DIR_WS_HTTP_CATALOG', 'my site has a / here, you may or may not need it');

  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', 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'); // 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', '*****'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...