Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site came down due to small change.


CodeCutter

Recommended Posts

Posted

I made small change to \includes\header.php

Just changed name of an image file.

<img src="images/logo.gif" width="125" height="72"> was changed to

<img src="images/logo_tm.gif" width="75" height="75">

 

Now the site does not show anything. What might have gone wrong?

 

I checked with hosting company and they say web server is up and running.

(They are right. I can access admin section.)

I tried replacing the file with backup, but site does not show up.

How do I debug and fix this?

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Posted

You need to restore your header.php file (this was the one you were working on?). I can't get any of the pages on your site, and my guess is that it's because the header file is messed up. Delete the messed up one before uploading the default version.

 

Vger

Posted

This is so confusing. My website (www.organio.com) works well when viewed in IE, but does not show ANYTHING when viewed in Firefox.

 

What do I do? Thanks.

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Posted
This is so confusing. My website (www.organio.com) works well when viewed in IE, but does not show ANYTHING when viewed in Firefox.

 

What do I do? Thanks.

 

you got bigger problems. it currently doesnt work in any browsers, IE or Firefox. If you do a view source when you hit your site it's blank (in firefox). in IE it redirects you to another site.

 

you probably see it ok in IE because its locally cached.

 

Good Luck.

Posted

All of you,

Thanks for all your help. The problem is resolved.

 

First, I restored just 2 files index.php and header.php It did not work.

 

Then I had to restore ALL the files from the backup. Funny thing is that the site would STILL would not come up, however admin section was working okay.

 

Then I thought, maybe the php code is okay, but it is not getting any data from the database. So I restored mySQL database. and BINGO. The site shows up now.

 

Lessons learned: (not for experts, newbies like me :)

 

1. ALWAYS have a backup for site + database.

2. Analyze step-by-step.

3. It is not necessarily PHP code that is bad, it may be the database.

 

I still do not understand how changes to header.php files screwed up the database. Any expert opinions? But I won't worry about that much right now.

 

I will post on another forum for request to analyze my website. Once again, thanks all of you.

-- Reality is an illusion caused due to lack of alcohol.

-- We are never too old to learn something new.

Archived

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

×
×
  • Create New...