• Resolved KZeni

    (@kzeni)


    
    Parse error: syntax error, unexpected ')' in /wp-content/plugins/event-tickets/src/Tribe/Assets.php on line 316
    

    is the error I’m currently getting after updating to 5.1.2 (released around an hour ago.) It’s happening on multiple sites.

    I’m using PHP 7.2, currently.

    It appears all that needs to be done to src/Tribe/Assets.php is the removal of an unnecessary comma so that:

    
    		tribe_assets(
    			$tickets_main,
    			$settings_assets,
    			'admin_enqueue_scripts',
    			[
    				'groups'       => 'event-tickets-admin-settings',
    				'conditionals' => [ $this, 'should_enqueue_admin_settings_assets' ],
    			],
    		);
    

    becomes

    
    		tribe_assets(
    			$tickets_main,
    			$settings_assets,
    			'admin_enqueue_scripts',
    			[
    				'groups'       => 'event-tickets-admin-settings',
    				'conditionals' => [ $this, 'should_enqueue_admin_settings_assets' ],
    			]
    		);
    

    (note the removal of the comma after the array.)

    An odd error for sure, but one that has a straightforward fix that I don’t see any issue in including in a future release.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal PHP error with 5.1.2 (Might be PHP version specific)’ is closed to new replies.