We have some sites running an older version of PHP (5.2.17) and we get a white screen of death when trying to access admin/structure/services/list/staff_services/resources. As soon as the 'Edit Resources' button is clicked it results in a WSOD.
This is related to the shorthand if-else operator, which is only supported from PHP 5.3 onwards. Seehttp://us2.php.net/manual/en/language.operators.comparison.php#language..... The minimum requirement for Drupal 7 is PHP version 5.2.5.
Patch attached.
Files:
Comment | File | Size | Author |
---|---|---|---|
#1 | services-shorthand-if-else-707484-2.patch | 745 bytes | littledynamo |
Comments
Comment#1
littledynamo commentedComment#2
littledynamo commentedComment#3
cdykstra commentedWorks for me (Drupal 7 on PHP 5.2) after updating Services today. Thanks a bunch!
Related issue: https://drupal.org/node/2199841
Comment#4
marcingy commentedhttps://drupal.org/node/2198005
来自 https://www.drupal.org/node/2195489