Thread: Fatal Error

Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Fatal Error

    All I did was change the text of Congratulations ,,,,,,
    And now I get this: Fatal error: Call to undefined function: zen_check_url_get_terms() in /home/content/s/u/p/supertshirts/html/zencart/index.php on line 30


    I have put alot of time into loading products in my shop and now it does not work. I am new to this and do not know what I did wrong. I can get to admin fine its that I cant get to the site.

    Please Help

    Thanks

    Steve

  2. #2
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Fatal Error

    Quote Originally Posted by wallst001 View Post
    All I did was change the text of Congratulations ,,,,,,
    And now I get this: Fatal error: Call to undefined function: zen_check_url_get_terms() in /home/content/s/u/p/supertshirts/html/zencart/index.php on line 30


    I have put alot of time into loading products in my shop and now it does not work. I am new to this and do not know what I did wrong. I can get to admin fine its that I cant get to the site.

    Please Help

    Thanks

    Steve
    1. What happens if you undo the change you made?
    2. What *exactly* did you change? Perhaps you created a PHP syntax error with mismatched quotes or brackets or semicolons or parenthesis?
    .

    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
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Fatal Error

    Here is the file, any help appreciated
    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: index.php 6531 2007-06-26 00:55:30Z drbyte $
     */
    
    define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');
    
    // Showcase vs Store
    if (STORE_STATUS == '0') {
      define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
    } else {
      define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
    }
    
    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');
    
    define('TEXT_INFORMATION', 'Define your main Index page copy here.');
    
    //moved to english
    //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');
    
    //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
    //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
    
    if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
      // This section deals with product-listing page contents
      define('HEADING_TITLE', 'Available Products');
      define('TABLE_HEADING_IMAGE', 'Product Image');
      define('TABLE_HEADING_MODEL', 'Model');
      define('TABLE_HEADING_PRODUCTS', 'Product Name');
      define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
      define('TABLE_HEADING_QUANTITY', 'Quantity');
      define('TABLE_HEADING_PRICE', 'Price');
      define('TABLE_HEADING_WEIGHT', 'Weight');
      define('TABLE_HEADING_BUY_NOW', 'Buy Now');
      define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
      define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
      define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
      define('TEXT_SHOW', 'Filter Results by:');
      define('TEXT_BUY', 'Buy 1 \'');
      define('TEXT_NOW', '\' now');
      define('TEXT_ALL_CATEGORIES', 'All Categories');
      define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
    } elseif ($category_depth == 'top') {
      // This section deals with the "home" page at the top level with no options/products selected
      /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.');
    } elseif ($category_depth == 'nested') {
      // This section deals with displaying a subcategory
      /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.'); 
    }
    ?>

  4. #4
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Fatal Error

    There are several files named "index.php", but in various folders.
    You can't just replace files because they have the same name.

    Did you put your edits in the right place?

    Your error message quotes this:
    /html/zencart/index.php

    ... but the language file you quoted comes from one of these locations:
    /html/zencart/includes/languages/english/index.php
    or
    /html/zencart/includes/languages/english/YOUR_CUSTOM_TEMPLATE_NAME/index.php
    .

    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
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Fatal Error

    I am ashamed to admit that the file is gone. Is there any way to recover from this without the correct file?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Fatal Error

    You could always download another fresh copy of Zen Cart, and use the original files from there.

    You should have a working copy of your site files on your PC anyway, and be making regular backups from site to PC, and PC to CD, etc.
    .

    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.

  7. #7
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Fatal Error

    Thanks for your help. Yes I will try this.

 

 

Similar Threads

  1. v151 Fatal error: 1030:Got error -1 from storage engine
    By buildingblocks in forum General Questions
    Replies: 3
    Last Post: 5 Feb 2013, 10:40 PM
  2. v139d PHP Fatal error: Internal Zend error - Missing class information
    By badarac in forum General Questions
    Replies: 3
    Last Post: 1 May 2012, 01:33 PM
  3. Fatal error: mysql error (1064 error) -- v1.0-alpha
    By Dale Schibbelhut in forum General Questions
    Replies: 9
    Last Post: 18 Nov 2010, 08:08 PM
  4. Fatal error: Class 'notifier' not found and other error
    By mjfan80 in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 24 Apr 2009, 12:39 PM
  5. Replies: 1
    Last Post: 9 Jan 2008, 09:19 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