Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44
  1. #11
    Join Date
    Oct 2006
    Location
    UK
    Posts
    25
    Plugin Contributions
    0

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

    Thanks for your reply.. I have set everything within \includes\languages to 600 and much of everything else to 644, but there is no change.

    I don't have any php_flag or php_value statements in .htaccess files at all, but there are some commented out ones in \admin\.htaccess (below):
    Code:
    # Fix certain PHP values
    
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>
    
    # to turn off register_globals
    # php_value register_globals 0
    After my host co migrated the site, it worked for a while, then just stopped working.

    What else could I try? I appreciate the suggestions, keep em comming!

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

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

    The admin area of my site appears to work fine, if thats of any help?

  3. #13
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

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

    It's not just your html_includes folder that needs changing ...

    *All* folders that were set at 777 (world-writable) before now need to be set to 755.

    This includes all the folders that you set to 777 when you first installed zen - see the readme/install instructions in the zen cart /docs folder for a list of the folders (eg. your image folder and it's sub-folders) - and it includes your custom html_includes folder. In other words, there's more folders than just the html_includes that you'll need to change permissions on to get your site working again.

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

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

    The whole shop is now at 755, but no change..

  5. #15
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

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

    You're getting a fail on function.require:

    Fatal error: main() [function.require]: Failed opening ...
    If you look here:

    http://uk.php.net/function.require

    and then scroll down to the comments, you'll see a tip:

    If you are experiencing a bug related to using relative paths with include or require, it may be related to a grandparent directory that is executable but not readable. It will cause __FILE__ to return a relative path instead of the full path which it is supposed to show...
    So you may want to check the permissions again on the folders leading to shop/includes/templates/template_default/templates/tpl_index_default.php.

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

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

    Hmm, interesting. All folders in that path are readable, up to public_html, which is the last one I can access with FTP. Is it possible that one lower down is not readable such as /home or /home/t3tuning?

  7. #17
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

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

    home and public_html should be fine (unless you've changed them, of course) - so check your folder permissions down to the file tpl_index_default.php.

    Does that file exist? What are the permissions on it?

    Another aspect of PHPSuExec is that any files that were previously owned by 'nobody' will now not be accessible by your user name (because all files must now be 'owned' by your user name for your account to access them). So check to see if you have any files/folders (below public_html) owned by 'nobody' - if you do, you will need to get your host to chown them back to your user name.
    Last edited by Pixxi; 4 Oct 2006 at 05:26 PM.

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

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

    Yes, the file exists and it and all its parent folders (/public_html/shop/includes/templates/template_default/templates) and set to 755.

    How do I check 'ownership'?

  9. #19
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

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

    You should be able to see the owner and group listed alongside each file/folder in your FTP program together with size, last date modified, etc.

    If yours doesn't show you that (and you may have to select an option to enable that view) try FileZilla (free) - I think that one does, IIRC.

  10. #20
    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 yeah, eveything has an owner of "32296" and a group of "32295"...

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

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