The web-server log is full of this ever since the latest php upgrade;
2021/11/06 14:15:42 [error] 9785#9785: *14939 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined offset: 0 in /w/squirrelmail/include/load_prefs.php on line 37
PHP message: PHP Notice: Trying to access array offset on value of type null in /w/squirrelmail/include/load_prefs.php on line 37
PHP message: PHP Notice: Undefined offset: 1 in /w/squirrelmail/include/load_prefs.php on line 37
PHP message: PHP Notice: Trying to access array offset on value of type null in /w/squirrelmail/include/load_prefs.php on line 37" while reading response header from upstream, client: 89.205.x.x, server: mail.x.x, request: "GET /src/read_body.php?mailbox=Sent&passed_id=2345&startMessage=1&where=TEXT&what=sourceforge HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "mail.x.x", referrer: "https://mail.x.x/src/search.php?smtoken=V5N7FQrgSKRy&mailbox=All+Folders&what=sourceforge&where=TEXT&submit=Search&composenew=0&composesession=0&session=0&use_mailbox_cache=0"
2021/11/06 14:17:22 [error] 9785#9785: *14939 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined offset: 0 in /w/squirrelmail/include/load_prefs.php on line 37
PHP message: PHP Notice: Trying to access array offset on value of type null in /w/squirrelmail/include/load_prefs.php on line 37
PHP message: PHP Notice: Undefined offset: 1 in /w/squirrelmail/include/load_prefs.php on line 37
PHP message: PHP Notice: Trying to access array offset on value of type null in /w/squirrelmail/include/load_prefs.php on line 37" while reading response header from upstream, client: 89.205.x.x, server: mail.x.x, request: "GET /src/right_main.php?PG_SHOWALL=0&sort=0&startMessage=1&mailbox=INBOX HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:"
etc.
This is with the latest Stable 1.4.23 (as downloaded Nov 3rd 2021) under debian 10:
nginx version: nginx/1.14.2
php7.4-fpm
PHP 7.4.25 (cli) (built: Nov 1 2021 20:07:52) ( NTS )
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.25, Copyright (c), by Zend Technologies
As far as I can see here the last stable version is 1.4.22
Where have you downloaded 1.4.23?
On Gihub is another Fork that already reached 1.5.20 and is optimised for PHP7x and PHP 8.0 and/on nginx
https://github.com/RealityRipple/squirrelmail
Last edit: Chr. Eichert 2021-11-06
Check the downloads page where the nightly snapshots for 1.4.23 and 1.5.2 are what we recommend running (many features/improvements and up to PHP 8 compatibility)
Julius, this error indicates some kind of corruption in your $theme variable, which is set up in your configuration file. Look for a bunch of lines like this:
One or more of those lines will be corrupt or in the wrong structure.
Never mind, I found it. Somewhere down the line all unused themes lines were no longer in config.php, only in config_default.php. Strange, I don't recall changing anything about that. Perhaps SM is no longer looking for the default config when a local one is set?
Last edit: Julius 2021-11-09