Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 44
  1. #31
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

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

    Your stylesheet is not showing because there is likely a permissions problem there caused by the .htaccess settings.

    Zen Cart supplies some .htaccess settings in the /includes/.htaccess file which are intended to protect from inappropriate snooping of your files by hackers etc.
    It seems your host doesn't like letting you control things that way, and thus you will have to rename or delete that file in order for your stylesheet to be accessible. Then you will need to get your hosting company to help you find another way to prevent unauthorized access to your .php files via a browser.

    That may also help with your define pages being reachable; however, they are not accessed by the browser directly and thus the .htaccess should have no effect on them.
    .

    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.

  2. #32
    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 only text in that .htaccess file is as follows:

    <Files *.php>
    Order Deny,Allow
    Deny from all
    </Files>
    This shouldn't affect the stylesheet should it?

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

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

    Normally it should not, but ... for some unexplained reason ... on some hosts it does.

    Well ... part of that "unexplained reason" is how the host has their apache configured. They can set things up so that you are NOT allowed to use those directives in your own .htaccess files. This is typically a sign of paranoia on the host's part ... where they have too many clients on their server and can't be bothered to check on security regularly.
    .

    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. #34
    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 can't see where the css is included in the generated code?

  5. #35
    Join Date
    Jul 2005
    Posts
    14
    Plugin Contributions
    0

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

    Quote Originally Posted by sprintstar
    Hosting company is www.hosting-unlimited.co.uk. I am applying as much pressure on them as I can, but no progress at the moment..
    We also have a site hosted by the same company and we also have the same problem. Have you been able to find any kind of resolution?

    The one thing I did notice is that although Zen admin works ok, there are no pages listed in Tools->Define pages editor, just an empty drop down.

    Need to get this fixed asap! HU never respond, but they must have changed something.

  6. #36
    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

    I would agree with Dr. Byte - find a new host ASAP.

    From people's posts on their forum, the host seems to have migrated you to a new server, installed PHP as a CGI module, and (perhaps?) also upgraded you to PHP 5.0 (although they say PHP 4.x is still available), all seemingly without any advance warning or discussion on their forum about the likely problems or workarounds.

    Then they go walkabout for a day or two and don't reply to client's forum posts or tickets just as the proverbial hits the speeding aerofoil.

    I'd be out of there like a shot

  7. #37
    Join Date
    Jul 2005
    Posts
    14
    Plugin Contributions
    0

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

    OK, I am going to attempt to move the site to another host as soon as possible, but in the mean time our shop is down and there appears to be very little I can do about it.

    Can you think of any trick we can use to get it running again where it is now as I am way too tired to migrate the site to a new host at the moment.

    Thanks for your help by the way.

  8. #38
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

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

    Try turning off all the define pages in Admin->Configuration->Define Pages, as that should stop the attempt to display that data, thus skipping the error message.
    .

    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. #39
    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 have no resolution. My support tickets are still unanswered, nothing on the forums etc.

    My define pages are still listed in my dropdown box, but they are of no use anyway. You can turn them off as DrByte suggests, but the stylesheets are still screwed etc.

    I have found another host, and am transfering the site over. I installed the latest version on my new server, but then realised I should install exactly the same version as the existing shop, then that would make it easiest to transfer the database over.

    Paul, got your pm, will email you..

    Chris

  10. #40
    Join Date
    Jul 2005
    Posts
    14
    Plugin Contributions
    0

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

    Well, after absolutley no help from the hosting company we have moved the site to myserverworld/hosteurope/webfusion setup.

    I have managed to restore the database and upload the files but I cant work out what I need to put in configure.php to get the DB to connect with this host.

    Anyone out there using these guys for hosting that can shed some light? Would really appreciate it, our shop has been down for 3 days

 

 
Page 4 of 5 FirstFirst ... 2345 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