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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ashutoshsngh’s picture

Facing same issue any solution.

mikeytown2’s picture

Title: PHP 5.4.29 Fatal error: Function name must be a string » Parse error: syntax error, unexpected end of file
Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Category: Support request » Bug report

If the last line of the PHP code is a comment // then you'll get a fatal error. I'll get a patch up tomorrow.

mikeytown2’s picture

Status: Active » Needs review
FileSize
5.71 KB
mikeytown2’s picture

Patches for the 7.x-2.x branch and the 8.x-1.x branch as well.

Liam Morland’s picture

Liam Morland’s picture

Status: Needs review » Fixed

This was likely fixed by #2274543: [7.x-1.x] Remove usage of deprecated create_function(). Please try the latest version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.