Zen Cart Logo
Forums / General Questions / Fatal Error: html_header.php missing

Fatal Error: html_header.php missing

Views: 1,338

Results 1 to 12 of 12
5 Jun 2012, 3:14 PM
#1
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Fatal Error: html_header.php missing

I recently made changes to configure.php to change the database name and password -- and after uploading the new files I found myself with blank pages. Following the instructions on the blank page support thread ( http://www.zen-cart.com/content.php?124-blank-page ) I have:

confirmed that the configure.php file had uploaded successfully (4.57kb and correct permissions in all locations)

confirmed that there is no misplaced comma in either of the modified sections

But this is the error I'm getting now

[<a href='function.require'>function.require</a>]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/misterjustin/secretweaponminiatures.com/index.php on line 26

We're using a custom template and, sure enough, I don't have an html_header.php file -- only tpl_header.php

Going into the default template folder I do see html_header.php

Having changed nothing but the configure.php files I'm reluctant to start messing about with the template -- and so here I am asking for input.

Thanks in advance....

5 Jun 2012, 4:08 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Fatal Error: html_header.php missing

Secret Weapon:

I recently made changes to configure.php ...

But this is the error I'm getting now

Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php'

Your real problem has nothing to do with html_header.php

The real issue is that you've broken the defines in your configure.php file, and thus preventing DIR_WS_TEMPLATES from getting its proper value. Thus you're causing the code to look for html_header.php in a non-existent path.

5 Jun 2012, 4:12 PM
#3
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Re: Fatal Error: html_header.php missing

Yeah, I figured that I had broken something in configure.php -- but I've gone over it again and again and don't see a misplaced comma or other common syntax error.

It was really just a matter of changing the DB name and password. The modified lines are here -- redacted, of course.

define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '
');

5 Jun 2012, 7:11 PM
#4
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Re: Fatal Error: html_header.php missing

Okay, I seem to have corrected the syntax error by going back to an archived version of the file and entering the new database name and password... but now...

Warning: require(DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php) [function.require]: failed to open stream: No such file or directory in /home/misterjustin/secretweaponminiatures.com/chickenbutt/includes/languages/english.php on line 50

Fatal error: require() [function.require]: Failed opening required 'DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/misterjustin/secretweaponminiatures.com/chickenbutt/includes/languages/english.php on line 50

I'm assuming this is a NEW syntax error but... UGH!

Going on three days now of trying to puzzle this out and it's killing me!

5 Jun 2012, 8:17 PM
#5
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Re: Fatal Error: html_header.php missing

Derp. I copied my store configure file over my admin configure file. Derp. Derp. Derp.

I downloaded a clean copy of 1.3.9h and I'm going through the configure file now... but I'm lost.

UGH!

5 Jun 2012, 11:38 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Fatal Error: html_header.php missing

You had backups of both files before you made changes, right?

5 Jun 2012, 11:42 PM
#7
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Re: Fatal Error: html_header.php missing

Yes.

We make backups of the site periodically every day -- so while I was a dope and only saved one file, not realizing there were DIFFERENT configure.php files, I have it on good authority that my missing file will be to me shortly.

Sigh.

5 Jun 2012, 11:48 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Fatal Error: html_header.php missing

:clap: (whew)

6 Jun 2012, 12:28 AM
#9
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Re: Fatal Error: html_header.php missing

I got the file and... I FIXED A THING!

This is good.

Any suggestion on a way to keep track of the payment module -- I can't use Tripwire with our host and I'd like to be alerted the next time someone changes our payment settings to re-route money to their PayPal account instead of ours. I'm sure you can understand that I wasn't in favor of that.

6 Jun 2012, 4:07 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Fatal Error: html_header.php missing

If you were to do a thorough cleanup of your site to remove all backdoors added by whoever gained unauthorized access in the first place (see http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks ) and upgrade to the latest Zen Cart version, you'd be in better shape. For example, the latest version triggers emails to the administrator whenever a module's settings are changed via the admin console.

6 Jun 2012, 4:16 AM
#11
secret_weapon avatar

secret_weapon

New Zenner

Join Date:
Sep 2009
Posts:
26
Plugin Contributions:
0

Re: Fatal Error: html_header.php missing

We're looking into new hosting now -- Dreamhost won't let us upgrade beyond 1.3.9h so....

I also have someone writing a script to monitor the mySQL database for admin changes so that if it happens outside of the admin console, like it did this time, we'll get a notification anyway. Like Tripwire but something we can actually run prior to changing hosts.

6 Jun 2012, 4:44 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Fatal Error: html_header.php missing

Secret Weapon:

We're looking into new hosting now -- Dreamhost won't let us upgrade beyond 1.3.9h
Huh?

Please explain.

Do you mean that they simply don't offer a "one-click install of v1.5.0"?
If so, that has nothing to do with "won't let us upgrade".

An upgrade should be done MANUALLY anyway. You should NEVER use a one-click "upgrade" option provided by your hosting company, at least not with Zen Cart v1.xxx. Doing an upgrade that way would break your site for sure.
A proper upgrade is done this way: https://www.zen-cart.com/upgrade

Or is there something about Dreamhost's servers that has had them SPECIFICALLY tell you not to upgrade to the newer more secure version?