[Case 52770] Squirrelmail problem - mime.php / page_header.php

nyjimbo

Well-Known Member
Jan 25, 2003
1,135
1
168
New York
I have a customer who keeps getting the following in squirrelmail:

"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"

We are running WHM 11.30.3 (build 5) on CENTOS 5.2 i686.

Anyone else having this problem or know what to do to fix it ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
We have a case (52770) for 11.30 on this issue where an empty style tag causes the issue to occur. It appears that you might try the following patch in the interim to correct it:

Code:
--- /usr/local/cpanel/base/3rdparty/squirrelmail/functions/mime.php.orig    2011-07-11 23:53:35.000000000 -0500
+++ /usr/local/cpanel/base/3rdparty/squirrelmail/functions/mime.php    2011-08-16 08:49:31.000000000 -0500
@@ -2158,7 +2158,7 @@
         if ($tagname == "style" && $tagtype == 1){
             list($free_content, $curpos) =
                 sq_fixstyle($body, $gt+1, $message, $id, $mailbox);
-            if ($free_content != FALSE){
+            if ($free_content != FALSE && is_array($attary)){
                 $attary = sq_fixatts($tagname,
                                      $attary,
                                      $rm_attnames,