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

Several PHP Warnings after Upgrade to 1.5.1 - PHP 8.0.13 #8363

Closed
ghost opened this issue Dec 14, 2021 · 2 comments
Closed

Several PHP Warnings after Upgrade to 1.5.1 - PHP 8.0.13 #8363

ghost opened this issue Dec 14, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 14, 2021

RoundCube: 1.5.1
PHP-FPM: 8.0.13

There are several PHP Warnings in the error_log after upgrading to 1.5.1:

Undefined array key "data" in (…)/program/include/rcmail_action.php on line 686
Undefined property: rcube_message::$size in (…)/program/actions/mail/compose.php on line 696
Undefined property: rcube_message::$mime_id in (…)/program/actions/mail/compose.php on line 701
Undefined property: rcube_message::$ctype_secondary in (…)/program/actions/mail/compose.php on line 745
Undefined property: rcube_message::$ctype_secondary in (…)/program/actions/mail/compose.php on line 750
Undefined property: rcube_message::$ctype_secondary in (…)/program/actions/mail/compose.php on line 760
Attempt to read property "mdn_to" on null in (…)/program/include/rcmail_sendmail.php on line 1356
Undefined array key "" in (…)/program/lib/Roundcube/rcube_imap.php on line 1045
Undefined array key "_type" in (…)/program/actions/mail/search_contacts.php on line 90
Undefined array key "mimetype" in (…)/program/actions/mail/send.php on line 402
Trying to access array offset on value of type null in (…)/program/lib/Roundcube/rcube_plugin_api.php on line 371
@ghost
Copy link
Author

ghost commented Dec 17, 2021

And now this:

PHP Fatal error:  Uncaught TypeError: strcasecmp(): Argument #1 ($string1) must be of type string, array given in (…)/program/lib/Roundcube/bootstrap.php:119
Stack trace:
#0 (…)/program/lib/Roundcube/bootstrap.php(119): strcasecmp()
#1 (…)/program/include/rcmail_action.php(1325): in_array_nocase()
#2 (…)/program/include/rcmail_action.php(1136): rcmail_action::render_folder_tree_select()
#3 (…)/program/actions/settings/folder_edit.php(148): rcmail_action::folder_selector()
#4 (…)/program/include/rcmail_output_html.php(1484): rcmail_action_settings_folder_edit::folder_form()
#5 [internal function]: rcmail_output_html->xml_command()
#6 (…)/program/include/rcmail_output_html.php(1322): preg_replace_callback()
#7 (…)/program/include/rcmail_output_html.php(825): rcmail_output_html->parse_xml()
#8(…)/program/include/rcmail_output_html.php(654): rcmail_output_html->parse()
#9 (…)/program/actions/settings/folder_edit.php(39): rcmail_output_html->send()
#10 (…)/program/include/rcmail.php(275): rcmail_action_settings_folder_edit->run()
#11 (…)/index.php(283): rcmail->action_handler()
#12 {main}
  thrown in (…)/program/lib/Roundcube/bootstrap.php on line 119

This happens for one user whenever a folder is edited.

@alecpl
Copy link
Member

alecpl commented Dec 17, 2021

Fixed.

@alecpl alecpl closed this as completed Dec 17, 2021
marczi pushed a commit to marczi/roundcubemail that referenced this issue Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant