Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Live (Adult) Site: Sudden image probs


strunkwriter

Recommended Posts

Posted

'ello OS Commerce users!

 

My live site has had a very rough week. I was having trouble with my ssl certificate so had my server set an auttransfer to "https://www.elegant-erotica.com" for anyone who types in "https://elegant-erotica.com", I manually changed the base href in the default php code (to https://www.elgant-erotica.com -- so it would match the certificate) and I accidently deleted my database and my hosting company re-installed it from a backup.

 

(Believe the last mistake made me feel like a real idiot. But I had been up all night working on getting the certificate thing taken care of and accidently click on a graphic I didn't mean to click. :oops: )

 

All of this happend in a 13-hour period and, as a result of something, all the graphics and boxes disappeared. I did a half-baked fix that helped a little. (I right clicked on an image, selected properties and discovered browser was looking for the images in www.elegant-erotica.com/images instead of www.elegant-erotica/catalog/images.) So I copied the image file, moved it out a level to see if it would work. And my images returned, but the boxes did not. (Of course).

 

Any ideas how to get the boxes back? (I'm thinking a step really similar to the one above will work, but I want to bounce it off you before I start moving stuff around again.)

 

The OSCommerce portion of my site begins at

https://www.elegant-erotica.com/catalog/default.php. It IS an adult site, so no one under 18, please.

 

OH, and it looks like my stylesheet isn't being used either. I don't know wh. I looked at the code from my browser and it seems to be looking in the right place.

Posted

Going by what you said, and also having a look at your site, I'd put my money in there being a misconfiguration in your /catalog/includes/configure.php file.

 

If you want, you can post your configure.php file here, and I'll check it out for you. (don't bother posting your mysql db config stuff down the bottom of the configure.php file).

 

Cheers,

 

James

Posted

Thanks. Here it is:

 

<?php

/*

$Id: configure.php,v 1.12 2002/06/16 22:11:53 harley_vb Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 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://elegant-erotica.com');

define('HTTPS_SERVER', 'https://elegant-erotica.com');

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

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

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

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

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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', DIR_WS_CATALOG . 'pub/');

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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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

Posted

Everything looks fine - the only way for things to go wrong is if $DOCUMENT_ROOT isn't resolving properly. Check it and/or replace with the actual path.

Regards, Wizzud

"It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."

Posted

I'm not sure if this will EVER help anyone else, but here's what I did:

 

I opened the configure.php file and changed the line that defined the server so it read http(s)://www.elegant-erotica.com and then checked the site. Everything was working now, except for the default page.

 

So, then, I opened the default.php page and changed the base href line back to what it was originally. (Thank goodness I always make a backup of the original file before I start screwing around with stuff.)

 

And, voila, all fixed. I strongly suspect it had something to do with when my host offered to auto forward everyone who typed in http://elegant-erotica.com to http://www.elegant-erotica.com, but I'm not sure WHY it would be. (People who are more technical than me are welcome to add their own theories.)

 

Thanks for your help, everyone.

Archived

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

×
×
  • Create New...