• Resolved dlovrien

    (@dlovrien)


    I was getting this error in the backend in Appearance > Widgets. I tried a fix I found here that suggested changing back to the default theme (from Divi to twentytwentyfive) and now the whole site is crashed.

    Fatal error: Uncaught TypeError: array_merge(): Argument #3 must be of type array, null given in /home3/sousamus/public_html/wp-includes/widgets.php:1354 Stack trace: #0 /home3/sousamus/public_html/wp-includes/widgets.php(1354): array_merge(Array, Array, NULL, NULL, NULL, NULL, Array, Array) #1 /home3/sousamus/public_html/wp-includes/widgets.php(1299): retrieve_widgets(true) #2 /home3/sousamus/public_html/wp-includes/class-wp-hook.php(326): _wp_sidebars_changed(‘Divi’) #3 /home3/sousamus/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home3/sousamus/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home3/sousamus/public_html/wp-includes/theme.php(3504): do_action(‘after_switch_th…’, ‘Divi’, Object(WP_Theme)) #6 /home3/sousamus/public_html/wp-includes/class-wp-hook.php(324): check_theme_switched(”) #7 /home3/sousamus/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /home3/sousamus/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home3/sousamus/public_html/wp-settings.php(727): do_action(‘init’) #10 /home3/sousamus/public_html/wp-config.php(115): require_once(‘/home3/sousamus…’) #11 /home3/sousamus/public_html/wp-load.php(50): require_once(‘/home3/sousamus…’) #12 /home3/sousamus/public_html/wp-blog-header.php(13): require_once(‘/home3/sousamus…’) #13 /home3/sousamus/public_html/index.php(17): require(‘/home3/sousamus…’) #14 {main} thrown in /home3/sousamus/public_html/wp-includes/widgets.php on line 1354

    Maybe something corrupted in the db related to widgets? Is there a way to clear this out?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    I recommend getting in touch with Divi’s support about this via https://divi.help or https://www.elegantthemes.com/contact/ – as this is a commercial plugin/theme they cannot help you here with it.

    Thread Starter dlovrien

    (@dlovrien)

    Looks like problem was in PHP settings. Setting to Elegant Themes’ recommended seems to have fixed the problem. Thanks!

    • memory_limit: 256M
    • post_max_size: 128M
    • max_execution_time: 300
    • upload_max_filesize: 64M
    • max_input_time: 600
    • max_input_vars: 6000

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Uncaught TypeError in widgets.php’ is closed to new replies.