Re: Compatibility plugin error with PHP

Paul Lesniewski <[email protected]> Mon, 3 Jun 2013 13:26:50 -0700
Newsgroups gmane.mail.squirrelmail.plugins
Message-ID <CAHog117szmDTEWZr+WgqKRVRNU9J3XD7Ni_7GdAXfxceKmwfqA@mail.gmail.com>
On Mon, Jun 3, 2013 at 1:11 PM, Alex <[email protected]> wrote:
> Hi,
>
> I'm using the compatibility plugin with squirrelmail v1.4.22 and just
> noticed I'm receiving the following in error_log:
>
> [Mon Jun 03 15:26:41.933687 2013] [:error] [pid 1194] [client
> 209.33.37.13:54554] PHP Warning:  Creating default object from empty
> value in /usr/share/squirrelmail/plugins/compatibility/includes/1.5.2/global.php
> on line 898, referer:
> https://mail.hotel.bestwestern.com/webmail/src/right_main.php?sort=1&startMessage=16&mailbox=INBOX
>
> Is this a known issue? Is there something I can do to fix this? Here
> are the lines it's complaining about:
>
>    896           $rfc822_header->encoding = $special_encoding;
>    897        else
>    898           $rfc822_header->encoding = '8bit';
>    899        if ($default_charset)
>    900           $content_type->properties['charset']=$default_charset;
>
> I believe I'm using the most recent version. Is there a configuration
> option I'm missing?

No, it's a bug that was inherited from the core (v1.5.2).  A fixed
version will be out soon, but in the meantime, you can just change
$rfc822_header to $header at the beginning of lines 896 and 898.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins