Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Location
    Illinois
    Posts
    27
    Plugin Contributions
    0

    Default Error when sending email from admin

    I have just recently upgraded from 1.36 to 1.37 and when I send an email from the admin section of Zencart this is the error message I am receiving:

    Warning: Invalid argument supplied for foreach() in /home/usahog/public_html/zencart/includes/functions/functions_email.php on line 387

    Warning: Cannot modify header information - headers already sent by (output started at /home/usahog/public_html/zencart/includes/functions/functions_email.php:387) in /home/usahog/public_html/zencart/admin/includes/functions/general.php on line 34


    Can anyone help explain to me how to fix this?

    Thanks,

    Usahog

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

    Default Re: Error when sending email from admin

    Do you have any add-ons for your email added?
    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!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Error when sending email from admin

    Does this happen with *all* emails from the admin, or just certain ones?
    What are the exact steps to duplicate this problem?
    .

    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.

  4. #4
    Join Date
    Jun 2006
    Location
    Illinois
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error when sending email from admin

    It's every single email I try to send.

    The only thing I have added is the email archive. Other than that nothing else.

    Usahog

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Error when sending email from admin

    There's been a bug in the email-archive tool's "re-send email" option that causes that error.

    The only known bug in functions_email.php is on line 366:
    Code:
        if (!defined($block['EXTRA_INFO']))  $block['EXTRA_INFO']  = '';
    should be:
    Code:
        if (!isset($block['EXTRA_INFO']))  $block['EXTRA_INFO']  = '';
    ... but that shouldn't cause a fatal error.


    You could try changing line 323 from this:
    Code:
        if ($block == '' && !is_array($block)) $block = array();
    to this:
    Code:
        if ($block == '' or !is_array($block)) $block = array();
    ... would be curious to know if this edit makes any difference (since this is intended to be a safety-catch to protect against the bug in the email archive re-send tool).
    .

    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.

  6. #6
    Join Date
    Jun 2006
    Location
    Illinois
    Posts
    27
    Plugin Contributions
    0

    Default Re: Error when sending email from admin

    DrByte,

    I changed both code's above and it seems that the error is gone now.

    Thanks a million,

    Usahog

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Error when sending email from admin

    yay
    .

    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.

 

 

Similar Threads

  1. Error when sending email to Dormant Subscribers. 0 Sent.
    By xandros2000 in forum General Questions
    Replies: 4
    Last Post: 13 Sep 2013, 12:50 AM
  2. Sending E-Mail works except from admin/tools/send email
    By Ron Haltermon in forum General Questions
    Replies: 0
    Last Post: 11 Sep 2010, 02:27 PM
  3. error when trying to email gv from admin, after upgrading from 1.3.7
    By redheads in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 14 Oct 2009, 06:23 AM
  4. Error message when sending an email from Admin
    By ajhb in forum Managing Customers and Orders
    Replies: 2
    Last Post: 27 Nov 2008, 03:33 PM
  5. Sending Email error in Admin CPanel after upgrading to 1.3.6
    By vfcoup70 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 10
    Last Post: 5 Dec 2006, 12:21 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