View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016187 | mantisbt | administration | public | 2013-07-17 22:46 | 2021-06-20 09:16 |
Reporter | peterbruin | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.16 | ||||
Target Version | 1.2.16 | Fixed in Version | 1.2.16 | ||
Summary | 0016187: Application error on fresh install | ||||
Description | When working with a fresh install without any projects defined application errors keep on being generated. This is caused by the fact that empty arrays are being combined and as a result a object that is not an array is being returned. All though this is a minor issue and goes away by creating one project it is not good for confidence when starting a fresh install. | ||||
Steps To Reproduce |
| ||||
Additional Information | Patch to fix it:
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
I was not able to reproduce this issue. Can you confirm that you use a PHP version < 5.4 ? |
|
I am using Ubuntu 12.04.2 LTS, this is the php --version output PHP 5.3.10-1ubuntu3.7 with Suhosin-Patch (cli) (built: Jul 15 2013 18:05:44) |
|
As the recommended version for PHP is 5.1 or 5.2 this issue should still be fixed as not many people will be running with PHP 5.4 See: http://www.mantisbt.org/docs/master-1.2.x/en/administration_guide.html#ADMIN.INSTALL.REQUIREMENTS |
|
That's why I didn't set status to "resolved" and resolution to "won't fix" |
|
I'm changing Product Version, because the array_combine() call was introduced in (not-yet-released) changeset cc7703ac, fixing 0009876. @peterbruin Please test proposed fix at https://github.com/dregad/mantisbt/tree/fix-16187 |
|
I have tested your fix and can confirm that it works. Thanks. |
|
MantisBT: master-1.2.x f9a07a0d 2013-07-22 21:56 Details Diff |
Fix 0016187: error caused by array_combine() with PHP<5.4 array_combine() function behavior was changed in PHP 5.4 [1]; in earlier versions it would issue a warning and return false when working with empty arrays, which then causes Mantis to trigger an application error. This is a regression introduced by cc7703acc8d05f253d52a152a7d8cd0c1c43815d [1] http://php.net/function.array-combine.php |
Affected Issues 0016187 |
|
mod - core/user_api.php | Diff File | ||
MantisBT: master 79baa9aa 2013-07-22 21:56 Details Diff |
Fix 0016187: error caused by array_combine() with PHP<5.4 array_combine() function behavior was changed in PHP 5.4 [1]; in earlier versions it would issue a warning and return false when working with empty arrays, which then causes Mantis to trigger an application error. This is a regression introduced by cc7703acc8d05f253d52a152a7d8cd0c1c43815d [1] http://php.net/function.array-combine.php |
Affected Issues 0016187 |
|
mod - core/user_api.php | Diff File | ||
MantisBT: master dfdcd29d 2021-06-20 05:02 Details Diff |
Remove code needed only for PHP < 5.4 This test was added in issue 0016187 and is no longer necessary since we require PHP 7.0 or later. Fixes 0028830 |
Affected Issues 0016187, 0028830 |
|
mod - core/user_api.php | Diff File |