Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2006
    Location
    Louisiana
    Posts
    144
    Plugin Contributions
    0

    Default Call to undefined function

    Database Host: localhost (127.0.0.1)
    Server OS: Linux 2.6.34.6 Database: MySQL 5.1.48
    PHP Version: 5.2.13 (Zend: 2.2.0) HTTP Server: Apache

    Zen Cart 1.3.7
    Database Patch Level: 1.3.7
    v1.3.6 [2007-02-24 19:55:45] (Version Update 1.3.5->1.3.6)
    v1.3.5 [2007-02-24 19:55:43] (Version Update 1.3.0.2->1.3.5)
    v1.3.0.2 [2006-09-08 10:26:10] (Fresh Installation)


    I found this in /public_html/cache/ where the ZenCart resides.


    PHP Code:
    [08-Aug-2010 04:00:14PHP Fatal error:  Call to undefined function  zen_get_generated_category_path_rev() in /home/myclientname/public_html/includes/init_includes/init_canonical.php on line 19 
    The referenced code is unchanged from initial install, ie.
    PHP Code:
    if (strstr($current_page'_info') && isset($_GET['products_id'])) {

      
    $canonicalLink zen_href_link($current_page'cPath=' zen_get_generated_category_path_rev(zen_get_products_category_id($_GET['products_id'])) . '&products_id=' $_GET['products_id']); 

    I was looking for a problem with the store. It seems that the transactions are being made in PayPal but the conformation is not being returned to Zencart. That is, there is money in the PayPal Account but the client has to call the customer to find out what customer purchased. The Zencart Transaction does not exist.

    I go to <Admin>, <Customers>, <orders> the PayPal order does not exist. We have several transactions that are not recorded.

    Did PayPal change something this past Friday?

    Is this a Zencart situation, ie. Code missing?

    Other methods of shopping work properly.

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

    Default Re: Call to undefined function

    /includes/init_includes/init_canonical.php

    The referenced code is unchanged from initial install, ie.
    init_canonical.php is NOT included in a default distribution
    I think your statement is incorrect
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Call to undefined function

    Quote Originally Posted by kobra View Post
    init_canonical.php is NOT included in a default distribution
    I think your statement is incorrect
    Actually, the file:
    /includes/init_includes/init_canonical.php

    was added in v1.3.9 ...

    Did you attempt to upgrade your site and not upgrade it completely?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jul 2006
    Location
    Louisiana
    Posts
    144
    Plugin Contributions
    0

    Default Re: Call to undefined function

    Quote Originally Posted by Ajeh View Post
    Actually, the file:
    /includes/init_includes/init_canonical.php

    was added in v1.3.9 ...

    Did you attempt to upgrade your site and not upgrade it completely?
    I moved the site from one ISP to another ISP a couple months ago. There were no problems in the move of the database and software. There has been hundreds of transactions since the move.

    There could have been an employee or someone called in by the owner who tried to upgrade. I was called into the situation today.

    I guess if I'm going to clean up someone else's mess the rate just went up. Ha.

    What else can I look at to see if there was an attempt to upgrade?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Call to undefined function

    I would compare the site to a clean v1.3.7 and to a clean v1.3.9f ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Call to undefined function

    Quote Originally Posted by Forum5 View Post
    [08-Aug-2010 04:00:14] PHP Fatal error: Call to undefined function zen_get_generated_category_path_rev() ...
    That function was added in v1.3.8a in the functions_categories.php file.

    So, since you're getting messages from a 1.3.9 init_canonical file that's calling a function introduced in a 1.3.8 file, and your store says you're using v1.3.7, it seems pretty clear that someone's tried to cut corners and hack the init_canonical support onto your 1.3.7 install, instead of properly upgrading to v1.3.9.

    Best solution: Upgrade.
    Short-term solution: remove the init_canonical code you added, so the errors stop.
    .

    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
    Jul 2006
    Location
    Louisiana
    Posts
    144
    Plugin Contributions
    0

    Default Re: Call to undefined function

    Quote Originally Posted by DrByte View Post
    That function was added in v1.3.8a in the functions_categories.php file.

    . . .

    Best solution: Upgrade.
    Short-term solution: remove the init_canonical code you added, so the errors stop.
    Thanks for the information on the function history. I'm with you up to the point that you say "remove the init_canonical code you added". I did not add the function however, I upgraded the site to 1.3.9f and the site is working properly now.


    Coffee's on me for the crew at Zen Cart. Thanks for being there.

  8. #8
    Join Date
    Jul 2006
    Location
    Louisiana
    Posts
    144
    Plugin Contributions
    0

    Default Re: Call to undefined function

    Quote Originally Posted by Ajeh View Post
    I would compare the site to a clean v1.3.7 and to a clean v1.3.9f ...
    DONE! I didn't do any comparing. I just did the upgrade. It went from 1.37~ to 1.3.9f and all is well.

    As I told Dr. B. the coffee is on me tomorrow. Thanks for being there.


  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Call to undefined function

    That's a big upgrade step. Be sure to test some purchases all the way from creating a new account through to finishing payment with a credit card.
    .

    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.

  10. #10
    Join Date
    Jul 2006
    Location
    Louisiana
    Posts
    144
    Plugin Contributions
    0

    Default Re: Call to undefined function

    Quote Originally Posted by DrByte View Post
    That's a big upgrade step. Be sure to test some purchases all the way from creating a new account through to finishing payment with a credit card.
    I added products, installed new shipping, installed new payment, made purchases with the new and the old, then removed the extra moduals I just installed.

    The thing that I did not do, but I will now, is create a new user and make a purchase.

    Thanks.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Call to undefined function zen_get_languages()
    By hugoasphaug in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 6 Feb 2009, 11:42 AM
  2. Call to undefined function: zen_update_whos_online()
    By wmorris in forum General Questions
    Replies: 2
    Last Post: 3 Nov 2008, 07:11 AM
  3. Call to undefined function: zen_validate_password()
    By acidsesite in forum General Questions
    Replies: 11
    Last Post: 4 Oct 2006, 03:03 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