View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011549 | mantisbt | installation | public | 2010-02-24 16:34 | 2014-12-08 00:34 |
Reporter | Papst | Assigned To | dregad | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Apache 2.2 / PHP 5.2.x | OS | Gentoo | ||
Product Version | 1.2.0 | ||||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0011549: PHP include_path change restriction | ||||
Description | Hi, I've tried to install MantisBT 1.2 on my Webserver. I figured out that the php setting 'include_path' is restricted from the hoster so the script can't change this! | ||||
Tags | No tags attached. | ||||
I had the same error. If you have copied config_inc.php.sample to config_inc.php (and adjusted parameters) you could have got an empty page. The file config_inc.php.sample hasn't got closing php statement. I suggest to add Leandro. |
|
Closing php tags are not needed, and sometimes harmful, so we removed all of them from php files. |
|
I've been writing out the need for setting the include path in MantisBT 1.3.x There are still a few remaining places where include_path is set in MantisBT as per http://git.mantisbt.org/?p=mantisbt.git&a=search&h=HEAD&st=grep&s=include_path but they're on the agenda for removal. I suggest using a nightly build of MantisBT 1.3.x as this problem should be mostly resolved for now. The only things that probably won't work are the MantisGraph plugin and SOAP functionality. I'll try and fix those soon! |
|
I don't think I agree on this change... |
|
Mantis has configuration options to let users select the paths in which required files are located. If we already know the path and filenames there is little need for PHP to try finding files itself... we may as well just tell PHP directly which files we want to include. Otherwise PHP has to check every directory in the include path list for the desired file (when it doesn't have to). This also avoids possible problems with filename collisions. |
|
I'm still having this issue with the 1.2.3 release. I agree with dhx that it doesn't make sense to alter the include path when you already know the location of the file. Any idea when this will be fixed? I guess I'll try a nightly build... |
|
FYI I ended up rolling back to my previous install (1.1.7). The 1.3 development version does not appear to be available on SourceForge and I don't want to mess with the nightly build. Thanks. |
|
Removed assignment. dhx will not contribute to this issue in near future. |
|
Please review https://github.com/mantisbt/mantisbt/pull/150 |
|
MantisBT: master 3c238977 2014-03-23 17:07 Details Diff |
Remove set_include_path() calls Since we know the full path to the files being included, it is not necessary to change the include path. Fixes 0011549 |
Affected Issues 0011549 |
|
mod - api/soap/mantisconnect.php | Diff File | ||
mod - core/plugin_api.php | Diff File | ||
mod - plugins/MantisGraph/MantisGraph.php | Diff File | ||
mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
mod - plugins/MantisGraph/pages/bug_graph_bycategory.php | Diff File | ||
mod - plugins/MantisGraph/pages/bug_graph_bystatus.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bycategory.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bycategory_pct.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bydeveloper.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bypriority.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bypriority_mix.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bypriority_pct.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byreporter.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byresolution.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byresolution_mix.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byresolution_pct.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byseverity.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byseverity_mix.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_byseverity_pct.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bystatus.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_bystatus_pct.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_cumulative_bydate.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_imp_category.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_imp_priority.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_imp_resolution.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_imp_severity.php | Diff File | ||
mod - plugins/MantisGraph/pages/summary_graph_imp_status.php | Diff File |