Author Topic: Activating PHP8.1 breaks roundcubemail 1.6-beta (solved)  (Read 4610 times)

Offline eehmke

  • Jr. Member
  • **
  • Posts: 11
Activating PHP8.1 breaks roundcubemail 1.6-beta (solved)
« on: March 29, 2022, 04:33:00 PM »
I upgraded my 1.5.2 instance to 1.6-beta. The instance runs on PHP8.0. That worked fine, I could log in, read emails and open the configuration. As the document says the version would be compatible to PHP8.1, I changed the running PHP fpm to 8.1. Now I cannot log in anymore, it says "Die Anmeldung ist fehlgeschlagen." ("Login failed"). In the error log I find messages like this:

PHP Warning:  Undefined array key "ssl_mode" in /var/www/roundcubemail/program/lib/Roundcube/rcube_imap_generic.php on line 1053

Reverting to PHP8.0 did not help.

See my last response, issue is solved.
« Last Edit: March 31, 2022, 08:00:37 AM by eehmke »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Re: Activating PHP8.1 breaks roundcubemail 1.6-beta
« Reply #1 on: March 30, 2022, 03:56:11 AM »
That means you must have imap_debug enabled which would suggest you have other more relevant log entries available. what does your imap debug log show? When you move to 1.6 beta did you update your roundcube config for the breaking changes?
Quote
Breaking Changes

The following config options have either been removed or renamed:

    IMAP:
        renamed default_host to imap_host
        removed default_port option (non-standard port can be set via imap_host)
        set “localhost:143” as a default for imap_host
    SMTP:
        renamed smtp_server to smtp_host
        removed smtp_port option (non-standard port can be set via smtp_host)
        set “localhost:587” as a default for smtp_host
    LDAP:
        removed port option from ldap_public array (non-standard port can be set via host)
        removed use_tls option from ldap_public array (use tls:// prefix in host)
    Managesieve:
        removed managesieve_port option (non-standard port can be set via managesieve_host)
        removed managesieve_usetls option (tls:// prefix in managesieve_host have to be used)

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline eehmke

  • Jr. Member
  • **
  • Posts: 11
Re: Activating PHP8.1 breaks roundcubemail 1.6-beta
« Reply #2 on: March 30, 2022, 06:00:24 AM »
Yes I accepted the suggested automatic update of the config file. As I said, the 1.6-beta worked at first, only broke when I changed to PHP 8.1.

I have reverted to 1.5.2, reinstalled the database and got it running again. Will wait for the final and prepare a better backup next time.

Offline eehmke

  • Jr. Member
  • **
  • Posts: 11
Re: Activating PHP8.1 breaks roundcubemail 1.6-beta
« Reply #3 on: March 31, 2022, 07:59:39 AM »
Ok I repeated the upgrade and did all steps more careful. I could not reproduce the issue. So I see this as solved.

I had changed the options to the new values in config/config.inc.php, but there were config files for my different domains that were included by the main config file. These contained the old values.
« Last Edit: March 31, 2022, 08:03:39 AM by eehmke »