roundcube is saying server error when I tried to open inbox at one of the mailbox. I think this happened after latest ispconfig update but I'm not sure about that. I deleted mailbox and created again but this did not help. there are no errors in other mailboxes. here are the logs; Code: [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined variable $proto in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 1221 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined variable $proto in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 1221 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "filesystem_attachments" in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 168 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "jqueryui" in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 168 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined variable $add in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 936 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "w" in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 132 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "socket" in /usr/share/roundcube/program/lib/Roundcube/db/mysql.php on line 100 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Uninitialized string offset 78 in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 438 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Uninitialized string offset 41 in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 438 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "skin" in /usr/share/roundcube/program/lib/Roundcube/rcube_config.php on line 454 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "_task" in /usr/share/roundcube/program/include/rcmail.php on line 865 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "REDIRECT_SCRIPT_URL" in /usr/share/roundcube/program/include/rcmail.php on line 880 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "filesystem_attachments" in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 99 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "jqueryui" in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 99 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "_task" in /usr/share/roundcube/program/include/rcmail.php on line 865 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "REDIRECT_SCRIPT_URL" in /usr/share/roundcube/program/include/rcmail.php on line 880 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "_task" in /usr/share/roundcube/program/include/rcmail.php on line 865 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "REDIRECT_SCRIPT_URL" in /usr/share/roundcube/program/include/rcmail.php on line 880 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "_page" in /usr/share/roundcube/program/steps/mail/func.inc on line 170 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "ssl_mode" in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 974 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "ssl_mode" in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 1036 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key 1 in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "mail" in /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php on line 575 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Trying to access array offset on value of type null in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 721 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key 1 in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key 1 in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "messages" in /usr/share/roundcube/program/lib/Roundcube/rcube_result_thread.php on line 603 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "count" in /usr/share/roundcube/program/lib/Roundcube/rcube_result_thread.php on line 113 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "UID-MAP" in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 2181 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Trying to access array offset on value of type null in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 2181 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key 1 in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "count" in /usr/share/roundcube/program/lib/Roundcube/rcube_result_index.php on line 158 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key 1 in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/share/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 147 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined array key "count" in /usr/share/roundcube/program/lib/Roundcube/rcube_result_index.php on line 158 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Fatal error: Uncaught ValueError: strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in /usr/share/roundcube/program/lib/Roundcube/rcube_result_thread.php:443 Stack trace: #0 /usr/share/roundcube/program/lib/Roundcube/rcube_result_thread.php(443): strpos() #1 /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php(1584): rcube_result_thread->sort() #2 /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php(986): rcube_imap->sort_threads() #3 /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php(925): rcube_imap->fetch_thread_headers() #4 /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php(879): rcube_imap->list_thread_messages() #5 /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php(849): rcube_imap->_list_messages() #6 /usr/share/roundcube/program/steps/mail/list.inc(69): rcube_imap->list_messages() #7 /usr/share/roundcube/index.php(302): include_once('...') #8 {main} thrown in /usr/share/roundcube/program/lib/Roundcube/rcube_result_thread.php on line 443 [23-Apr-2022 18:34:35 Europe/Moscow] PHP Warning: Undefined variable $add in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 936
I guess you upgraded system PHP to 8.0 or to 8.1 which is not supported by RoundCube on your server. This is not related to an ISPConfig update. Set the default PHP version back to the one that belongs as default to that OS version. See section panel not showing up on this page: https://www.howtoforge.com/community/threads/please-read-before-posting.58408/
yes I added additional php 8.0 and 8.1 but I did not change system default php version. php -v is showing 7.4.29. I also did not changed the website php version which roundcube gives errors I mentioned above, I leaved it default. it's strange only one of the e-mail address is affected. I mean [email protected] is giving errors in roundcube but [email protected] is working normally. domain.com/phpinfo.php is also showing php version 7.4.29.
a2disconf php8.0-fpm solved problem. domain.com/phpinfo.php is showing php 7.4 domain.com/webmail/phpinfo.php was showing 8.0 I couldn't figured it out why two different php versions on same domain?
how can config domain.com/webmail php version? for example; domain.com use php 8.0 domain.com/webmail use php 7.4
Using a global /webmail alias is insecure, don't do it. If you must have customer domains in the url, then reverse proxy the /webmail url to your actual roundcube install on the server; otherwise it is simpler to just add a global redirect for /webmail to the roundcube install using the server's hostname. This avoids the "multiple php versions for this site depending on the path" complication you are creating as an additional benefit, but the real reason is because shared roundcube installations are bad - they allow every website on the server to access the email mailboxes of every mail account which uses roundcube. Don't do it.