Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using PHP 5.4.24 works fine, but as soon as I switched the version to PHP 5.4.29, I got the following error for one of my views:
Parse error: syntax error, unexpected end of file in /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc(202) : runtime-created function on line 17
Fatal error: Function name must be a string in /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc on line 219
Comment | File | Size | Author |
---|---|---|---|
#4 | views_php-2319323-3-fix-parse-error-8.x-1.x.patch | 6.01 KB | mikeytown2 |
#4 | views_php-2319323-3-fix-parse-error-7.x-2.x.patch | 6.18 KB | mikeytown2 |
#3 | views_php-2319323-3-fix-parse-error.patch | 5.71 KB | mikeytown2 |
Comments
Comment #1
ashutoshsngh CreditAttribution: ashutoshsngh commentedFacing same issue any solution.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedIf the last line of the PHP code is a comment
//
then you'll get a fatal error. I'll get a patch up tomorrow.Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedComment #4
mikeytown2 CreditAttribution: mikeytown2 commentedPatches for the 7.x-2.x branch and the 8.x-1.x branch as well.
Comment #5
Liam MorlandThis fix should be included in #2274543: [7.x-1.x] Remove usage of deprecated create_function().
Comment #6
Liam MorlandThis was likely fixed by #2274543: [7.x-1.x] Remove usage of deprecated create_function(). Please try the latest version.