#2760 mime.php errors on messages from Hotmail in 1.4.22

Produces PHP errors
closed-fixed
nobody
5
2011-08-13
2011-08-12
Mark
No

Hello, since upgrading from 1.4.21 to 1.4.22, any messages I receive from Hotmail
have the following warnings attached at the top of each message:

Warning: Variable passed to each() is not an array or object
in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/mime.php on line 1594

Warning: Cannot modify header information - headers already sent by (output
started at /usr/local/cpanel/base/3rdparty/squirrelmail/functions/mime.php:1594)
in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/page_header.php on line
31

These errors happen on old and new messages. I have tried recreating my webmail
accounts to no avail, and it happens on multiple accounts. Happens with IE and
Opera (the two browsers I tested). Using Squirrelmail 1.4.22, cPanel Version
11.30.2 (build 1), Apache version 2.2.15, PHP version 5.2.13. Sometimes happens
randomly on other messages as well but always on Hotmail messages.

Discussion

  • Paul Lesniewski

    Paul Lesniewski - 2011-08-12

    Thanks for your report.

    Please explain how you obtained and installed SquirrelMail. There is no each() statement on the line in your error message in our code, so you may have some third party package that has its own bugs.

    Also, please attach full message source of an offending message. If such is private, feel free to send to me personally at paul@squirrelmail.org for inspection.

     
  • Paul Lesniewski

    Paul Lesniewski - 2011-08-12
    • status: open --> pending
     
  • Mark

    Mark - 2011-08-12

    Hi Paul, this is what line 1594 reads in mime.php:

    while (list($attname, $attvalue) = each($attary)){
    ^^^^

    This is the version information found at the top of mime.php:

    @version $Id: mime.php 14121 2011-07-12 04:53:35Z pdontthink $

    The file is /functions/mime.php inside of squirrelmail-webmail-1.4.22.zip which I
    believe is the same version my webhost is using. They can't figure out the cause
    of the error. I'll send a copy of the affected headers to you privately. Thanks!

     
  • Paul Lesniewski

    Paul Lesniewski - 2011-08-13
    • status: pending --> closed-fixed
     
  • Mark

    Mark - 2011-08-15

    Hi Paul, thank you for your assistance, I'll let my webhost know how to resolve the issue. Thanks again!

     
  • TeeSee64

    TeeSee64 - 2012-02-27

    Same problem here and I know for sure there is a each() in the original SquirrelMail script on line 1594

    Just downloaded the original script and the each() line is realy there.

    Anyone who can solve this problem?

    Thanks in advance,
    Theo

     
  • TeeSee64

    TeeSee64 - 2012-02-27

    Oeps, didnt read all the messages. sorry.

    Patch is working for me.

    Thanks!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks