Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    6
    Plugin Contributions
    0

    Default Sudden error - Failed opening required '' in tpl_index_default.php

    Hello,

    I'm getting this error:

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

    on www.shoot.ie

    I'm using SSL. This issue happened all of a sudden and no changes were made to the website. I have tried to turn on and off SSL in the /includes/configure.php file but this has not made any change.

    There doesnt seem to be any concrete answer to this problem online

    Any advice?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sudden error - VERY strange

    A few things to check:

    1. /includes/modules/pages/index/header_php.php
    around line 43 you should have a line that says this:
    Code:
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE, 'false');
    2. /includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php
    ('YOUR_TEMPLATE' could be your customized template if you altered the original tpl_index_default in any way. Or, if you didn't, then it would be picking up the template_default version)
    line 39:
    Code:
    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
    3. Do either of these files exist?
    /includes/languages/english/html_includes/define_main_page.php
    or
    /includes/languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php

    What permission-levels are set on the files on the server (check via FTP)?
    .

    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
    Mar 2005
    Posts
    6
    Plugin Contributions
    0

    Default Re: Sudden error - Failed opening required '' in tpl_index_default.php

    Check 1, 2 and 3 were all fine.

    /includes/languages/english/html_includes/define_main_page.php has permissions:
    -rw-rw-rw- 1 shootiel shootiel 1427 May 24 12:36 define_main_page.php

    Are there any folders/files you need permissions of?

    (Again the strange thing is that this was working fine up to a few hours ago and then bang - it stopped)

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sudden error - Failed opening required '' in tpl_index_default.php

    Quote Originally Posted by damalo View Post
    /includes/languages/english/html_includes/define_main_page.php has permissions:
    -rw-rw-rw- 1 shootiel shootiel 1427 May 24 12:36 define_main_page.php
    What happens if you set the file to rwx (777) ?
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sudden error - Failed opening required '' in tpl_index_default.php

    Quote Originally Posted by damalo View Post
    (Again the strange thing is that this was working fine up to a few hours ago and then bang - it stopped)
    I suspect it's likely a global permissions change implemented by your host in a security blitz or something.
    .

    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.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 23 Feb 2013, 11:52 PM
  2. Failed opening required bmz_io_conf.php
    By darknight2ca in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 May 2011, 09:03 AM
  3. 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
  4. Replies: 43
    Last Post: 25 Oct 2006, 12:04 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR