The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by nyjimbo, Sep 21, 2011.

  1. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    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 ?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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,
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This is now fixed in 11.30.4.6 - visit Downloads - cPanel Inc. to see if this version (or later) has propagated to your update tier.
     
Loading...

Share This Page