Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default undefined function zen_check_url_get_terms() error

    Ok I've lost my page/site (the site is just Zen Cart)...
    The site - www.sassybenz.com/shop - now has this error-"Fatal error: Call to undefined function zen_check_url_get_terms() in /home/content/42/5153542/html/shop/index.php on line 30"

    This site has been up and running for the past month just fine. I don't know if it was me or the other person who caused this error. But what had happened is this same "other" person sent me an email with some code that i was suppose to put on the index page (www.sassybenz.com/shop) i did and uploaded...got this (current) message on the site.

    I thought I could just delete the JS code, upload again and all would be fine....it's not obviously

    I then spent several hours googling for an answer as to why this had happened and how I could fix it. No luck but a lot of rabbit trails.
    Ended up calling the web host for tech support and quickly realized they knew about 0 PHP and even less about Zen Cart.

    The code below is what the actual code on the page is that is producing this error. If anyone knows what I need to do, please let me know.
    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 6550 2007-07-05 03:54:54Z 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', 'Welcome to the SassyBenz Online Shop!');
    } 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', 'Welcome to the SassyBenz Online Shop!');
    }
    ?>

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: undefined function zen_check_url_get_terms() error

    You need to seek the index.php that is at your /shop level
    Upload a fresh copy that is from the same version as you are using
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: undefined function zen_check_url_get_terms() error

    Thank you Kobra....Stupid question, how do I get a "fresh copy" as you say?
    I mean, I had originally just taken out the copy & pasted code (the JS code that started this mess), gotten rid of all whitespace, and uploaded the page to the server.

    I really appreciate your help! This seems like it shouldn't be happening

  4. #4
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: undefined function zen_check_url_get_terms() error

    One more thing-
    After repeated attempts of uploading/not working/look at code/upload, i found this ;
    phpxref.com/xref/zencart/includes/languages/english/index.php.source.html

    and saved it as the index.php page in the /sjop file. Well, of course it didn't work as evidence of the recent site being down....just FYI, that's all (seems like a good site though!)

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: undefined function zen_check_url_get_terms() error

    how do I get a "fresh copy" as you say?
    This sites main page - but you need to know what version you have loaded...
    http://www.zen-cart.com/index.php
    I mean, I had originally just taken out the copy & pasted code (the JS code that started this mess), gotten rid of all whitespace, and uploaded the page to the server.
    Don't know what this means???
    There ARE NOT "Pages" in a php application that can be likened to a html page/file
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: undefined function zen_check_url_get_terms() error

    Thank you so much---again!...very much appreciated.

    The version of Zen Cart is 1.3.8a.1 I found out.

    The 2nd "problem" about the page will probably be controlled once Part 1 is finished.

 

 

Similar Threads

  1. Fatal error: Call to undefined function: zen_check_url_get_terms() in /home/content/p
    By martinbonifaz in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Apr 2010, 10:21 AM
  2. undefined function zen_check_url_get_terms
    By deanneperry in forum General Questions
    Replies: 1
    Last Post: 29 Dec 2008, 06:54 AM
  3. Fatal error: Call to undefined function zen_check_url_get_terms()
    By giftsbyevy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 May 2008, 02:13 AM
  4. Replies: 12
    Last Post: 24 Feb 2008, 05:06 AM

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