- This topic has 9 replies, 4 voices, and was last updated 3 years, 8 months ago by
Leo.
-
AuthorPosts
-
July 8, 2022 at 4:28 am #2277034
Norman
I am submitting a new topic after seeing my basic problem in another post here:
https://generatepress.com/forums/topic/php-8-compatibility/#post-2276959I’m wondering if Generate Press is compatible with PHP 8.0? I just tried to update and an error and critical site error similar to what is on this page:
https://wordpress.org/support/topic/too-few-arguments-to-function-wp_widget__construct/
I just updated yesterday to WordPress 6.0 so maybe that wasn’t actually a good move.
I quickly downgraded from 8.0 to 7.4 again, and the site came back.
Note: I do have a Plugin called Featured Posts and “perhaps” this error is because of that?
Note: I have placed the word “USER” where the user directory name goes. I’m not sure if that matters, but thought I would anyway.
Here is the error from the error log provided to me by host at LiquidWeb
So here's what error log says about that error: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/USER/public_html/wp-includes/class-wp-widget-factory.php on line 61 and at least 2 expected in /home/USER/public_html/wp-includes/class-wp-widget.php:162 Aninda (7/7/2022, 6:02:01 PM): And here's the Stack trace: #0 /home/USER/public_html/wp-includes/class-wp-widget-factory.php(61): WP_Widget->__construct() #1 /home/USER/public_html/wp-includes/widgets.php(115): WP_Widget_Factory->register('featured_posts_...') #2 /home/USER/public_html/wp-content/plugins/featured-posts-widget/featured-posts-widget.php(226): register_widget('featured_posts_...') #3 /home/USER/public_html/wp-includes/class-wp-hook.php(307): featured_posts_widget_load_widgets('') #4 /home/USER/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #5 /home/USER/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #6 /home/USER/public_html/wp-includes/widgets.php(1854): do_action('widgets_init') #7 /home/USER/public_html/wp-includes/class-wp-hook.php(307): wp_widgets_init('') #8 /home/USER/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #9 /home/USER/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #10 /home/USER/public_html/wp-settings.php(598): do_action('init') #11 /home/USER/public_html/wp-config.php(109): require_once('/home/USER/p...') #12 /home/USER/public_html/wp-load.php(50): require_once('/home/USER/p...') #13 /home/USER/public_html/wp-admin/admin-ajax.php(22): require_once('/home/USER/p...') #14 {main} thrown in /home/USER/public_html/wp-includes/class-wp-widget.php on line 162Thank you,
NormJuly 8, 2022 at 5:51 am #2277084David
StaffCustomer SupportHi there,
do you have a Related Posts widget in your widget areas ? ( Sidebar, footers or elsewhere )
July 8, 2022 at 6:00 am #2277090Norman
Hello David,
Yes, but it’s called Featured Posts in the right sidebar widget area – https://www.screencast.com/t/QTSqFtyG83N
Norm
July 8, 2022 at 6:01 am #2277091July 8, 2022 at 6:05 am #2277093David
StaffCustomer SupportThat looks like the culprit, if you look in your error stack trace you will see the plugin is named here:
/home/USER/public_html/wp-content/plugins/featured-posts-widget/featured-posts-widget.php(226)You will need to remove that plugin if you want to go to PHP 8
July 8, 2022 at 6:08 am #2277098Norman
I’m just noticing how outdated this plugin actually is. I’ve used it for many years as it does exactly what I want, but if it’s causing the issue, I will probably remove that and try again.
Thank you!
NormJuly 8, 2022 at 6:12 am #2277101David
StaffCustomer SupportYou’re welcome
July 9, 2022 at 2:14 am #2277688Scott
I use php 8.1.0 FPM/FastCGI on multiple sites with GP with no issues.
July 9, 2022 at 3:26 am #2277716Norman
Thanks. It seems my primary membership plug-in may not be ready yet.
July 9, 2022 at 11:21 am #2278088Leo
StaffCustomer SupportGlad to hear that you found the cause.
-
AuthorPosts
- You must be logged in to reply to this topic.
