• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / WordPress is broken after PHP 7.4 to PHP 8 update – need help

WordPress is broken after PHP 7.4 to PHP 8 update – need help

  • Unknown's avatar
    steverd · Member · Feb 28, 2023 at 6:43 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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)

  • Unknown's avatar
    Accepted answer
    steverd · Member · Feb 28, 2023 at 9:19 pm
    • Copy link Copy link

    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.

  • Unknown's avatar
    aleone89 · Staff · Mar 3, 2023 at 3:00 pm
    • Copy link Copy link

    Hey there!

    Glad to see you figured that out!

  • Unknown's avatar
    steverd · Member · Mar 3, 2023 at 5:43 pm
    • Copy link Copy link

    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.

Tags

  • .org
  • account
  • design

About this topic

  • In: Support
  • 2 participants
  • 3 replies
  • Last activity 3 years
  • Latest reply from steverd

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions