Problem/Motivation
This module gives white screen of death during installation. The reason is - we are not using variables in empty() in some places. From empty() documentation:
Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.
Places where we are not using variables inside empty():
- if (!empty($field_handler->element_classes())) {}
- if (!empty($field_handler->element_wrapper_classes())) {}
Proposed resolution
Use variable instead of direct value from function.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comments
Comment #2
subhojit777Can you tell me more about the error. Can you please check the logs.
Comment #3
hassan2 commentedPHP Fatal error: Can't use method return value in write context in /Applications/MAMP/htdocs/xxxxx/sites/all/modules/listjs/listjs.module on line 72
Comment #4
subhojit777You are using old PHP version, see http://php.net/manual/en/function.empty.php. Is it possible that you upgrade your PHP version?
Comment #5
hassan2 commentedWhat is the minimum php version then?
Comment #6
subhojit777Please use PHP 5.5 or higher. I will add support for lower PHP versions soon.
Comment #7
subhojit777Comment #9
subhojit777