Results 1 to 10 of 44

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Location
    UK
    Posts
    25
    Plugin Contributions
    0

    Default Fatal error: main() Failed opening required '' in tpl_index_default.php

    I have just suddenly started getting this error message (amongst others) on my site (www.t3tuning.co.uk).:

    Fatal error: main() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php') in /home/t3tuning/public_html/shop/includes/templates/template_default/templates/tpl_index_default.php on line 42

    Its running v1.2.5 of zencart, and is a mature site having been up for a while. I haven't changed any files recently, so it must be a change on the server of some sort.

    The line in question is:

    HTML Code:
    <td class="plainBox"><?php require($define_main_page); ?><br /></td>
    ..and it looks like "$define_main_page" is not defined on that page. It must be defined somewhere, but what could have changed on the server that could have broken this mechanism?

    I have searched the forums, and people have had some similar problems (like http://www.zen-cart.com/forum/showthread.php?t=47585), but no definate solutions. I am getting no help from my hosting co, and am getting desparate!

    Thanks, Chris

  2. #2
    Join Date
    Oct 2006
    Location
    UK
    Posts
    25
    Plugin Contributions
    0

    Default Re: Fatal error: main() Failed opening required '' in tpl_index_default.php

    Anyone know the answer??

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Fatal error: main() Failed opening required '' in tpl_index_default.php

    Your permissions on your /includes/languages/english/html_includes files are too low, causing them to not be readable, and thus the error.
    .

    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.

  4. #4
    Join Date
    Oct 2006
    Location
    UK
    Posts
    25
    Plugin Contributions
    0

    Default Re: Fatal error: main() Failed opening required '' in tpl_index_default.php

    I don't have an html_includes directory in /includes/languages/. Should there be one in my version of zencart? I have lowered all permissions on everything in the /includes/languages/ folder, with no change..

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Fatal error: main() Failed opening required '' in tpl_index_default.php

    Quote Originally Posted by sprintstar
    I don't have an html_includes directory in /includes/languages/. Should there be one in my version of zencart? I have lowered all permissions on everything in the /includes/languages/ folder, with no change..
    Well, your code is making reference to "define pages". Those are stored in the /includes/languages/english/html_includes folder.
    .

    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.

  6. #6
    Join Date
    Oct 2006
    Location
    UK
    Posts
    25
    Plugin Contributions
    0

    Default Re: Fatal error: main() Failed opening required '' in tpl_index_default.php

    Ah well I have an html_includes folder in /includes/languages/english/, but I have set the permissions on everything in the languages folder to 766, with no change. Where does $define_main_page get assigned a value, and what could have suddenly changed on my server to stop this working?

 

 

Similar Threads

  1. Fatal Error: Failed opening required 'includes/application_top.php'
    By WeebleSue in forum Installing on a Linux/Unix Server
    Replies: 18
    Last Post: 24 Oct 2007, 03:38 AM
  2. Replies: 4
    Last Post: 18 Jul 2007, 11:53 PM
  3. Replies: 0
    Last Post: 20 Feb 2007, 01:39 AM
  4. Fatal error: main(): Failed opening required
    By MFP in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Oct 2006, 03:39 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