Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[problem] suddenly my site's style is gone


lsd_se

Recommended Posts

my osCommerce site was working fine for over a month. it is not live yet, because I am still uploading stock to it.

suddenly today I went to my site and it looks like this:

 

http://www.genkibooks.com/catalog/

 

what on earth could have happened?

I haven't touched it since I last logged in.

 

I have a backup of the site, could someone tell me which file(s) I should be checking and restoring to fix this up?

 

thanks a lot!

 

daryl

Link to comment
Share on other sites

thats right, that is so weird, the images are all https://

since I haven't touched anything this is really disturbing.

 

thanks for the tip, I'll check it out.

 

here is my configure.php file, thanks in advance for any suggestions on this.

 

<?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.genkibooks.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.genkibooks.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.genkibooks.com');

define('HTTPS_COOKIE_DOMAIN', 'www.genkibooks.com');

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

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

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

define('DIR_WS_HTTPS_CATALOG', '/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/daryl/public_html/bookshop/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', 'false'); // use persistent connections?

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

?>

Link to comment
Share on other sites

my osCommerce site was working fine for over a month.  it is not live yet, because I am still uploading stock to it.

suddenly today I went to my site and it looks like this:

 

http://www.genkibooks.com/catalog/

 

what on earth could have happened?

I haven't touched it since I last logged in.

 

I have a backup of the site, could someone tell me which file(s) I should be checking and restoring to fix this up?

 

thanks a lot!

 

daryl

Did you change any of the paths to your style sheet? I've seen displays like that when the path to the style sheet was FUBARED.

Link to comment
Share on other sites

already restored the sytlesheet.css, didn't fix anything unfortunetly.

 

this https thing is pretty weird.  how would that change?

Are you sure about this line in index.php:

 

<td width="<?php echo BOX_WIDTH_LEFT_IS; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_LEFT_IS; ?>" cellspacing="0" cellpadding="2">

 

 

The original version out of the box is:

 

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

 

 

Ditto for this line:

<td width="<?php echo BOX_WIDTH_RIGHT_IS; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT_IS; ?>" cellspacing="0" cellpadding="2">

 

Out of the box is:

 

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

________________________________________________________________

Just stabbing in the dark until someone who knows what they are doing helps out......................

Link to comment
Share on other sites

my osCommerce site was working fine for over a month.  it is not live yet, because I am still uploading stock to it.

suddenly today I went to my site and it looks like this:

 

http://www.genkibooks.com/catalog/

 

what on earth could have happened?

I haven't touched it since I last logged in.

 

I have a backup of the site, could someone tell me which file(s) I should be checking and restoring to fix this up?

 

thanks a lot!

 

daryl

What's the relationship between

 

http://bookshop.iapecc.com/catalog/

 

and

 

http://www.genkibooks.com/catalog/

 

I'm trying to figure out if the path in your configure file needs to be corrected.

Link to comment
Share on other sites

baddog, thanks for the advice and for checking out my files.

Those lines are changed because I have contribs installed on my shop. All the contribs work fine, I'm trying to narrow down the config problem now.

 

Where can I find out why all the images are pointing at https:// instead of http://? Is that in the configure.php file?

Link to comment
Share on other sites

baddog, thanks for the advice and for checking out my files.

Those lines are changed because I have contribs installed on my shop.  All the contribs work fine, I'm trying to narrow down the config problem now.

 

Where can I find out why all the images are pointing at https:// instead of http://?  Is that in the configure.php file?

If you go to your admin panel and click on one of the categories, you'll see "?info=news_text.txt&action=edit" in the upper left hand corner under the nav bar. That's because of the incorrect line 13 in admin/index.php.

Link to comment
Share on other sites

OK

i temporarily fixed the problem

 

in the configure.php file I changed:

 

define('HTTPS_SERVER', 'https://www.genkibooks.com'); // eg, https://localhost - should not be empty for productive servers

 

to

 

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

 

i changed the https:// to http:// and it fixed the site. now, how can I fix this in a non-temporary way?

Link to comment
Share on other sites

OK

i temporarily fixed the problem

 

in the configure.php file I changed:

 

define('HTTPS_SERVER', 'https://www.genkibooks.com'); // eg, https://localhost - should not be empty for productive servers

 

to

 

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

 

i changed the https:// to http:// and it fixed the site.  now, how can I fix this in a non-temporary way?

 

how are you calling your style sheet ?

Treasurer MFC

Link to comment
Share on other sites

baddog, thanks for the advice and for checking out my files.

Those lines are changed because I have contribs installed on my shop.  All the contribs work fine, I'm trying to narrow down the config problem now.

 

Where can I find out why all the images are pointing at https:// instead of http://?  Is that in the configure.php file?

In your admin/includes/configure.php, you've got:

 

define('HTTPS_CATALOG_SERVER', 'https://bookshop.iapecc.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

In your catalog/includes/configure.php, you've got:

 

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

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

 

Shouldn't those two configuration files agree?

Link to comment
Share on other sites

whoa

how can you see my configure.php files?

then you can see my database passwords etc?

how can you see that?

 

you are right about the admin configure.php file. but unfortunetly that didn't solve the problem. I thought it would actually.

 

one question, on the SSL line:

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 

shoudl the 'false' have ' around it or not?

Link to comment
Share on other sites

whoa

how can you see my configure.php files?

then you can see my database passwords etc?

how can you see that?

 

you are right about the admin configure.php file.  but unfortunetly that didn't solve the problem.  I thought it would actually.

 

one question, on the SSL line:

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 

shoudl the 'false' have ' around it or not?

 

no

Treasurer MFC

Link to comment
Share on other sites

whoa

how can you see my configure.php files?

then you can see my database passwords etc?

how can you see that?

 

you are right about the admin configure.php file.  but unfortunetly that didn't solve the problem.  I thought it would actually.

 

one question, on the SSL line:

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 

shoudl the 'false' have ' around it or not?

It should look like this:

define('ENABLE_SSL_CATALOG', false); // secure webserver for catalog module

Link to comment
Share on other sites

wow

thanks for all the help guys, but it's still not working.....

I double checked all those points and can't seem to find the problem. All the image properties are still pointing to https:// instead of http://

 

i also retored my config files from my site backup, and still the same problem. I'm ready to give up

 

For now I'm jsut going to leave the https:// out of my config files.

Link to comment
Share on other sites

umm, it says this for server info,:

 

SSL Cert:  No valid SSL on this Host

 

does that help?

In that case you'll have to purchase a certificate, you'll also need a dedicated static ip address from your host. Static ip, if you don't have one already, can be obtain from your host. There are many companies who can provide you with SSL Certificates, you are free to choose anyone of them.

Link to comment
Share on other sites

wow

thanks for all the help guys, but it's still not working.....

I double checked all those points and can't seem to find the problem.  All the image properties are still pointing to https:// instead of http://

 

i also retored my config files from my site backup, and still the same problem.  I'm ready to give up

 

For now I'm jsut going to leave the https:// out of my config files.

Have you got a data base backup that you can run.and are you configure.php file right protected??

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...