TylerBarnes / using-gatsby-source-wordpress-experimental

A starter for the upcoming gatsby-source-wordpress@v4
https://www.npmjs.com/package/gatsby-source-wordpress-experimental
MIT License
86 stars 29 forks source link

WP Gatsby Plugin Fatal Error / Ensure earliest supported PHP version in WPGQL is supported in WPGatsby #3

Closed pjsachdev closed 4 years ago

pjsachdev commented 4 years ago

Great work so far on the new gatsby source wordpress plugin.

I've encountered an issue with the WP Gatsby plugin. When I install it on a WordPress site, I get the following fatal error.

Parse error: syntax error, unexpected ')' in /app/public/wp-content/plugins/wp-gatsby/src/ActionMonitor/ActionMonitor.php on line 62

Removing the trailing comma on line 61 of ActionMonitor.php seems to fix the issue.

TylerBarnes commented 4 years ago

Yep, looks like I'm writing code that only works in PHP 7.x I'll have to downgrade my local PHP version and make sure it's compatible with whichever version WPGQL is compatible with.

Thanks for opening this issue!

TylerBarnes commented 4 years ago

This was fixed a couple months ago :p closing now :)