roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.81k stars 1.63k forks source link

'Duplicate entry' PHP error in rcube_db.php #9281

Open ozgurkazancci opened 9 months ago

ozgurkazancci commented 9 months ago

Any idea what would be the reason for this PHP error in Roundcube?

PHP version: 8.0.30 Roundcube version: 1.6.5

<915r89c3> DB Error: [1062] Duplicate entry '915r89c3n9icoubkgnkg4s646e' for key 'PRIMARY' (SQL Query: INSERT INTO `session` (`sess_id`, `vars`, `ip`, `changed`) VALUES ('915r89c3n9icoubkgnkg4s646e', 'bGFuZ3VhZ2V8czo1OiJlbl9VUyI7dGVtcHxiOjE7cmVxdWVzdF90b2tlbnxzOjMyOiJySUtNcE9QeTFGVUhPMHVPVlZNcHFPdjZoWHUzNmN1cCI7', '13.20.61.28', now())) in /rcube/program/lib/Roundcube/rcube_db.php on line 577 (GET /webmail/?_task=logout&_token=y3Ltm8VpIyooo6d75hioXcbdl8yHL36h)
ozgurkazancci commented 9 months ago

And by the way, got few more php-related warning messages;

PHP Warning: Undefined array key "modcssurls" in /rcube/program/actions/utils/modcss.php on line 32

PHP Warning: Trying to access array offset on value of type null in /rcube/program/actions/utils/modcss.php on line 32

alecpl commented 9 months ago

The warnings were already fixed in git. As for the DB error. It might be something wrong with the session handling or some race-condition. Sometimes web browsers do strange things. Does it cause visible issues or is reproducible?