Undefined array key "iid_iswitch"
Hello,
I have this error in my php-fpm logs
"NOTICE: PHP message: PHP Warning: Undefined array key "iid_iswitch" in /roundcubemail/plugins/ident_switch/ident_switch.php on line 100"
I have search but have not found what it could be.
Roundcube: 1.5.3
Php: 8.0.22
Regards
Comments (4)
-
-
Account Deleted Roundcube 1.6.1 same problem.
My workaround for this (I know isn’t perfect or even good, but works, and don’t mess in logs anymore):
Changes in ident_switch.php at line 100:
Before:
\$iid_s = $_SESSION['iid2' . self::MY_POSTFIX];Change to:
if (array_key_exists('iid' . self::MY_POSTFIX, $_SESSION)) { $iid_s = $_SESSION['iid' . self::MY_POSTFIX]; } else { $iid_s = -1; }In my short tests works like a charm.
-
repo owner Hello. Will update my Roundcube installation and check this issue next week.
-
repo owner I believe, it’s a PHP 8 issue. Not related to roundcube of ident_switch version.
- Log in to comment
Hi,
I get the same issue. To solve it, you can have a look at : https://www.roundcubeforum.net/index.php?topic=30081.0
It requires to modify the file program/lib/Roundcube/rcube_smtp.php. It is a workaround and I don’t know how to prevent this change in the Roundcube code itself.
Regards.
Xuo.