Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Posts
    22
    Plugin Contributions
    0

    red flag 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

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: error on Line 30 - index.php

    Did you change tpl_index.php or the language files, index.php?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Mar 2008
    Posts
    22
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Mar 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: error on Line 30 - index.php

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

    Next question - if I'm changing my index.php - should I only change the one in languages?

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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/
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Mar 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: error on Line 30 - index.php

    Thanks you so much for your help.

 

 

Similar Threads

  1. 1.3.8a admin error index.php line 23
    By RixStix in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 14 Jul 2010, 11:58 PM
  2. index.php on line 29
    By okartman in forum General Questions
    Replies: 1
    Last Post: 1 Mar 2010, 03:22 PM
  3. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM
  4. Got an error message from index.php on line 34
    By DaveTabler in forum Installing on a Windows Server
    Replies: 5
    Last Post: 16 Jul 2006, 06:38 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