Page 1 of 1

INTERNAL APPLICATION ERROR

Posted: Mar 22, 2018 5:45 am
by AlexNikitos
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?

Re: INTERNAL APPLICATION ERROR

Posted: Mar 22, 2018 12:32 pm
by SL-Gundam
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

Re: INTERNAL APPLICATION ERROR

Posted: Mar 23, 2018 4:51 pm
by AlexNikitos
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.

Re: INTERNAL APPLICATION ERROR

Posted: Mar 24, 2018 7:28 am
by SL-Gundam
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?

Re: INTERNAL APPLICATION ERROR

Posted: Mar 24, 2018 8:16 am
by AlexNikitos
"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 ) )

Re: INTERNAL APPLICATION ERROR

Posted: Mar 24, 2018 11:39 am
by SL-Gundam
They removed that function in MantisBT 2.12

I will modify the code accordingly

Re: INTERNAL APPLICATION ERROR

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