View Issue Details

IDProjectCategoryView StatusLast Update
0011999mantisbtcustomizationpublic2017-01-31 04:05
ReporterKarlReichert Assigned Toatrol  
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.1 
Summary0011999: missing include files in helper_api.php
Description

I tried customizing strings on a per project base, as described here: http://www.futureware.biz/blog/index.php?title=customising_localised_strings_in_mantis&more=1&c=1&tb=1&pb=1 (lower part of the text)

Doing that, I found that in helper_api.php in function helper_get_current_project() the functions project_exists() and access_has_project_level() are called, but not found, because the files, where they are defined, are not included.

I had to add

require_once( 'project_api.php' );
require_once( 'access_api.php' );

at the beginning of file helper_api.php to get it working.

Steps To Reproduce

Try to customize strings as described in http://www.futureware.biz/blog/index.php?title=customising_localised_strings_in_mantis&more=1&c=1&tb=1&pb=1 (lower part).

When opening the bug report page, you will get an error telling that function project_exists() was not found.

TagsNo tags attached.

Activities

dhx

dhx

2010-06-07 07:42

reporter   ~0025723

This should be resolved in 1.3.x as I redid the include system for the API.

I'll leave this issue open as it affects people writing plugins for 1.2.x

kelson

kelson

2014-11-13 03:36

reporter   ~0041835

Hi,

I have the same issue but since I added project_api.php and access_api.api at the beginning of helper_api.php, all mantis issues with a relationship do not work.
The following error appears :
APPLICATION ERROR #1802
Relationship not found.

atrol

atrol

2017-01-18 16:16

developer   ~0055219

We are resolving this issue as "no change required", because it was reported against an old version of MantisBT which is no longer supported.

We recommend that you upgrade to the latest stable version [1]; if after doing so the problem still exists, do not hesitate to reopen the issue.

[1] http://www.mantisbt.org/download.php