Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Broken Images and Formatting in Admin


mrkeetz

Recommended Posts

Hey folks. I just installed osCommerce, and everything seems to have gone fine. The site looks like it's working ok as to the default installation, but when I go to the admin side, it has no images for buttons, and looks like all the formatting isn't working. Just basic text links etc... Does anyone have any ideas on this?

Link to comment
Share on other sites

I think so. I installed in the webroot so I don't know if that is making a difference. Everything on the front-end seems to be ok.

Here's my admin configure.php. Does anyone see anything wrong?

 

 

define('HTTP_SERVER', 'http://www.14kinc.com');

define('HTTP_CATALOG_SERVER', 'http://www.14kinc.com');

define('HTTPS_CATALOG_SERVER', 'https://www393.safesecureweb.com/*********/');

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/vservers/hudsongold/htdocs/');

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

define('DIR_FS_ADMIN', '/vservers/hudsongold/htdocs/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/vservers/hudsongold/htdocs/');

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

Link to comment
Share on other sites

in includes/application_top.php

 

Try changing

 

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

 

to

 

 

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

 

or to

 

$request_type = ($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL';

Link to comment
Share on other sites

If there is a .htaccess file in the /admin/includes folder, rename it to text.htaccess

 

A malformed .htaccess there can cause loss of admin formatting.

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

If there is a .htaccess file in the /admin/includes folder, rename it to text.htaccess

 

A malformed .htaccess there can cause loss of admin formatting.

:)

 

That worked. It's weird because I already did this. 2nd time is a charm I guess.....

Anyway. Thanks for the help guys. I really appreciate it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...