Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Fatal Error Message After Host Problems?

    I'm REALLY hoping this isn't going to be a huge fix.

    I've got a client's store that is coming up with the following error message:

    Fatal error: main() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/samsarah/public_html/shop/includes/templates/template_default/templates/tpl_index_default.php on line 39
    You can see the way the page begins to load here: http://www.shopsamsara.com

    I'm having issues with my test store on my own web space here: http://shop.audreyportfolio.com/

    Recently, the server that our sites was on had issues and was down for about four hours. My host said the following:

    The following server was had tested for a bad drive segment even though this is very rare, we decided to migrate all the user on your server to a new faster server that is quad core. In doing so the first initial transfer that would have been not noticed has a small period gap in time. We are quickly rebuilding the accounts and will have all back up with 4-5 hours.
    I'm hoping it wasn't caused by that!!

    To be sure, I checked to see if the file giving the error code was on the server and in the correct spot. It's there and looks okay- no blank returns at the end of the file etc.

    I also checked all my permissions, thinking maybe it just couldn't access what it needed. They're all fine.

    I will admit to being an incredible ZenCart Newbie ... can anyone clarify for me what that error means exactly, and if I should be contacting my hosting provider?

    Thanks!

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

    Default Re: Fatal Error Message After Host Problems?

    The tpl_index page typically attempts to load the define_main_page.php file from the /includes/languages/english/html_includes/YOURTEMPLATE/ folder. If that file doesn't exist or its permissions are set such that it's getting blocked, you'll get the error message shown.

    Or, you may have templates installed that reference old code and thus cannot properly display the expected content. There are a number of forum posts discussing this typical post-upgrade problem (esp when moving from v1.2.x to v1.3.x)
    .

    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
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Fatal Error Message After Host Problems?

    Hi Dr. Byte-

    Thanks so much for the quick response!

    I don't have a "define_main_page" file in my /includes/languages/english/html_includes/YOURTEMPLATE/ folder (for the record, I created my own template).

    There is one, however in /includes/languages/english/html_includes/ -

    What should permissions be on that file and the folders that contain them?

    Right now, permissions on the PHP files are set to 644, and permissions on the folders are set to 755.

    I have not changed my template or updated Zen Cart since the site was tested and working just over two weeks ago - the only thing I can think of that has changed is the server problem.

  4. #4
    Join Date
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Fatal Error Message After Host Problems?

    I should add that I am using the most up to date version of Zen Cart (and have been for this entire install.)

    Also, the admin panel is working okay, so that part seems to be just fine.

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

    Default Re: Fatal Error Message After Host Problems?

    Try copying the one from html_includes into html_includes/MY_TEMPLATE (whatever it's called).

    Technically, 644 should be sufficient on the files,but you will require 777 in order to edit via the Admin (Define Pages Editor).
    .

    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
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Fatal Error Message After Host Problems?

    Hi there-

    I've copied the file to /includes/languages/english/html_includes/samsaratemplate/ (my template).

    I've also double checked the permissions.

    No luck.

    I've also noticed that in the admin panel, it's no longer recognizing the "classic" theme, even though all the files are there. I can however "preview" the classic template.

    Interestingly enough, when I try to "preview" my template, samsaratemplate, I get the following:

    Forbidden

    You don't have permission to access /includes/templates/samsaratemplate/images/ on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    I've checked the permissions on all the folders in that access string, and they're all 755.

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

    Default Re: Fatal Error Message After Host Problems?

    Sounds like you need your hosting company involved to reset permissions and apache configuration settings.

    You may also need to rework folder paths in your two configure.php files to suit the new server they moved you to.

    FAQ's that might help:
    http://www.zen-cart.com/wiki/index.p...Switch_Servers
    http://www.zen-cart.com/wiki/index.p...Change_Folders
    .

    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.

  8. #8
    Join Date
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Fatal Error Message After Host Problems?

    Erg. That wasn't what I wanted to hear, but thanks Dr. Byte. I'll look into things.

  9. #9
    Join Date
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Fatal Error Message After Host Problems?

    Well, I've had an unhappy last 24 hours.

    My host claims that due to a CPanel/Fantastico bug, when he moved us to another server and uploaded our backup, the bug caused a corruption issue of some kind on ZenCart installations.

    He said he would try reuploading our backup, which apparently hasn't worked.

    He claims the only alternative I have at this point is to do a clean install of ZenCart and restore my old template and start over.

    Sadly, I had not yet backed up the database as we weren't quite done configuring everything. I have a copy of the current database- would it be a bad idea to try restoring that database, or is that what was corrupt? I have all my custom template files at least, so that's not gone- but reconfiguring everything will take a lot of time!

    I can't get any straight answers out of the host- it sounds like he's handling a lot of issues at the moment and doesn't want to take time with me, his five dollar a month client. (lovely, I know.)

    Does anyone have advice as to what I should do next?

    Thanks again for all the help so far on this issue.

  10. #10
    Join Date
    Feb 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: Fatal Error Message After Host Problems?

    Best weekend ever. /sarcasam.

    Just a quick update- a complete clean reinstall did NOT work. My hosting provider was incorrect- my files and database were likely just fine, it seems. Looks like it is definitely a server issue as Dr. Byte first suspected.

    At this point, I'm going to need to completely reconfigure the store no matter what I do, thanks to his advice.

    Just wanted to let folks know that so far, that is NOT the solution. I will post back with what the final problem ended up being.

    Thanks again. :)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Switched to new Host - PHP Fatal Error?
    By kdpz in forum General Questions
    Replies: 1
    Last Post: 18 Jan 2009, 10:01 PM
  2. Replies: 2
    Last Post: 21 Dec 2006, 07:22 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