View Issue Details

IDProjectCategoryView StatusLast Update
0024389mantisbtbugtrackerpublic2026-05-14 06:12
Reportererdesc Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.13.1 
Target Version2.29.0Fixed in Version2.29.0 
Summary0024389: Cannot create Issue when core path is out of MantisBT root
Description

Hello,

After upgrade to MantisBT-2.13.1 and to 2.14.0 I get this message when submitting a new bug report :

'require_once(/var/www/mantisbt-base/core/commands/../../api/soap/mc_api.php): failed to open stream: No such file or directory' in '/var/www/mantisbt-base/core/commands/IssueAddCommand.php' line 36

As you can see, core and library are located in /var/www/mantisbt-base/ while api is located in /var/www/mantisbt/api/.

I can add ticket if I copy or move the api directiry inside /var/www/mantisbt-base/.

Is there any misconfiguration or is it a bug in MantisBT ?

My best Regards!

Eric

Steps To Reproduce

Have core/, lang/ and library/ outside of mantisbt DocumentRoot.

MantisBT version 2.13.1 or 2.14.0.

Report issue > complete it > Submit Issue

Error message:
'require_once(/var/www/mantisbt-base/core/commands/../../api/soap/mc_api.php): failed to open stream: No such file or directory' in '/var/www/mantisbt-base/core/commands/IssueAddCommand.php' line 36

Additional Information

Worked perfectly using version 2.12.0

TagsNo tags attached.

Relationships

related to 0023998 closedvboctor Implement IssueAddCommand and use it from SOAP, REST and Web UI 
related to 0024236 closedatrol IssueAddCommand Prevents API Folder Removal 
related to 0021584 confirmed core_path directory can't be moved outside the web root 

Activities

Related Changesets

MantisBT: master 6f9eefd0

2026-02-16 07:12

dregad


Details Diff
Use $g_absolute_path as base for SOAP API includes

Several Commands require SOAP API scripts to function. Until now, the
path to include these was built using `dirname( __DIR__, 2 )`, but this
does not work when $g_core_path has been moved outside of MantisBT root.

This is because Commands are in $g_core_path/commands, while SOAP API
scripts are in $g_absolute_path/api/soap, which can be in different
trees.

Fixes 0024389
Affected Issues
0024389
mod - core/classes/FilterConverter.class.php Diff File
mod - core/commands/ConfigsSetCommand.php Diff File
mod - core/commands/IssueAddCommand.php Diff File
mod - core/commands/IssueViewPageCommand.php Diff File
mod - core/commands/ProjectAddCommand.php Diff File
mod - core/commands/ProjectHierarchyAddCommand.php Diff File
mod - core/commands/ProjectUpdateCommand.php Diff File
mod - core/commands/ProjectUsersAddCommand.php Diff File
mod - core/commands/ProjectUsersGetCommand.php Diff File
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserUpdateCommand.php Diff File
mod - core/commands/VersionGetCommand.php Diff File