Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Nov 2006
    Posts
    56
    Plugin Contributions
    0

    Default Store - FATAL ERROR?

    I had a functioning store. But it just stopped working. HEre is the error I receive:

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

    Here is the line referred to on line 39:

    <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>


    When I take the store DOWN FOR MAINTENANCE.... I still see a problem...it's like the template disappeared...

    Need some help, please

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Store - FATAL ERROR?

    Check the directories:
    /includes/languages/english/html_includes
    /includes/languages/english/html_includes/your_template_dir

    They should both have the same filenames in them ...

    For editing, you need the files in your templates and overrides directory to be set for 777 ...

    For use on the store they need to be set to 644 for security purposes ...

    Make sure that you do not have any missing files ...

    You can compare the names to those in a clean Zen Cart v1.3.7 from the Download link at the top of your screen ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2006
    Posts
    137
    Plugin Contributions
    0

    Default Re: Store - FATAL ERROR?

    I have the same problem today, I am wondering if it is a hack attempt

  4. #4
    Join Date
    Oct 2006
    Posts
    137
    Plugin Contributions
    0

    Default Re: Store - FATAL ERROR?

    weird think is other templates I have, but don't use, seem to work
    and my backup_msql installed ages ago no longer shows in admin... it's as if my store has reverted back a few months

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Store - FATAL ERROR?

    Go through your site with FTP and see if files have new dates or have been changed that you have not touched ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Store - FATAL ERROR?

    ask your host if they had a syustem error and reverted to an OLD backup,
    Zen cart PCI compliant Hosting

  7. #7
    Join Date
    Jan 2006
    Location
    Vancouver, BC
    Posts
    71
    Plugin Contributions
    0

    Default Re: Store - FATAL ERROR?

    Do you use SiteGround as a host by any chance? Two of my clients sites with 1.3.7 are toast right now (a third uses Zen 1.2.7 and I see no issues) with the same problem.

    The site at first was displaying an error like the one ehdesign described and, when I looked at the generated source code, it wasn't calling up any template at all. I opened a ticket with SiteGround and they "applied a patch that fixed your problem" - no, not fixed. Now, instead of the site not displaying any template, it displays the default template. In the Admin, I am able to change it to the classic template but, even though it is still a choice in the Admin, it will not display the custom template.

    This thread discusses the same problem and they were able to fix it by restoring the site with a backup. I would love to do the same but the backup contribution I added to both sites has vanished as well.
    http://www.zen-cart.com/forum/showthread.php?t=62146


    All the custom template files appear to be intact. I even uploaded my copy from my pc to the site, one that should have no files corrupted but it did not fix the problem.

    I checked the files and I *think* the applied the 'patch' to the includes/classes/template_func.php file. I think it might be lines 27-54 that were altered as they are different from my original Zen install of 1.3.7:
    Code:
    <?php
    /**
     * template_func Class.
     *
     * @package classes
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: template_func.php 4580 2006-09-21 20:47:18Z wilt $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    /**
     * template_func Class.
     * This class is used to for template-override calculations
     *
     * @package classes
     */
    class template_func extends base {
    
      function template_func($template_dir = 'default') {
        $this->info  = array();
      }
    
      function get_template_part($page_directory, $template_part, $file_extension = '.php') {
        $directory_array = array();
    #    if ($dir = @dir($page_directory)) {
    #      while ($file = $dir->read()) {
    #        if (!is_dir($page_directory . $file)) {
    #          if (substr($file, strrpos($file, '.')) == $file_extension && preg_match($template_part, $file)) {
    #            $directory_array[] = $file;
    #          }
    #        }
    #      }
    #
    #      sort($directory_array);
    #      $dir->close();
    #    }
    
    $fileta = shell_exec("ls -1A $page_directory");
       $fileta = ereg_replace("[\r|\n]", ' ', $fileta);
       $fileta_be = explode(" ", $fileta);
       foreach ($fileta_be as $fileto) {
               if (substr($fileto, strrpos($fileto, '.')) == $file_extension && preg_match($template_part, $fileto)) {
                       $directory_array[] = $fileto;
               }
       }
       sort($directory_array);
    
        return $directory_array;
      }
    
      function get_template_dir($template_code, $current_template, $current_page, $template_dir, $debug=false) {
        //	echo 'template_default/' . $template_dir . '=' . $template_code;
        if ($this->file_exists($current_template . $current_page, $template_code)) {
          return $current_template . $current_page . '/';
        } elseif ($this->file_exists(DIR_WS_TEMPLATES . 'template_default/' . $current_page, ereg_replace('/', '', $template_code), $debug)) {
          return DIR_WS_TEMPLATES . 'template_default/' . $current_page;
        } elseif ($this->file_exists($current_template . $template_dir, ereg_replace('/', '', $template_code), $debug)) {
          return $current_template . $template_dir;
        } else {
          return DIR_WS_TEMPLATES . 'template_default/' . $template_dir;
          //        return $current_template . $template_dir;
        }
      }
      function file_exists($file_dir, $file_pattern, $debug=false) {
        $file_found = false;
        $file_pattern = '/'.str_replace("/", "\/", $file_pattern).'$/';
        if ($mydir = @dir($file_dir)) {
          while ($file = $mydir->read()) {
            if (preg_match($file_pattern, $file)) {
              $file_found = true;
              break;
            }
          }
        }
        return $file_found;
      }
    }
    ?>
    But as I said, this only makes the default display. Not sure what to do (short of switching hosts). Any thoughts?

  8. #8
    Join Date
    Oct 2006
    Posts
    137
    Plugin Contributions
    0

    Default Re: Store - FATAL ERROR?

    Quote Originally Posted by sopretty View Post
    Do you use SiteGround as a host by any chance? Two of my clients sites with 1.3.7 are toast right now (a third uses Zen 1.2.7 and I see no issues) with the same problem.

    This thread discusses the same problem and they were able to fix it by restoring the site with a backup. I would love to do the same but the backup contribution I added to both sites has vanished as well.
    http://www.zen-cart.com/forum/showthread.php?t=62146
    yep, siteground here and they haven't helped at all, just offered me to pay $40 for them to restore
    oh, I'm using 1.3 version, so yep, due to upgrade

    I'm reloading from my last backup all my files etc and am hoping that backup mysql will magically reappear with it so I can restore my database

    I was due for a upgrade, so if none of this fixes it I will start from scratch (insert sarcasm)
    I'm thinking of changing hosts, they are useless

  9. #9
    Join Date
    Jan 2006
    Location
    Vancouver, BC
    Posts
    71
    Plugin Contributions
    0

    Default Re: Store - FATAL ERROR?

    Quote Originally Posted by zas View Post
    yep, siteground here and they haven't helped at all, just offered me to pay $40 for them to restore
    oh, I'm using 1.3 version, so yep, due to upgrade

    I'm reloading from my last backup all my files etc and am hoping that backup mysql will magically reappear with it so I can restore my database

    I was due for a upgrade, so if none of this fixes it I will start from scratch (insert sarcasm)
    I'm thinking of changing hosts, they are useless
    That's spectacular. They recommended I look here or try Google! Not the support guy's fault, I'm sure he did the best he could but come on. I emailed them again about an hour ago demanding they fix what the messed up. I wonder when I'll get my $40 offer... ;)

    As much as I HATE switching hosts (never seems to go smooth), I'm urging my clients to switch to Camelot as it seems to be the only Zen host I haven't heard anything bad about and recall having a very good interaction with Merlin in the past.

    Fun fun.

  10. #10
    Join Date
    Jan 2006
    Location
    Vancouver, BC
    Posts
    71
    Plugin Contributions
    0

    Default Re: Store - FATAL ERROR?

    Well, tried uploading a second custom template but that didn't work either.

    Since the classic template displays, I tried applying customizations to it to see if that would work as a temporary fix but if you so much as add an empty folder to the classic directory, the site displays the default template.

    Does anyone know what SiteGround could have done to make this happen and seemingly be impossible to fix?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 9 Oct 2011, 06:24 AM
  2. Fatal error - can't load admin or store?
    By itseemedsosimple in forum General Questions
    Replies: 4
    Last Post: 8 Feb 2011, 07:22 AM
  3. Replies: 10
    Last Post: 1 Jun 2008, 06:38 AM
  4. Store Fatal Error
    By foryou in forum Installing on a Windows Server
    Replies: 5
    Last Post: 28 May 2007, 03:05 AM
  5. Fatal error: Cannot redeclare class table in ...store/includes/
    By Kansai_mike in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 15 Dec 2006, 06:35 AM

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