mAAdhaTTah / wordpress-github-sync

A WordPress plugin to sync content with a GitHub repository (or Jekyll site)
https://wordpress.org/plugins/wp-github-sync/
GNU General Public License v3.0
613 stars 99 forks source link

Can not enable this plugin. #203

Closed LasyIsLazy closed 6 years ago

LasyIsLazy commented 6 years ago

Wordpress version: 4.9.6–zh_CN

When I enable this plugin, the panel shows:

Parse error: syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232

I also found error in error_log:

[21-Jun-2018 02:03:25] PHP Parse error:  syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232
[21-Jun-2018 02:03:26] PHP Parse error:  syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232
[21-Jun-2018 02:03:26] PHP Parse error:  syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232
[21-Jun-2018 02:03:47] PHP Parse error:  syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232
[21-Jun-2018 02:03:48] PHP Parse error:  syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232
[21-Jun-2018 02:03:48] PHP Parse error:  syntax error, unexpected T_STATIC in /data/home/qxu1098320196/htdocs/wp-content/plugins/wp-github-sync/wp-github-sync.php on line 232

It's my first time to use this plugin, it doesn't seem like working in this wordpress version.