What causes this error?

Get help from other users here.

Moderators: Developer, Contributor

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

What causes this error?

Post by mushu »

Windows Server 2012 R2
Mantis 2.25.2
---

Code: Select all

APPLICATION ERROR #1802

Relationship not found.

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.
Detailed error information
Full path: C:\MantisBT2252\core\error_api.php
Line number: 85
Stack trace
#	Filename	Line	Class	Type	Function	Args
0	C:\MantisBT2252\core\relationship_api.php	618	-	-	relationship_type_ensure_valid	<string>''
1	C:\MantisBT2252\core\relationship_api.php	642	-	-	relationship_get_description_src_side	<string>''
2	C:\MantisBT2252\core\history_api.php	925	-	-	relationship_get_description_for_history	<string>''
3	C:\MantisBT2252\core\template_api.php	70	-	-	history_localize_item	<string>'', <string>'12', <string>'18', <string>'', <boolean>false
4	C:\MantisBT2252\core\email_api.php	1718	-	-	email_template_bug_message
... bunch of email text...
7	C:\MantisBT2252\core\email_api.php	1110	-	-	email_generic	<integer>3136, <string>'resolved', <string>'email_notification_title_for_status_bug_resolved'
8	C:\MantisBT2252\bug_update.php	497	-	-	email_resolved	<integer>3136
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: What causes this error?

Post by atrol »

The error is most likely caused by your changes of original MantisBT code.
e.g file template_api.php and function email_template_bug_message do not exist in original MantisBT.
Please use Search before posting and read the Manual
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: What causes this error?

Post by mushu »

Ahh, okay. Yeah, having to keep the email plugin updated with new Mantis versions so we don't lose our pretty emails. Sure wish that could be added to Mantis as an optional default in the code...
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: What causes this error?

Post by atrol »

What you are using is not a plugin.

A MantisBT plugin
- does not change any original source code of MantisBT
- does not add any files in MantisBT core folder
- must typically not be changed when upgrading MantisBT as long you are not upgrading to a new major version (e.g. from 1.x to 2.x)
Please use Search before posting and read the Manual
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: What causes this error?

Post by mushu »

Yep, which is why I'd love to have that feature added to the main codebase. I'm sure that will never happen, but I can keep hoping!
Post Reply