Forums / General Questions / error on Line 30 - index.php

error on Line 30 - index.php

Locked
Results 1 to 7 of 7
This thread is locked. New replies are disabled.
01 Sep 2008, 18:09
#1
irisesweb avatar

irisesweb

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

error on Line 30 - index.php

I've just encountered this error and it has the entire site down.

I made one small change to the welcome line of the index.php and suddenly I'm receiving this error message:

Fatal error: Call to undefined function: zen_check_url_get_terms() in /home/carrie/public_html/shop/index.php on line 30


I know that sometimes .php files can cause a blank page if the upload is corrupted, but I've not encountered this before.

I have two other shopping carts - I've taken the index.php from one of them and copied and pasted (not uploaded) it into the cart via the control panel of the site in question. Still get the same error code, though the site I copied from is fine.

I'm running Zen cart 1.3.8a - the cart was finished and up and running fine, just needed a tiny bit of tweaking.

I've tried everything I can think of - I've compared line 30 in the offending index.php to line 30 in my other carts and can't see any difference

Here's my line 30 (and it's exactly the same for all of my carts.
if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {


Php isn't my strongest suit, but I truly do not want to have to reinstall this cart as I already have ALL the many items listed. ANY help would be greatly appreciated.

btw - the site with the problem is:
http://www.godsgiftstoshare.com/shop

And one of my sites that's working fine is:
http://www.frostyiris.com/shop

Iris
01 Sep 2008, 18:42
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: error on Line 30 - index.php

Did you change tpl_index.php or the language files, index.php?
01 Sep 2008, 19:14
#3
irisesweb avatar

irisesweb

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

Re: error on Line 30 - index.php

I didn't change tpl_index.

The error occurred after I had changed the index.php in the shop folder.

I then copied & pasted from the other shopping cart into the shop folder - that didn't solve it, so I also copied and pasted into the languages folder - that didn't solve it either.
01 Sep 2008, 19:20
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: error on Line 30 - index.php

First, you should never touch the index.php that is in the root directory.

To fix you need to replace it with a clean copy of the file from the version of Zen Cart you are using.
01 Sep 2008, 19:40
#5
irisesweb avatar

irisesweb

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

Re: error on Line 30 - index.php

You are a genius!!! Thank you SO very much.:clap::clap:

Next question - if I'm changing my index.php - should I only change the one in languages? :blush:
01 Sep 2008, 20:57
#6
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: error on Line 30 - index.php

If you are changing the text, you change includes/languages/english/whatever_page.php after you have copied it to includes/english/YOUR_TEMPLATE/
01 Sep 2008, 21:16
#7
irisesweb avatar

irisesweb

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

Re: error on Line 30 - index.php

Thanks you so much for your help.