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: 7
Joined: 20 Mar 2018, 22:47

INTERNAL APPLICATION ERROR

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

Re: INTERNAL APPLICATION ERROR

Post 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
AlexNikitos
Posts: 7
Joined: 20 Mar 2018, 22:47

Re: INTERNAL APPLICATION ERROR

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

Re: INTERNAL APPLICATION ERROR

Post 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?
AlexNikitos
Posts: 7
Joined: 20 Mar 2018, 22:47

Re: INTERNAL APPLICATION ERROR

Post 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 ) )
Last edited by AlexNikitos on 25 Mar 2018, 07:20, edited 1 time in total.
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: INTERNAL APPLICATION ERROR

Post by SL-Gundam »

They removed that function in MantisBT 2.12

I will modify the code accordingly
Last edited by SL-Gundam on 24 Mar 2018, 16:50, edited 1 time in total.
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: INTERNAL APPLICATION ERROR

Post by SL-Gundam »

Post Reply