View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
11602Bug reportsSurvey takingpublic2016-08-31 09:01
Reporterasshank Assigned Toollehar  
PrioritynoneSeveritypartial_block 
Status closedResolutionduplicate 
Product Version2.51.x 
Fixed in Version2.51.x 
Summary11602: event beforeSurveysStartpageRender problem
Description

There is an undocumented plugin event beforeSurveysStartpageRender that is causing a 500 on line 43 of application/controllers/SurveysController.php

The line if(!empty($event->get('result')))
gives:

mod_fcgid: stderr: PHP Fatal error: Can't use method return value in write context in application/controllers/SurveysController.php

Steps To Reproduce

just call limesurvey (show surveyslist)

Additional Information

php's empty() on objects has issues.. somewhere in the history similar problems happend (if I recall correctly)

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)20160829
I will donate to the project if issue is resolvedNo
Browser-
Database type & version260
Server OS (if known)centos 7
Webserver software & version (if known)apache 4.2.6
PHP Version5.6

Relationships

duplicate of 11592 closedollehar Fatal error with clean 160829 

Users monitoring this issue

There are no users monitoring this issue.

Activities

asshank

asshank

2016-08-30 17:38

reporter   ~40579

Oeps... Read before you type.. Sorry! Already resolved! My bad!

asshank

asshank

2016-08-30 17:40

reporter   ~40580

For further info: I'm on PHP 7.09 with this one!

DenisChenu

DenisChenu

2016-08-31 09:01

developer   ~40581

Strange PHP7 have same behavior than PHP5.4 :)

Issue History

Date Modified Username Field Change
2016-08-30 17:36 asshank New Issue
2016-08-30 17:38 asshank Note Added: 40579
2016-08-30 17:40 asshank Note Added: 40580
2016-08-31 09:00 DenisChenu Relationship added duplicate of 11592
2016-08-31 09:01 DenisChenu Note Added: 40581
2016-08-31 09:01 DenisChenu Status new => closed
2016-08-31 09:01 DenisChenu Assigned To => ollehar
2016-08-31 09:01 DenisChenu Resolution open => duplicate
2016-08-31 09:01 DenisChenu Fixed in Version => 2.51.x