View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0024389 | mantisbt | bugtracker | public | 2018-05-02 04:18 | 2026-05-14 06:12 |
| Reporter | erdesc | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.13.1 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0024389: 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: | ||||
| Additional Information | Worked perfectly using version 2.12.0 | ||||
| Tags | No tags attached. | ||||
|
MantisBT: master 6f9eefd0 2026-02-16 07:12 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 | ||