APPLICATION ERROR #1802

Get help from other users here.

Moderators: Developer, Contributor

mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

No other code changes to core files. Plugins:

Code: Select all

Plugin	Description	Dependencies	Priority	Protected	Actions
adLogin 1.01	Automated login within AD
Author: Cas Nuy
Website: http://www.nuy.info	MantisBT Core 2.0.0	
3
	
Email Reporting 0.10.1	Offers the functionality to add issues and notes by email.
Author: Indy and various people after him.
Website: http://www.mantisbt.org/wiki/doku.php/mantisbt:plugins:emailreporting	MantisBT Core 1.3.0, <2.99.99	
3
	
Import/Export issues 2.25.2	Adds XML based import and export capabilities to MantisBT.
Author: MantisBT Team
Website: http://www.mantisbt.org	MantisBT Core 2.25.0	
3
	
JqueryExample 0.0.1	A Jquery plugin to modify Mantis Look
Author: Your Self
Website: yourwebsite.org	MantisBT Core 2.0.0	
3
	
Mantis Graphs 2.25.2	Official graph plugin.
Author: MantisBT Team
Website: http://www.mantisbt.org	MantisBT Core 2.25.0	
3
	
MantisBT Core 2.25.2	Core Plugin API for the Mantis Bug Tracker.
Author: MantisBT Team
Website: http://www.mantisbt.org	No dependencies	 	 	
MantisBT Formatting 2.25.2	Official text processing and formatting plugin.
Author: MantisBT Team
Website: http://www.mantisbt.org	MantisBT Core 2.25.0	
3
	
Time Tracking 2.0.6	Time tracking plugin that supports entering date worked, time and notes. Also includes limited permissions per user.
Author: Elmar Schumacher, Michael Baker, Erwann Penet
Website: https://github.com/mantisbt-plugins/timetracking	MantisBT Core 2.0.0	
3
	
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: APPLICATION ERROR #1802

Post by cas »

So can you exclude historical data in your template so we can verify that is causing the issue?
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

Do I do that by editing the template file? I cant remember how we set this up it's been too long lol.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: APPLICATION ERROR #1802

Post by cas »

yep, edit the template itself please
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

So I just commented out this line in the message template file and it still generated the error when I added that account.

Code: Select all

<!--<tr><td><b>Last History</b></td><td> {{ lasthisdata }}</td></tr>-->
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: APPLICATION ERROR #1802

Post by cas »

Check this line too:

Code: Select all

<tr><td><b>All History</b></td><td>{{ hisdata }}</td></tr>
Also comment this line"

Code: Select all

<tr><td><b>Relations</b></td><td> {{ reldata }} </td></tr>
Now what happens?
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

No difference because I already had those commented out. Here is the current template section:

Code: Select all

<table>
<tr><td><b>Issue-id</b></td><td> {{ bug_id }} (<a href={{ url }}>details in issue tracker</a>)</td></tr>
<tr><td><b>Status</b></td><td> {{ status }}</td></tr>
<tr><td><b>Submitted</b></td><td> {{ submitted }}</td></tr>
<tr><td><b>Last Modified</b></td><td> {{ modified }}</td></tr>
<tr><td><b>Priority</b></td><td> {{ priority }}</td></tr>
<tr><td><b>Severity</b></td><td> {{ severity }}</td></tr>
<tr><td><b>Reproducibility</b></td><td> {{ repro }}</td></tr>
<tr><td><b>Reporter</b></td><td> {{ reporter }}</td></tr>
<tr><td><b>Project</b></td><td> {{ project }}</td></tr>
<tr><td><b>Category</b></td><td> {{ category }}</td></tr>
<tr><td><b>Summary</b></td><td> {{ summary }}</td></tr>
<tr><td><b>Description</b></td><td><pre>{{ description }}</pre></td></tr>
<tr><td><b>Steps to reproduce</b></td><td><pre>{{ steps }}</pre></td></tr>
<tr><td><b>Additional Information</b></td><td><pre>{{ info }}</pre></td></tr>
<tr><td><b>Due-Date</b></td><td> {{ due_date }}</td></tr>
<!--
<tr><td><b>Tags</b></td><td> {{ tags }}</td></tr>
<tr><td><b>Custom Fields</b></td><td> {{ cfdata }}</td></tr>
<tr><td><b>Relations</b></td><td> {{ reldata }}</td></tr>
-->
<tr><td><b>Notes</b></td><td> {{ notedata }}</td></tr>
<!--<tr><td><b>Last History</b></td><td> {{ lasthisdata }}</td></tr>-->
<!--
<tr><td><b>Referer</b></td><td> {{ reference }}</td></tr>
<tr><td><b>All History</b></td><td>{{ hisdata }}</td></tr>
<tr><td><b>Available data</b></td><td><pre> {{ mail_data }}</pre></td></tr>
-->
<!-- <tr><td colspan='2' style='text-align:center;border:0'><a href={{ url }}> View all details inside the Issue Tracker</a></td></tr> -->
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: APPLICATION ERROR #1802

Post by cas »

hmmm, that makes it pretty strange. What you can try is t comment out the lines 55 to 97 in template_api.php
I cannot reproduce it so i am somewhat in the dark here.
Can you try this?
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

That did it, no error. So something in that section of code is not liking whatever is associated with that user record.
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

The problem lies in the lines 65-78 section of code, the code above and below that works fine uncommented.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #1802

Post by atrol »

cas you have to change the call of history_localize_item.
This function was changed in version 2.24.4 when fixing https://mantisbt.org/bugs/view.php?id=20690
https://github.com/mantisbt/mantisbt/co ... 216c802ae5
Please use Search before posting and read the Manual
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: APPLICATION ERROR #1802

Post by cas »

@atrol Thanks for pointing this out. I did not search in that direction since i could not reproduce the problem.
Anyway updated the template_api to support both situations so support for version below and above 2.24.4

@mushu, can you check the attached template_api.php?
Attachments
template_api.zip
(1.99 KiB) Downloaded 379 times
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: APPLICATION ERROR #1802

Post by mushu »

YAY! It works fine now. Thanks @atrol and @cas for your time on debugging this.
Post Reply