"Fatal error: Call to undefined function" sending emails from admin
Hi everybody
I use to search through this forum for answers to my errors, problems and other extrange issues with Zen Cart, and I usually find the solution to the problem in some post of somebody:smartalec:...
but this time I can't find nothing:no:.
The problem is: I've upgraded my site form 1.2.7 to 1.3.7.1, and everithing finally works fine, but just one thing. When I go to admin>tools>send email, or when I try to send a newsletter from admin pannel, I get this error Fatal error: Call to undefined function: get_audiences_list() in /home/folkvang/public_html/store/admin/mail.php on line 305
I can't find an exactly answer in the forums, but maybe this is a problem about some deleted or changed files between versions. I really hope sombody can help me.
Thanks in advance :smile:
Re: "Fatal error: Call to undefined function" sending emails from admin
That error suggests that you didn't properly upgrade your /includes/functions/audience.php file.
Also, you might want to take note that v1.3.8a is released, and contains a years' worth of fixes over v1.3.7.
Re: "Fatal error: Call to undefined function" sending emails from admin
How shoud it be upgraded? I followed the instructions to upgrade my site, and all the other stuff works fine... I tried to upload /includes/functions/audience.php from my old version, and the new one also, and the only difference is that the error message set the failure in differnt line (line 324):mellow:
Is there any other (faster) solution than upgrading again to 1.3.8a?:(
Thanks for your reply, DrByte :bigups:
Re: "Fatal error: Call to undefined function" sending emails from admin
Quote:
Originally Posted by
folkvangar
Call to undefined function: get_audiences_list() in /home/folkvang/public_html/store/admin/mail.php on line 305
The get_audiences_list() function is contained in the /includes/functions/audience.php file.
If you're getting error messages saying that get_audiences_list() is an undefined function, then ... you don't have that file on your server, or it's incomplete.
So, since you said you just upgraded to 1.3.7.1, then you need to ensure that you're using the v1.3.7.1 version of that file.
By way of clarification, there are two audience.php files in v1.3.7.1:
/includes/functions/audience.php <-- this is the one you need to have
/admin/includes/functions/audience.php <-- this one is obsolete and can be removed
Re: "Fatal error: Call to undefined function" sending emails from admin
So many thanks! This was the problem. By some reason the file was missed, so I uploaded and it works fine:clap:
Thanks!:bigups::hug:
Re: "Fatal error: Call to undefined function" sending emails from admin
Similar problem,
Call to a member function on a non-object in /home/content/e/z/s/ezskratch/html/catalog/admin/mail.php on line 380
Here is 380+ from mail.php
$dir = @dir(DIR_WS_ADMIN_ATTACHMENTS);
$file_list[] = array('id' => '', 'text' => "(none)");
while ($file = $dir->read()) {
if (is_file(DIR_WS_ADMIN_ATTACHMENTS . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
$file_list[] = array('id' => $file , 'text' => $file);
All other emails seem to work - order confirmations, pwd resets, tell afriend, just sending from the admin is giving this problem.