INTERNAL APPLICATION ERROR

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

Moderators: Developer, Contributor

Post Reply
AlexNikitos
Posts: 6
Joined: Mar 20, 2018 5:47 pm

INTERNAL APPLICATION ERROR

Post by AlexNikitos » Mar 22, 2018 5:45 am

I have a last version MantistBT 2.12.0, EmailReporting v0.10.0, PHP 7.1

1. When I check mailbox in "Manage MailBoxes" tab, I get an error: INTERNAL APPLICATION ERROR ...

And of course mailbox not checked.

2. When I click on page /support/plugins/EmailReporting/scripts/bug_report_mail.php (in "Manage Configuration Options" tab) I get a 403 page.

How to fix it?

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: INTERNAL APPLICATION ERROR

Post by SL-Gundam » Mar 22, 2018 12:32 pm

I suspect one of them to be caused because of a function that was removed from MantisBT in 2.11
https://github.com/mantisbt-plugins/Ema ... 1bec8b080f

The 403 should be corrected with this change
https://github.com/mantisbt-plugins/Ema ... cc6135d1f4

Please install the latest development version from github and see whether you still have the issues
https://github.com/mantisbt-plugins/EmailReporting

AlexNikitos
Posts: 6
Joined: Mar 20, 2018 5:47 pm

Re: INTERNAL APPLICATION ERROR

Post by AlexNikitos » Mar 23, 2018 4:51 pm

Thank you very much! That problems fixed.

I have a new one:

"Preferred realname for new user creations" This setting does not work, the field remains blank in the user's card.

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: INTERNAL APPLICATION ERROR

Post by SL-Gundam » Mar 24, 2018 7:28 am

You would have give me some more information since it works fine for me

Is it possible that you provide a raw_msg using debug mode?
What option have you chosen for preferred username?
What option have you chosen for preferred realname?

AlexNikitos
Posts: 6
Joined: Mar 20, 2018 5:47 pm

Re: INTERNAL APPLICATION ERROR

Post by AlexNikitos » Mar 24, 2018 8:16 am

"Debug mode" is OFF

"Signup new users automatically" is ON

"Preferred username for new user creations" works correctly with all values

"Preferred realname for new user creations " does not respond to any value

I saw a mistake in my virtual hosting when processing:

Code: Select all

INTERNAL APPLICATION ERROR: 


Call to undefined function user_is_realname_unique()
UPD: I fix it. Delete this function from mail_api.php:
if ( ( !function_exists( 'user_is_realname_valid' ) || user_is_realname_valid( $t_realname ) ) && user_is_realname_unique( $p_username, $t_realname ) )
Last edited by AlexNikitos on Mar 25, 2018 2:20 am, edited 1 time in total.

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: INTERNAL APPLICATION ERROR

Post by SL-Gundam » Mar 24, 2018 11:39 am

They removed that function in MantisBT 2.12

I will modify the code accordingly
Last edited by SL-Gundam on Mar 24, 2018 11:50 am, edited 1 time in total.

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: INTERNAL APPLICATION ERROR

Post by SL-Gundam » Mar 24, 2018 11:49 am


Post Reply