Upgrade to PHP 8.1 results in WP Critical Error

  • Unknown's avatar

    Debug shows error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in…….

    (–long text —)

    ….. #15 {main} thrown in /home/www/domain/aitoavioliitto.fi/html/wp-includes/class-wp-widget.php on line 163

    All plugins are updated to latest level. Error persist plugins disabled, too.

    The blog I need help with is: (visible only to logged in users)

  • Hello there. It looks like the website is hosted with another company and so it’s not something we can investigate here I’m afraid. If the site was on our services at WordPress.com we could take a look.

    I couldn’t establish from your domain settings who your hosting company is, but it’s worth reaching out to them to check.

  • Unknown's avatar

    Thanks for looking at the problem.

    Sorry, the website hosted by me on a virtual server. :)

    I guess there is some problem with widgets. That idea was given by the error message about WP_Widget and what is told about PHP 8.1 compatibility problems here.

    No idea how to fix, which widget and who to contact for fix. So far staying at PHP 7.x until fixes are available.

  • Thanks for the update.

    I’m afraid we can only help with sites hosted at WordPress.com via this forum here. So, it may be worth contacting the WordPress.org forums for some advice.

    It sounds like you might need to remove some widgets to test what is causing the issue, but it’s hard to know without it being on our hosting platform.

    Here is a link to the WordPress.org forums – https://wordpress.org/support/forums/
    And also, here is a guide which explains the differences between WordPress.com and .org – https://wordpress.com/support/com-vs-org/

  • The topic ‘Upgrade to PHP 8.1 results in WP Critical Error’ is closed to new replies.