Not PHP 8 compatible
-
PHP 8.0 and above
Fatal error: Uncaught Error: Call to undefined function create_function() in /wp-content/plugins/royal-recent-posts-widget-by-category/royal-recent-posts-widget-by-category.php:253 Stack trace: #0 /wp-admin/includes/plugin.php(2314): include_once() #1 /wp-admin/plugins.php(192): plugin_sandbox_scrape(‘royal-recent-po…’) #2 {main} thrown in /wp-content/plugins/royal-recent-posts-widget-by-category/royal-recent-posts-widget-by-category.php on line 253
If you fix this by changed the widget_init:
function register_royal_recent_posts_widget_by_category() { return register_widget("RRPWbC"); } add_action( 'widgets_init', 'register_royal_recent_posts_widget_by_category');
Then the next error is:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed
Additional sidenote: all the $instance variables are not checked if the exists, when you didn’t setup the widget before a lot of notices/warnings will popup with debug mode on.
- The topic ‘Not PHP 8 compatible’ is closed to new replies.