wp-favorite-posts icon indicating copy to clipboard operation
wp-favorite-posts copied to clipboard

Fatal Error with PHP8

Open piotrkunicki opened this issue 3 years ago • 0 comments

I have a problem with wpfp_link() function and PHP 8.0:

PHP Fatal error: Uncaught Error: Attempt to modify property "ID" on null in /wp-content/plugins/wp-favorite-posts/wp-favorite-posts.php:152 Stack trace: #0 /wp-content/plugins/wp-favorite-posts/wp-favorite-posts.php(80): wpfp_link() #1 /wp-content/plugins/wp-favorite-posts/wp-favorite-posts.php(57): wpfp_add_favorite() #2 /wp-includes/class-wp-hook.php(303): wp_favorite_posts() #3 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /wp-includes/plugin.php(470): WP_Hook->do_action() #5 /wp-settings.php(600): do_action() #6 /wp-config.php(96): require_once('/home/...') #7 /wp-load.php(50): require_once('/home/...') #8 /wp-blog-header.php(13): require_once('/home/...') #9 /index.php(17): require('/home/...') #10 {main} thrown in /wp-content/plugins/wp-favorite-posts/wp-favorite-posts.php on line 152

piotrkunicki avatar Jan 11 '22 11:01 piotrkunicki