Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2009
    Posts
    26
    Plugin Contributions
    0

    Default 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

    Code:
    [<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....

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Fatal Error: html_header.php missing

    Quote Originally Posted by Secret Weapon View Post
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Posts
    26
    Plugin Contributions
    0

    Default 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', '****');

  4. #4
    Join Date
    Sep 2009
    Posts
    26
    Plugin Contributions
    0

    Default 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. #5
    Join Date
    Sep 2009
    Posts
    26
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Fatal Error: html_header.php missing

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2009
    Posts
    26
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Fatal Error: html_header.php missing

    (whew)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Sep 2009
    Posts
    26
    Plugin Contributions
    0

    Default 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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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.p...ing_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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 application/x-httpd-php html_header.php PHP script text
    By Parafanaylya in forum General Questions
    Replies: 3
    Last Post: 29 Aug 2015, 03:06 PM
  2. Replies: 1
    Last Post: 11 Jul 2014, 01:35 PM
  3. Replies: 1
    Last Post: 4 Nov 2013, 04:18 AM
  4. v139d PHP Fatal error: Internal Zend error - Missing class information
    By badarac in forum General Questions
    Replies: 3
    Last Post: 1 May 2012, 01:33 PM
  5. html_header.php is missing from my custom template
    By seliko5 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Mar 2011, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg