Page 1 of 1

APPLICATION ERROR #26

Posted: 08 Nov 2025, 10:33
by Deundee
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.

Re: APPLICATION ERROR #26

Posted: 08 Nov 2025, 11:46
by SL-Gundam
Which version of EmailReporting are you trying to install?
Please try the latest 0.11.0-DEV version.

Re: APPLICATION ERROR #26

Posted: 09 Nov 2025, 09:21
by Deundee
I used the last version.

Finally, I deleted the old plugin tables using MySQL.

DROP TABLE IF EXISTS mantis_emailreporting_mailbox_table;
DROP TABLE IF EXISTS mantis_emailreporting_msg_table;

DELETE FROM mantis_plugin_table WHERE basename = 'EmailReporting';
DELETE FROM mantis_config_table WHERE config_id LIKE '%emailreporting%';
DROP TABLE mantis_plugin_EmailReporting_msgids_table

I reloaded the plugin and now at least it lets me access it

Re: APPLICATION ERROR #26

Posted: 10 Nov 2025, 18:54
by SL-Gundam
If that was the solution then thats good.
Still can't figure out how the problem was created.

sidenote: mantis_emailreporting_mailbox_table and mantis_emailreporting_msg_table have never existed i believe. Did you use a fork of EmailReporting with unknown modifications?

Re: APPLICATION ERROR #26

Posted: 11 Nov 2025, 08:30
by Deundee
No, i suppose it's because I've been migrating from version 1.19 and it may have carried over some very old fields.

Re: APPLICATION ERROR #26

Posted: 11 Nov 2025, 21:38
by SL-Gundam
Could be. I believe 1.19 was from before the plugin system.
Let us know if you encounter any other issues.