Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    help question "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...

    but this time I can't find nothing.

    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

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

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

    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.

  3. #3
    Join Date
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default 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)
    Is there any other (faster) solution than upgrading again to 1.3.8a?

    Thanks for your reply, DrByte

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

    Default Re: "Fatal error: Call to undefined function" sending emails from admin

    Quote Originally Posted by folkvangar View Post
    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
    .

    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
    Sep 2007
    Posts
    5
    Plugin Contributions
    0

    Default 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

    Thanks!

  6. #6
    Join Date
    May 2007
    Posts
    43
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Replies: 4
    Last Post: 10 Nov 2018, 01:32 PM
  2. Replies: 8
    Last Post: 3 Jun 2007, 03:51 PM
  3. Fatal error: Call to undefined function
    By Brenda in forum General Questions
    Replies: 1
    Last Post: 9 Oct 2006, 08:44 PM

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