• Resolved scott2024

    (@scott2024)


    Hi,

    I have recently updated PHP. From like 5.6 to 8.2. Naturally this has caused a few issues.

    I have managed to trace them back to the theme Divi. Which the whole website was built with years ago. Something to do with the widget module is causing a PHP Fatal error.

    [03-Jan-2024 08:27:55 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/rsta/public_html/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /home/rsta/public_html/wp-includes/class-wp-widget.php:163
    Stack trace:
    #0 /home/rsta/public_html/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct()
    #1 /home/rsta/public_html/wp-includes/widgets.php(115): WP_Widget_Factory->register()
    #2 /home/rsta/public_html/wp-content/themes/Divi/includes/widgets/widget-adsense.php(54): register_widget()
    #3 /home/rsta/public_html/wp-includes/class-wp-hook.php(324): AdsenseWidgetInit()
    #4 /home/rsta/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /home/rsta/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /home/rsta/public_html/wp-includes/widgets.php(1858): do_action()
    #7 /home/rsta/public_html/wp-includes/class-wp-hook.php(324): wp_widgets_init()
    #8 /home/rsta/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /home/rsta/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #10 /home/rsta/public_html/wp-settings.php(643): do_action()
    #11 /home/rsta/public_html/wp-config.php(59): require_once('/home/rsta/publ...')
    #12 /home/rsta/public_html/wp-load.php(50): require_once('/home/rsta/publ...')
    #13 /home/rsta/public_html/wp-blog-header.php(13): require_once('/home/rsta/publ...')
    #14 /home/rsta/public_html/index.php(17): require('/home/rsta/publ...')
    #15 {main}
      thrown in /home/rsta/public_html/wp-includes/class-wp-widget.php on line 163

    I have managed to get the site partly working by disabling the 3 files

    • widget-about.php
    • widget-ads.php
    • widget-adsense.php

    I have noticed that the menu doesnt work anymore like it used to. Also the map widget just shows code and a few of the pages seem blank. Possibly because its full of widgets. Does anyone know how to fix these issues?

    Thanks

Viewing 1 replies (of 1 total)
  • Does anyone know how to fix these issues?

    Divi is a commercial theme/plugin, so there’s no way for us to install it and help you troubleshoot this.

    Please get in touch with the folks you purchased the theme from for help. They built and sold the theme, and they should be in the best position to help you use the product you purchased from them.

    Divi theme support: https://www.elegantthemes.com/contact/

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Divi Theme – Fatal Widgets crash’ is closed to new replies.