Zen Cart Logo
Forums / General Questions / FATAL ERROR please help me

FATAL ERROR please help me

Locked

Views: 2,976

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Oct 2006, 5:13 PM
#1
brenda avatar

brenda

New Zenner

Join Date:
Oct 2006
Posts:
7
Plugin Contributions:
0

FATAL ERROR please help me

what am I doing wrong?

Fatal error: Call to undefined function: zen_check_url_get_terms() in /homepages/21/d88277630/htdocs/instock/summersmiles2/index.php on line 41

This is line 41:
if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [[email protected]](mailto:[email protected]) so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: index.php 277 2004-09-10 23:03:52Z wilt $ // define('TEXT_MAIN',' <marquee>Welcome to Kalibobs Please check back often for new products.'); // 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', 'Please feel free to contact me with any special requests.'); //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()) ) { 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', '<strong>Sort by:</strong> '); 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') { define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.'); /*Replace this line with the headline you would like for your shop. For example: Welcome to My SHOP!*/ } elseif ($category_depth == 'nested') { // this will also be used on Top Level define('HEADING_TITLE', 'Welcome to Kalibobs Unique Gifts and ETA Supplies.'); /*Replace this line with the headline you would like for your shop. For example: Welcome to My SHOP!*/ } ?>
9 Oct 2006, 7:37 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FATAL ERROR please help me

zen_check_url_get_terms() is defined in the /includes/functions/functions_general.php file. Is it possible that this file is corrupted or maybe been changed by a contribution you've installed?
Try re-uploading this file afresh.

9 Oct 2006, 8:10 PM
#3
brenda avatar

brenda

New Zenner

Join Date:
Oct 2006
Posts:
7
Plugin Contributions:
0

Re: FATAL ERROR please help me

I don't know what this means. :( I do not design websites:no: It might as well be a foreign language to me!

All I know is I have all the files open in CUTEFtp, can you walk me through finding the file and correcting it?

This is my current error message:
Fatal error: Call to undefined function: zen_check_url_get_terms() in /homepages/21/d88277630/htdocs/instock/summersmiles2/index.php on line 30

I'm just screwing it all up. :(

9 Oct 2006, 8:34 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FATAL ERROR please help me

Re-upload the file from your PC to the server.

Maybe re-unzip the original Zen Cart files and use the original version of that file, in case you've been editing it and created problems in your working copy of the file.

As a sidenote, I don't recommend CuteFTP. I find that it causes more trouble than it solves. I recommend FileZilla as a reliable FTP program. Granted, it may not have the fancy built-in editor that CuteFTP has.

24 Nov 2007, 10:39 PM
#5
wallst001 avatar

wallst001

New Zenner

Join Date:
Nov 2007
Posts:
5
Plugin Contributions:
0

Re: FATAL ERROR please help me

I too have the same problem. 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 tried the reuploading of functions_general but it did not help.

After 3 weeks of loading products into the store I am now grounded

Any ASAP help would be appreciated

25 Nov 2007, 4:40 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FATAL ERROR please help me

wallst001:

After 3 weeks of loading products into the store I am now groundedSo, it's been working fine for 3 weeks and suddenly broke?
What changed on the server?

25 Nov 2007, 4:52 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: FATAL ERROR please help me

Actually, I see you posted the same issue in another place, with some additional important information. Better to keep it all in one spot:

http://www.zen-cart.com/forum/showthread.php?t=81124