Support » Plugin: WP Favorite Posts » phpv7.1 causes Fatal error: Uncaught Error: [] operator not supported for string

  • I am running php v7.1 and get: “Fatal error: Uncaught Error: [] operator not supported for strings” when clicking the add to favorites link within a post. I downgraded to php v7.0 and the error goes away.

Viewing 1 replies (of 1 total)
  • The error is due to depricated php array syntax. Find ‘[]’ in your wp-favorites-post.php file and throw this one line above it:

    $wpfp_favorites = array();

    Should be line 147 if you’re using the current wp-favorites-post from github as this version doesn’t receive updates any more.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.