WordPress is broken after PHP 7.4 to PHP 8 update – need help
-
My WordPress is hosted in IONOS and I did a PHP update today after an email from IONOS that PHP7.4 is no longer support. That went horrible. My site when down with: Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(),
I FTP in and renamed my Plugin folder and at least I can see my dashboard now. I have WordPress 6.1.1. All plugins are disabled and I can load my home page, but nothing else works when clicked. I renamed my .htaccess thinking something was messed up in there and it didn’t help. I cleared my Cache holder in wp-content. So I am stuck at what to try now. ANy IDEAS? Here is the error message that came up before I renamed the Plugin folder.
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(),
0 passed in /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected
in /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-widget.php:163 Stack trace:0 /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct()
1 /homepages/6/d97444025/htdocs/C64/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘mycategoryorder…’)
2 /homepages/6/d97444025/htdocs/C64/wp-content/plugins/my-category-order/mycategoryorder.php(473): register_widget(‘mycategoryorder…’)
3 /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-hook.php(308): mycategoryorder_widgets_init(”)
4 /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
5 /homepages/6/d97444025/htdocs/C64/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
6 /homepages/6/d97444025/htdocs/C64/wp-includes/widgets.php(1854): do_action(‘widgets_init’)
7 /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-hook.php(308): wp_widgets_init(”)
8 /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
9 /homepages/6/d97444025/htdocs/C64/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
10 /homepages/6/d97444025/htdocs/C64/wp-settings.php(617): do_action(‘init’)
11 /homepages/6/d97444025/htdocs/C64/wp-config.php(105): require_once(‘/homepages/6/d9…’)
12 /homepages/6/d97444025/htdocs/C64/wp-load.php(50): require_once(‘/homepages/6/d9…’)
13 /homepages/6/d97444025/htdocs/C64/wp-blog-header.php(13): require_once(‘/homepages/6/d9…’)
14 /homepages/6/d97444025/htdocs/C64/index.php(17): require(‘/homepages/6/d9…’)
15 {main} thrown in /homepages/6/d97444025/htdocs/C64/wp-includes/class-wp-widget.php on line 163
The blog I need help with is: (visible only to logged in users)
-
Accepted answer
SOLVED – it was an old widget that caused all of this mess.
I cleared out all of the widgets and things started working again, then I added only newer backs back to this site – I hope this helps someone else in the future. -
-
Thank you – I just can’t not believe one out of date Widget caused all of those errors. But it did. I hope this helps someone else in the future.
- The topic ‘WordPress is broken after PHP 7.4 to PHP 8 update – need help’ is closed to new replies.