Fatal error in lib/form/elements/ratings.php
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
16.04 |
Fix Released
|
High
|
Unassigned | ||
16.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
When loading a portfolio in 16.04RC2, a white screen is encountered, and the following is written to the error log. This also occurred in 16.04RC1.
[25-Apr-2016 09:26:36] PHP Fatal error: Can't use function return value in write context in /home/darren/
[25-Apr-2016 09:26:36] PHP Stack trace:
[25-Apr-2016 09:26:36] PHP 1. {main}() /home/darren/
[25-Apr-2016 09:26:36] PHP 2. pieform() /home/darren/
[25-Apr-2016 09:26:36] PHP 3. Pieform::process() /home/darren/
[25-Apr-2016 09:26:36] PHP 4. Pieform-
[25-Apr-2016 09:26:36] PHP 5. Pieform-
This occurs on RHEL6, with PHP 5.3.3
[darren@swiftly m1604rc2]$ php -v
PHP 5.3.3 (cli) (built: Jul 3 2015 03:10:33)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Retinas
This can be resolved by removing the !empty() on lines 48, 58, and 71 - see attached patch.
Changed in mahara: | |
milestone: | none → 16.04.0 |
importance: | Undecided → High |
Changed in mahara: | |
status: | New → In Progress |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/6401