APPLICATION ERROR #26

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
Deundee
Posts: 3
Joined: 04 Jun 2025, 13:53

APPLICATION ERROR #26

Post 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.
SL-Gundam
Posts: 761
Joined: 06 Jul 2011, 14:17

Re: APPLICATION ERROR #26

Post by SL-Gundam »

Which version of EmailReporting are you trying to install?
Please try the latest 0.11.0-DEV version.
Deundee
Posts: 3
Joined: 04 Jun 2025, 13:53

Re: APPLICATION ERROR #26

Post 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
SL-Gundam
Posts: 761
Joined: 06 Jul 2011, 14:17

Re: APPLICATION ERROR #26

Post 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?
Deundee
Posts: 3
Joined: 04 Jun 2025, 13:53

Re: APPLICATION ERROR #26

Post 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.
SL-Gundam
Posts: 761
Joined: 06 Jul 2011, 14:17

Re: APPLICATION ERROR #26

Post by SL-Gundam »

Could be. I believe 1.19 was from before the plugin system.
Let us know if you encounter any other issues.
Post Reply