APPLICATION ERROR #26
Posted: 08 Nov 2025, 10:33
Good morning.
I've migrated my Mantis version from 1.19 to the latest, in different phases and on different servers to avoid problems with PHP and MySQL.
In principle, everything works correctly, but when I install the email reporting plugin and go to the Manage Mailboxes section, I get the following error:
APPLICATION ERROR #26
Data Type mismatch. Enable detailed error messages for further information.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
When I enable the error, it gives this data:
Detailed error information
Full path: /var/www/mantis/core/helper_api.php
Line number: 191
Stack trace
# Filename Line Class Type Function Args
0 /var/www/mantis/core/helper_api.php 191 - - trigger_error <string>'26', <integer>256
1 /var/www/mantis/core/helper_api.php 262 - - helper_check_variables_equal <integer>-1, <string>'array (', <boolean>true
2 /var/www/mantis/plugins/EmailReporting/core/config_api.php 994 - - check_selected <array> { [0] => -1 }, <string>'array ('
3 /var/www/mantis/plugins/EmailReporting/core/config_api.php 834 - - ERP_custom_function_print_descriptions_option_list <integer>-1, <array> { [0] => 'array (' }
4 /var/www/mantis/plugins/EmailReporting/pages/manage_mailbox.php 112 - - ERP_output_config_option <string>'select_mailbox', <string>'dropdown', <integer>-1, <string>'print_descriptions_option_list', <array> { [0] => 'array (' }
5 /var/www/mantis/plugin.php 79 - - include <string>'/var/www/mantis/plugins/EmailReporting/pages/manage_mailbox.php'
How can I solve it? I would like to use this plugin.
Thank you.
I've migrated my Mantis version from 1.19 to the latest, in different phases and on different servers to avoid problems with PHP and MySQL.
In principle, everything works correctly, but when I install the email reporting plugin and go to the Manage Mailboxes section, I get the following error:
APPLICATION ERROR #26
Data Type mismatch. Enable detailed error messages for further information.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
When I enable the error, it gives this data:
Detailed error information
Full path: /var/www/mantis/core/helper_api.php
Line number: 191
Stack trace
# Filename Line Class Type Function Args
0 /var/www/mantis/core/helper_api.php 191 - - trigger_error <string>'26', <integer>256
1 /var/www/mantis/core/helper_api.php 262 - - helper_check_variables_equal <integer>-1, <string>'array (', <boolean>true
2 /var/www/mantis/plugins/EmailReporting/core/config_api.php 994 - - check_selected <array> { [0] => -1 }, <string>'array ('
3 /var/www/mantis/plugins/EmailReporting/core/config_api.php 834 - - ERP_custom_function_print_descriptions_option_list <integer>-1, <array> { [0] => 'array (' }
4 /var/www/mantis/plugins/EmailReporting/pages/manage_mailbox.php 112 - - ERP_output_config_option <string>'select_mailbox', <string>'dropdown', <integer>-1, <string>'print_descriptions_option_list', <array> { [0] => 'array (' }
5 /var/www/mantis/plugin.php 79 - - include <string>'/var/www/mantis/plugins/EmailReporting/pages/manage_mailbox.php'
How can I solve it? I would like to use this plugin.
Thank you.