Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "drafts_mbox_default_iswitch" #421

Closed
jorgebnunes opened this issue Jan 27, 2023 · 3 comments
Closed

Undefined array key "drafts_mbox_default_iswitch" #421

jorgebnunes opened this issue Jan 27, 2023 · 3 comments

Comments

@jorgebnunes
Copy link

Hi!

I'm using RC 1.6.0 for a long time and everything was working ok, then, my RC wasn't working anymore and after troubleshooting I managed to do a "composer update --no-dev" and got this message:

Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file
Package operations: 0 installs, 1 update, 0 removals
Update of roundcube/carddav failed

In ident_switch.php line 47:

Undefined array key "drafts_mbox_default_iswitch"

My composer.json has:

"roundcube/carddav": ">=4.4.6",

So, is anyone experiencing this error?

Thanks.

@mstilkerich
Copy link
Owner

Hello, this is not a file of rcmcarddav. Have you tried simply running the composer command again? There is a design issue in the roundcube plugin installer that can result in weird composer errors, but often it helps to simply run composer again.

@mstilkerich
Copy link
Owner

The file throwing the PHP warning that results in composer to fail is part of another roundcube plugin. Roundcube-installer loads roundcube classes during the composer run (that is the design issue I was referring to), and this is how ident_switch code gets executed by composer while attempting to upgrade rcmcarddav.

https://bitbucket.org/BoresExpress/ident_switch/src/master/ident_switch.php

roundcube/plugin-installer#38

I sm closing this as it is no issue with rcmcarddav. You can consider reporting a PHP8 compatibility issue with ident_switch but there already exists a similar issue.

@jorgebnunes
Copy link
Author

The file throwing the PHP warning that results in composer to fail is part of another roundcube plugin. Roundcube-installer loads roundcube classes during the composer run (that is the design issue I was referring to), and this is how ident_switch code gets executed by composer while attempting to upgrade rcmcarddav.

https://bitbucket.org/BoresExpress/ident_switch/src/master/ident_switch.php

roundcube/plugin-installer#38

I sm closing this as it is no issue with rcmcarddav. You can consider reporting a PHP8 compatibility issue with ident_switch but there already exists a similar issue.

Hi Michael,

You're right. The problem was identity switch plugin. I disabled it and now everything is working again!
Also, can you please refer in the documentation that upgrading to version 5 of your carddav plugin must be done while logged out so the DB upgrade is done when login happens?
Thanks for your work, time and support!
Regards,
Jorge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants