David Shanske on "[Plugin: Indieweb Post Kinds] Parse error"

ساخت وبلاگ

johnjohnston
Member
Posted 13 hours ago #

Hi,
I just updated the plugin and all the pages in my blog went blank.
PHP Version 5.3.19

I tued on WP_DEBUG and got this:
Parse error: syntax error, unexpected '[' in /Customer Web Sites/johnjohnston/public_html/blog/wp-content/plugins/indieweb-post-kinds/includes/Mf2/Parser.php on line 356

deleted the plugin via ftp and the site came back.

Cheers

John

https://wordpress.org/plugins/indieweb-post-kinds/

David Shanske
Member
Plugin Author

Posted 13 hours ago #

I updated the Parser, which is a third-party library. But I don't get this error on any of my sites. Will investigate tonight and address.

David Shanske
Member
Plugin Author

Posted 13 hours ago #

Found the problem, the latest changes to the Parser are using short array notation that only came in in 5.4.

Will try to pursue upstream to get to minimum 5.3 as advertised and manually address tonight.

David Shanske
Member
Plugin Author

Posted 13 minutes ago #

Manually removed the code in question, opened an issue in the php-mf2 parser library, pushed Version 2.3.6 which should be PHP 5.3 compatible.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 188 تاريخ : چهارشنبه 29 ارديبهشت 1395 ساعت: 10:22