Author Topic: bukowski12 vacation plugin does not work with more identities  (Read 7184 times)

Offline bodi234

  • Newbie
  • *
  • Posts: 4
Hello, i installed the plugin bukowski12/vacation (https://github.com/bukowski12/roundcube-vacation-plugin) manually and with the composer, but every time i add an identity, i get a server error with http status code 500.

In the error logfile are the following lines:

[26-Apr-2023 13:44:50 Europe/Berlin] PHP Fatal error:  Uncaught Error: Object of class html_inputfield could not be converted to string in /var/www/roundcubemail-1.5.3/plugins/vacation/vacation.php:184
Stack trace:
#0 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(1484): vacation->vacation_form()
#1 [internal function]: rcmail_output_html->xml_command()
#2 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(1322): preg_replace_callback()
#3 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(825): rcmail_output_html->parse_xml()
#4 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(654): rcmail_output_html->parse()
#5 /var/www/roundcubemail-1.5.3/plugins/vacation/vacation.php(80): rcmail_output_html->send()
#6 /var/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube_plugin_api.php(573): vacation->vacation_init()
#7 /var/www/roundcubemail-1.5.3/program/include/rcmail.php(248): rcube_plugin_api->exec_action()
#8 /var/www/roundcubemail-1.5.3/index.php(283): rcmail->action_handler()
#9 {main}
  thr in /var/www/roundcubemail-1.5.3/plugins/vacation/vacation.php on line 184

For me it looks like a problem in code, but i am not sure. Any tips to fix the problem?

Best regards

Offline bodi234

  • Newbie
  • *
  • Posts: 4
Re: bukowski12 vacation plugin does not work with more identities
« Reply #1 on: August 22, 2023, 05:21:26 AM »
For vacation messages i use now the include plugin managesieve. It is easy to enable it and i think it should be the default.

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: bukowski12 vacation plugin does not work with more identities
« Reply #2 on: August 22, 2023, 11:43:45 AM »
Hello, i installed the plugin bukowski12/vacation (https://github.com/bukowski12/roundcube-vacation-plugin) manually and with the composer, but every time i add an identity, i get a server error with http status code 500.

In the error logfile are the following lines:

[26-Apr-2023 13:44:50 Europe/Berlin] PHP Fatal error:  Uncaught Error: Object of class html_inputfield could not be converted to string in /var/www/roundcubemail-1.5.3/plugins/vacation/vacation.php:184
Stack trace:
#0 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(1484): vacation->vacation_form()
#1 [internal function]: rcmail_output_html->xml_command()
#2 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(1322): preg_replace_callback()
#3 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(825): rcmail_output_html->parse_xml()
#4 /var/www/roundcubemail-1.5.3/program/include/rcmail_output_html.php(654): rcmail_output_html->parse()
#5 /var/www/roundcubemail-1.5.3/plugins/vacation/vacation.php(80): rcmail_output_html->send()
#6 /var/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube_plugin_api.php(573): vacation->vacation_init()
#7 /var/www/roundcubemail-1.5.3/program/include/rcmail.php(248): rcube_plugin_api->exec_action()
#8 /var/www/roundcubemail-1.5.3/index.php(283): rcmail->action_handler()
#9 {main}
  thr in /var/www/roundcubemail-1.5.3/plugins/vacation/vacation.php on line 184

For me it looks like a problem in code, but i am not sure. Any tips to fix the problem?

Best regards

Looks like plugin to old for working with modern RC