Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

no css or images on product pages


fremitus

Recommended Posts

Posted
not sure what's going on here. the index of the store looks right (please ignore the permissions error for config file) as do the shopping cart and such, but product pages are broken as can be. any thoughts?

 

http://www.jmpmusic.com/store

You have a wrong setting in your includes/configuration.php file. Post it here WITHOUT the database/password info at the bottom for review.

Posted
You have a wrong setting in your includes/configuration.php file. Post it here WITHOUT the database/password info at the bottom for review.

 

i was already messing around with it some trying to figure out what was up, this site has no https so that's why some of that is missing...

 

 

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

 

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

define('HTTP_COOKIE_DOMAIN', 'jmpmusic.com');

 

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

 

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

 

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

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

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

Posted

This config file looks fine. You may have another configuration.php file in the folder store/includes/local that is being used.

When you view the source code of a generated page from your website. The base href shows as

<base href="HTTPS_SERVERDIR_WS_HTTPS_CATALOG">

Posted

It appears that the request type is being set to https

In includes/application_top.php look for this line

// set the type of request (secure or not)
 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

If this is true or 'on', then the else statement below will execute

if ($request_type == 'NONSSL') {
define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
 } else {
define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
 }

Since DIR_WS_HTTPS_CATALOG is not defined in your configuration file, 'DIR_WS_CATALOG' takes the actual value (DIR_WS_HTTPS_CATALOG) as text. Not an interpreted value.

 

Maybe someone else can figure why the $request_type is being set to on?

Posted

setting it to off worked

 

// set the type of request (secure or not)

$request_type = (getenv('HTTPS') == 'off') ? 'SSL' : 'NONSSL';

 

so it's not looking for a secure site now, that should be fine right?

Archived

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

×
×
  • Create New...