Re: php8.3 support and deprecated functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> These occur when composing/sending a new message.
> Warning: Undefined array key "" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 76

This appears to indicate your message cache is corrupt. Just above line
76, you can put something like this:

if (empty($msgs[$key])) {echo "MSGS IS EMPTY FOR KEY: $key<br />";
var_dump($key); echo "<br />"; sm_print_r($msgs);}

That may or may not turn up an inconsistency, but it may not tell you much
about how it developed. You'll have to try to narrow it down, by logging
out and making sure your session is cleared, disabling your plugins and
re-enabling them only one at a time as you test.

The rest of the issues below are all follow-on to the same corruption so
will all be solved by the same solution.

> I had no idea how problematic squirrelmail support is for php8.3. This is
> a real problem for me.

I can't see how this is related to your PHP version, at least without
knowing more about how your cache became corrupt.

On the other hand, the fact that $key might be an empty string could be
the problem ($key should usually be an integer). In that case, you can
print out a backtrace that could be a little bit more enlightening:

if (empty($msgs[$key])) {echo "MSGS IS EMPTY FOR KEY: $key<br />";
var_dump($key); echo "<br /><pre>"; debug_print_backtrace(); echo
"</pre>";}

When you hit this issue, what is the message list showing? Is there one or
more blank or missing rows in the list? Does the output end unexpectedly?

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


> Warning: Trying to access array offset on null in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 93
> Deprecated: strlen(): Passing null to parameter #1 ($string) of type
> string
> is deprecated in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/imap_general.php
> on line 1127
> Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type
> array|string is deprecated in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/imap_general.php
> on line 1130
> Warning: Undefined array key "ID" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 213
> Warning: Undefined array key "SUBJECT" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 218
> Warning: Undefined array key "ID" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 225
> Warning: Undefined array key "ID" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 226
> Warning: Undefined array key "ID" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 240
> Warning: Undefined array key "RECEIVED_DATE_STRING" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 247
> Warning: Undefined array key "RECEIVED_DATE_STRING_FULL" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 248
> Warning: Undefined array key "TYPE0" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 297
> Warning: Undefined array key "PRIORITY" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 302
> Warning: Undefined array key "PRIORITY" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 302
> Warning: Undefined array key "PRIORITY" in
> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mailbox_display.php
> on line 306
>
> Thanks,
> Alex
>
> On Wed, Jul 31, 2024 at 9:21 AM Alex <mysqlstudent@xxxxxxxxx> wrote:
>
>> Hi,
>>
>> More deprecations when viewing messages. Not sure why these aren't all
>> showing up together.
>>
>> Deprecated: Creation of dynamic property Language::$name is deprecated
>> in
>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/mime/Language.class.php
>> on line 31
>> Deprecated: Creation of dynamic property Language::$properties is
>> deprecated in
>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/mime/Language.class.php
>> on line 36
>> Warning: Cannot modify header information - headers already sent by
>> (output started at
>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/mime/Language.class.php:31)
>> in
>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/page_header.php
>> on line 69
>>
>> When composing a new message, I have the following warning/error in the
>> compose text box:
>> <br />
>> <b>Deprecated</b>:  explode(): Passing null to parameter #2 ($string) of
>> type string is deprecated in
>> <b>/usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/mime.php</b>
>> on line <b>693</b><br />
>>
>> Thanks,
>> Alex
>>
>> On Wed, Jul 31, 2024 at 7:46 AM Alex <mysqlstudent@xxxxxxxxx> wrote:
>>
>>> HI,
>>> Latest from daily stable snapshots with PHP debugging enabled. This is
>>> fedora40 with php-8.3.9.
>>>
>>> Deprecated: Creation of dynamic property Deliver_SMTP::$dlv_ret_nr is
>>> deprecated in
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/deliver/Deliver_SMTP.class.php
>>> on line 427
>>>
>>> Deprecated: Creation of dynamic property Deliver_SMTP::$dlv_msg is
>>> deprecated in
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/deliver/Deliver_SMTP.class.php
>>> on line 484
>>>
>>> Deprecated: Creation of dynamic property Deliver_SMTP::$dlv_server_msg
>>> is
>>> deprecated in
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/deliver/Deliver_SMTP.class.php
>>> on line 485
>>>
>>> Warning: Cannot modify header information - headers already sent by
>>> (output started at
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/deliver/Deliver_SMTP.class.php:427)
>>> in
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/global.php
>>> on
>>> line 594
>>>
>>> Warning: Cannot modify header information - headers already sent by
>>> (output started at
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/class/deliver/Deliver_SMTP.class.php:427)
>>> in
>>> /usr/share/squirrelmail-stable-1.4.23-svn-073024/functions/global.php
>>> on
>>> line 594
>>>
>>
>
> -----
> squirrelmail-users mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users




-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users




[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux