Viewing 6 replies - 1 through 6 (of 6 total)
  • Same here, white-screened my sites:

    Parse error: syntax error, unexpected ‘[‘ in /hsphere/local/home/pamperd/fandommarketing.com/wp-content/plugins/jquery-pin-it-button-for-images/includes/admin/class-jpibfi-admin.php on line 86

    Same for me. Had to manually disable the plugin.

    Just coming here to confirm this bug. You’ve got some JavaScript in your PHP on line 86 it seems.

    $ head -86 includes/admin/class-jpibfi-admin.php | tail -1
    $post_types = ['post', 'page'];

    Updated to this:
    $post_types = array("post", "page");

    Now it’s working out well!

    Thanks @wpemanthony for the fix! =)

    Plugin Author mrsztuczkens

    (@mrsztuczkens)

    I released a new version that should fix the issue. That syntax mentioned above works properly in newer versions of PHP but (obviously) doesn’t in older ones. Sorry about that.

    Thanks. It’s strange, I’m running a site on PHP 5.4 which I believe supports the new array syntax you used, but it gave an error, so it confused me…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘syntax error’ is closed to new replies.