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? :frusty:
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?
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.
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.
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?
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
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.
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 :no:
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.
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