Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2009
    Posts
    30
    Plugin Contributions
    0

    Default Fatal error: Call to undefined function zen_get_orders_comments()

    This is the error I get on one of the web pages I run.

    Under CUSTOMERS > ORDERS

    Right next to the customers name , order total and Status I get this message:

    Fatal error: Call to undefined function zen_get_orders_comments() in /home/content/r/c/h/XXXXX/html/XXXXX/orders.php on line 871

    I compared orders.php file with another web that runs just fine and I am able to edit, delete, invoice, packing slip on the other web page.

    I used a Code Compare software, and both files on both webpages are identical.

    What is up with that???

    I see many people here are reloading the file, but what is the point if the code is identical.???

    Is it possible that code err is some where else?

  2. #2
    Join Date
    Jul 2009
    Posts
    234
    Plugin Contributions
    1

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    I had a similar problem recently which may help you out if i try and explain it.

    I had to re-upload a database, but had to remove the database prefix first which was 'zen_' so i did a search and replace for the words 'zen_' in my MySQL export.

    I hadnt realised at first that there were some functions that also had a 'zen_' prefix. So i accidnetially removed the 'zen_' from those aswel......and got the Fatal error function zen_xxxxx doesnt exist.

    SO i guess my question to you is, have you searched and replaced and anything in the database?

  3. #3
    Join Date
    Aug 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    no, I did not do any changes to the DB since it was created.

    the first order on this site came in with an error like that.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    zen_get_orders_comments() is defined in /admin/includes/functions/general.php
    So, either you've got a old version of that file, or a damaged version, or you've installed an addon that broke it.
    .

    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.

  5. #5
    Join Date
    Aug 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    Thanks for your wisdom DrByte,

    If I take a known good general.php file from another working webpage, and overrite the current one, would that work. or do I have to mod it manually?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    That all depends on what's different about the file. I'm sure you can sort it out by comparing the files and reconciling the differences.
    Winmerge is a handy tool for that: http://winmerge.sf.net
    .

    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
    Aug 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    Thank you, I used the file compare software and found a lot of diffrences in these 2 files.

    after changing all the Major diffrences I am able to see the edit, invoice, delete and packing slip buttons on the right side.

    However (you know this was comming) I lost the ability to see the order itself.

    and now get this error when I click on customers name
    I actually have to click on the name twice, with the first click the same orders page opens up, with the second click I get this error:

    Fatal error: Call to undefined function zen_address_format() in /home/content/r/c/h/xxxxxx/html/xxxxxx/orders.php on line 389

    I will try and just copy over the whole file, and see if that makes any changes.

    thank you again for help.

  8. #8
    Join Date
    Aug 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    well, uploading a known good general.php file did not work.

    still the same issue as described in post above

  9. #9
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    zen_address_format is defined in /admin/includes/functions/functions_customers.php

    So, it sounds like you've got lots of files that are either outdated and/or damaged.
    .

    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
    Aug 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Fatal error: Call to undefined function zen_get_orders_comments()

    wow, that file was not even in there.

    I pulled it off the good web site but still made no diffrence.

    line 389 that the error refers to looks like this:

    <td class="main"><?php echo zen_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'); ?></td>


    I found this http://www.zen-cart.com/forum/showthread.php?t=98799 thread online.

    should I go ahead and start reloading all of those files??

    Thank you

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 23 Feb 2010, 10:27 PM
  2. Replies: 1
    Last Post: 7 Dec 2009, 10:20 PM
  3. Replies: 2
    Last Post: 8 Oct 2008, 07:06 PM
  4. admin: Call to undefined function zen_get_orders_comments()
    By allgamesradio in forum General Questions
    Replies: 3
    Last Post: 7 Jul 2008, 06:44 PM
  5. Fatal error: Call to undefined function:
    By Spdster in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 10 May 2008, 05:17 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR