APPLICATION ERROR #26

Get help from other users here.

Moderators: Developer, Contributor

jfontana
Posts: 4
Joined: 06 Jul 2016, 13:29

APPLICATION ERROR #26

Post by jfontana »

Version 1.2.19

Could anybody help me figure out why I am getting the following error when I try to view an issue?

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.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #26

Post by atrol »

I was not able to reproduce your problem with a fresh install of the latest stable MantisBT release (1.2.19 at the moment).

You should provide detailed step-by-step instructions to reproduce the issue; the following additional information may also be useful:

- Exact version of MantisBT, PHP, Database, Web server, Browser and Operating System
- Relevant customizations (e.g. changes in config_inc.php, etc)
- Installed plugins or custom functions ?
- Was the MantisBT source code modified in any way ?

Additional, debugging information is needed to help understanding the problem. Please follow these steps:

1. temporarily configure your system as follows:
add this line to file config_inc.php

Code: Select all

$g_show_detailed_errors = ON;
WARNING - SECURITY RISK: the 'show_detailed_errors' config can cause MantisBT to display sensitive information about your system. We recommend to restrict its activation to a Test environment, only for as long as necessary. If possible, do not turn it ON globally, instead limit it for specific user(s) using the Manage Configuration page.

2. Reproduce the error

If the output does not help you resolving the issue and you need further assistance,

3. save the output of the error screen, preferably as an HTML page
4. be careful to remove/mask any confidential information if needed
5. upload the results here
Please use Search before posting and read the Manual
andreschandia
Posts: 5
Joined: 08 Jul 2016, 07:25

Re: APPLICATION ERROR #26

Post by andreschandia »

Here is the info you asked from Fontana (he's my partner)
  • 1.3.0-rc.3-devmaster-1.3.x-1612662
    PHP 5.6.22-0+deb8u1 (cli)
    mysql Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3
    Server version: Apache/2.4.10 (Debian)
    Browser in my case Firefox on linux (ubuntu)
    I guess Fontana's is Firefox on Mac
Relevant customizations:
  • Code: Select all

    $g_default_timezone       = 'Europe/Madrid';
    $g_path = 'https://parles.upf.edu/llocs/mantisbt/';
    $g_manual_url = 'https://www.mantisbt.org/support.php';
    $g_administrator_email = 'admin.parles@upf.edu';
    $g_webmaster_email = 'admin.parles@upf.edu';
    $g_from_email = 'norespondre-mantis@parles.upf.edu';
    $g_return_path_email = 'admin.parles@upf.edu';
    $g_default_language = 'ca';
    $g_fallback_language = 'ca';
    $g_window_title = 'Mantis@parles.upf.edu';
    $g_favicon_image = '/srv/web/favicon.ico';
    $g_logo_url = 'https://parles.upf.edu/llocs/mantisbt/';
    $g_show_realname = 'ON';
    $g_short_date_format = 'd/m/y';
    $g_normal_date_format = 'd/m/y H:i';
    $g_complete_date_format = 'd/m/Y H:i T';
    $g_default_bug_view_status = 'VS_PRIVATE';
    $g_default_bugnote_view_status = 'VS_PRIVATE';
    $g_default_reminder_view_status = 'VS_PRIVATE';
    $g_default_refresh_delay = '10';
    $g_allow_signup = 'OFF';
No plugins or customized functions, nor modification of the code.

Code: Select all

$g_show_detailed_errors = ON;
Added to config_inc.php, and just going to "My view" I get next 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.
Full path: .../mantisbt/core/helper_api.php
Line: 191
Variable Value Type
p_var1 VS_PRIVATE string
p_var2 50 integer
p_strict 1 boolean
Filename Line Function Args
.../mantisbt/core/helper_api.php 191 - - trigger_error ( <string>'26', <integer>256 )
.../mantisbt/core/helper_api.php 240 - - helper_check_variables_equal ( <string>'VS_PRIVATE', <integer>50, <boolean>true )
.../mantisbt/bugnote_add_inc.php 96 - - check_checked ( <string>'VS_PRIVATE', <integer>50 )
.../mantisbt/bug_view_inc.php 777 - - include ( <string>'.../mantisbt/bugnote_add_inc.php' )
.../mantisbt/view.php 37 - - include ( <string>'.../mantisbt/bug_view_inc.php' )

Thanks
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #26

Post by atrol »

Change the following lines in config_inc.php
from

Code: Select all

$g_default_bug_view_status = 'VS_PRIVATE';
$g_default_bugnote_view_status = 'VS_PRIVATE';
$g_default_reminder_view_status = 'VS_PRIVATE';
to

Code: Select all

$g_default_bug_view_status = VS_PRIVATE;
$g_default_bugnote_view_status = VS_PRIVATE;
$g_default_reminder_view_status = VS_PRIVATE;
Please use Search before posting and read the Manual
jfontana
Posts: 4
Joined: 06 Jul 2016, 13:29

Re: APPLICATION ERROR #26

Post by jfontana »

OK. Thank you very much for the prompt reply.

We did what you suggested but we still seem to be having the same problem. The same error message appears. Here are the more detailed error logs:

Full path: /srv/web/llocs/mantisbt/core/helper_api.php
Line: 191
Variable Value Type
p_var1 VS_PRIVAT string
p_var2 50 integer
p_strict 1 boolean
Filename Line Function Args
/srv/web/llocs/mantisbt/core/helper_api.php 191 - - trigger_error ( <string>'26', <integer>256 )
/srv/web/llocs/mantisbt/core/helper_api.php 240 - - helper_check_variables_equal ( <string>'VS_PRIVAT', <integer>50, <boolean>true )
/srv/web/llocs/mantisbt/bugnote_add_inc.php 96 - - check_checked ( <string>'VS_PRIVAT', <integer>50 )
/srv/web/llocs/mantisbt/bug_view_inc.php 777 - - include ( <string>'/srv/web/llocs/mantisbt/bugnote_add_inc.php' )
/srv/web/llocs/mantisbt/view.php 37 - - include ( <string>'/srv/web/llocs/mantisbt/bug_view_inc.php' )

Can this help you figure out what we are doing wrong?

JM
Attachments
Screenshot 2016-07-12 10.59.31.png
Screenshot 2016-07-12 10.59.31.png (222.34 KiB) Viewed 11646 times
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #26

Post by atrol »

Maybe you did not change the right file.
There is a inconsistency in your information concerning the version you use.
jfontana wrote:Version 1.2.19
andreschandia wrote:Here is the info you asked from Fontana (he's my partner)
1.3.0-rc.3-devmaster-1.3.x-1612662
In version 1.2.x of Mantis, the config_inc.php is stored in root directory of your installation.
Since 1.3.x it's stored in subfolder config.
You should double check, if you changed the right file.
Add the following line to config_inc.php

Code: Select all

die ("Hello");
After that you should see nothing more than "Hello" when trying to open any Mantis page.
Please use Search before posting and read the Manual
andreschandia
Posts: 5
Joined: 08 Jul 2016, 07:25

Re: APPLICATION ERROR #26

Post by andreschandia »

Well, when we started to have problems I had the 1.2.19 version installed, then Fontana found a post saying something about some files that should be replaced, as this didn't help I changed version to the nightly build, so when this issue was open we were already on the version I mentioned, check the image attached: mantisv.png
Ok, with all that clear now, yes, the only thing I see after adding

Code: Select all

die ("Hello");
to the config/config_inc.php file is Hello....
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #26

Post by atrol »

What do you get if you add the following line instead of die ("Hello")?

Code: Select all

die ("$g_default_bugnote_view_status");
Please use Search before posting and read the Manual
andreschandia
Posts: 5
Joined: 08 Jul 2016, 07:25

Re: APPLICATION ERROR #26

Post by andreschandia »

Then the only thing I see at my browser is:

VS_PRIVAT
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #26

Post by atrol »

This means that you did not change config_inc.php the way I described.
You still have single quotes around VS_PRIVAT

The expected result is that you should get 50 as output.
Please use Search before posting and read the Manual
andreschandia
Posts: 5
Joined: 08 Jul 2016, 07:25

Re: APPLICATION ERROR #26

Post by andreschandia »

No, the strings are in the same exact way you suggested, here's a copy again:

Code: Select all

$g_path = 'https://parles.upf.edu/llocs/mantisbt/';
$g_manual_url = 'https://www.mantisbt.org/support.php';
$g_administrator_email = 'admin.parles@upf.edu';
$g_webmaster_email = 'admin.parles@upf.edu';
$g_from_email = 'norespondre-mantis@parles.upf.edu';
$g_return_path_email = 'admin.parles@upf.edu';
$g_default_language = 'ca';
$g_fallback_language = 'ca';
$g_window_title = 'Mantis@parles.upf.edu';
$g_favicon_image = '/srv/web/favicon.ico';
$g_logo_url = 'https://parles.upf.edu/llocs/mantisbt/';
$g_show_realname = 'ON';
$g_short_date_format = 'd/m/y';
$g_normal_date_format = 'd/m/y H:i';
$g_complete_date_format = 'd/m/Y H:i T';
$g_default_bug_view_status = VS_PRIVATE;
$g_default_bugnote_view_status = VS_PRIVAT;
$g_default_reminder_view_status = VS_PRIVATE;
$g_default_refresh_delay = '10';
$g_allow_signup = 'OFF';

$g_show_detailed_errors = ON;
//die ("Hello");
//die ("$g_default_bugnote_view_status");
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #26

Post by atrol »

Quite strange, no idea at the moment.
The following entries are also wrong.
This should not be related to your problem, but who knows

Code: Select all

$g_show_realname = 'ON';
$g_default_refresh_delay = '10';
$g_allow_signup = 'OFF';
should be

Code: Select all

$g_show_realname = ON;
$g_default_refresh_delay = 10;
$g_allow_signup = OFF;
What do you get if config_inc.php contains just

Code: Select all

<?php
$g_default_bugnote_view_status = VS_PRIVATE;
die ("$g_default_bugnote_view_status");
Did you check your web server logs for errors and warnings?

[Edit]
I just noticed that you set

Code: Select all

$g_default_bugnote_view_status = VS_PRIVAT;
instead of

Code: Select all

$g_default_bugnote_view_status = VS_PRIVATE;
Please use Search before posting and read the Manual
andreschandia
Posts: 5
Joined: 08 Jul 2016, 07:25

Re: APPLICATION ERROR #26

Post by andreschandia »

Yes, it seems that when I deleted the quote I also deleted the last E of PRIVATE, well it looks like correcting this and deleting the others quotes you suggested made the trick, anyway I'm waiting for Fontana to confirm it.
Thanks
jfontana
Posts: 4
Joined: 06 Jul 2016, 13:29

Re: APPLICATION ERROR #26

Post by jfontana »

Yes! Error #26 is gone and everything seems to work now. Thank you very much for your help atrol!!

JM
gabobuceo
Posts: 1
Joined: 02 Jun 2017, 14:56

Re: APPLICATION ERROR #26

Post by gabobuceo »

I'm having the same error number but not the same situation.
APPLICATION ERROR #26

Code: Select all

Full path: /var/www/mantis/core/helper_api.php
Line: 189
Variable	Value	Type
p_var1	-1	integer
p_var2	additional_info	string
p_strict	1	boolean
Filename	Line			Function	Args
/var/www/mantis/core/helper_api.php	189	-	-	trigger_error	( <string>'26', <integer>256 )
/var/www/mantis/core/helper_api.php	260	-	-	helper_check_variables_equal	( <integer>-1, <string>'additional_info', <boolean>true )
/var/www/mantis/plugins/EmailReporting/core/config_api.php	874	-	-	check_selected	( <array> { [0] => -1 }, <string>'additional_info' )
/var/www/mantis/plugins/EmailReporting/core/config_api.php	750	-	-	ERP_custom_function_print_descriptions_option_list	( <integer>-1, <array> { [0] => 'additional_info', [1] => 'attachments', [2] => 'category_id', [3] => 'due_date', [4] => 'priority', [5] => 'product_build', [6] => 'product_version', [7] => 'reproducibility', [8] => 'steps_to_reproduce', [9] => 'tags', [10] => 'target_version', [11] => <array> { ['enabled'] => 0, ['description'] => '', ['mailbox_type'] => 'POP3', ['hostname'] => '', ['port'] => '', ['encryption'] => 'None', ['ssl_cert_verify'] => 1, ['erp_username'] => 'gfernandez', ['erp_password'] => 'SW5zZXJjb20wMQ==', ['auth_method'] => 'USER', ['project_id'] => 3, ['global_category_id'] => 3 }, [12] => <array> { ['enabled'] => 1, ['description'] => '', ['mailbox_type'] => 'IMAP', ['hostname'] => 'correo.ceip.edu.uy', ['port'] => '993', ['encryption'] => 'STARTTLS', ['ssl_cert_verify'] => 1, ['erp_username'] => 'gfernandez', ['erp_password'] => 'SW5zZXJjb20wMQ==', ['auth_method'] => 'LOGIN', ['project_id'] => 4, ['global_category_id'] => 19, ['imap_basefolder'] => '', ['imap_createfolderstructure'] => 1 }, [13] => <array> { ['enabled'] => 1, ['description'] => 'Mailbox de Avisos', ['mailbox_type'] => 'IMAP', ['hostname'] => 'correo.ceip.edu.uy', ['port'] => '993', ['encryption'] => 'STARTTLS', ['ssl_cert_verify'] => 1, ['erp_username'] => 'gfernandez', ['erp_password'] => 'SW5zZXJjb20wMQ==', ['auth_method'] => 'USER', ['project_id'] => 3, ['global_category_id'] => 3, ['imap_basefolder'] => 'inbox', ['imap_createfolderstructure'] => 1 } } )
/var/www/mantis/plugins/EmailReporting/pages/manage_mailbox.php	129	-	-	ERP_output_config_option	( <string>'select_mailbox', <string>'dropdown', <integer>-1, <string>'print_descriptions_option_list', <array> { [0] => 'additional_info', [1] => 'attachments', [2] => 'category_id', [3] => 'due_date', [4] => 'priority', [5] => 'product_build', [6] => 'product_version', [7] => 'reproducibility', [8] => 'steps_to_reproduce', [9] => 'tags', [10] => 'target_version', [11] => <array> { ['enabled'] => 0, ['description'] => '', ['mailbox_type'] => 'POP3', ['hostname'] => '', ['port'] => '', ['encryption'] => 'None', ['ssl_cert_verify'] => 1, ['erp_username'] => 'gfernandez', ['erp_password'] => 'SW5zZXJjb20wMQ==', ['auth_method'] => 'USER', ['project_id'] => 3, ['global_category_id'] => 3 }, [12] => <array> { ['enabled'] => 1, ['description'] => '', ['mailbox_type'] => 'IMAP', ['hostname'] => 'correo.ceip.edu.uy', ['port'] => '993', ['encryption'] => 'STARTTLS', ['ssl_cert_verify'] => 1, ['erp_username'] => 'gfernandez', ['erp_password'] => 'SW5zZXJjb20wMQ==', ['auth_method'] => 'LOGIN', ['project_id'] => 4, ['global_category_id'] => 19, ['imap_basefolder'] => '', ['imap_createfolderstructure'] => 1 }, [13] => <array> { ['enabled'] => 1, ['description'] => 'Mailbox de Avisos', ['mailbox_type'] => 'IMAP', ['hostname'] => 'correo.ceip.edu.uy', ['port'] => '993', ['encryption'] => 'STARTTLS', ['ssl_cert_verify'] => 1, ['erp_username'] => 'gfernandez', ['erp_password'] => 'SW5zZXJjb20wMQ==', ['auth_method'] => 'USER', ['project_id'] => 3, ['global_category_id'] => 3, ['imap_basefolder'] => 'inbox', ['imap_createfolderstructure'] => 1 } } )
/var/www/mantis/plugin.php	69	-	-	include	( <string>'/var/www/mantis/plugins/EmailReporting/pages/manage_mailbox.php' )
I'm having this at trying to access on the manage_mailbox page
Post Reply