• So my site is on 6.1.1 and the customizer page can not be opened.
    I tried to deactivate all plugins and changed to twenty twenty three but unfortunately that did not help either.

    For some reason this only occurs on php 8 and when I change the php version to 7.4 it works just fine.

    Bellow is the error that I found in the error log

    Uncaught TypeError: array_merge(): Argument #3 must be of type array, bool given in ../httpdocs/pub/wp-includes/class-wp-customize-widgets.php:380
     
    Stack trace:
    
    #0 ../httpdocs/pub/wp-includes/class-wp-customize-widgets.php(380): 
    array_merge()
    
    #1 ../httpdocs/pub/wp-includes/class-wp-customize-widgets.php(355): 
    WP_Customize_Widgets->customize_register()
    
    #2 ../httpdocs/pub/wp-includes/class-wp-hook.php(308): 
    WP_Customize_Widgets->schedule_customize_register()
    
    #3 ../httpdocs/pub/wp-includes/class-wp-hook.php(332): 
    WP_Hook->apply_filters()
    
    #4 ../httpdocs/pub/wp-includes/plugin.php(517): 
    WP_Hook->do_action()
    
    #5 ../httpdocs/pub/wp-includes/class-wp-customize-manager.php(934): 
    do_action()
    
    #6 ../httpdocs/pub/wp-includes/class-wp-hook.php(308): 
    WP_Cu...', referer: https://www.bureaublaauw.com/wp-admin/options-general.php

    So I tried dumping the function wp_get_sidebars_widgets() and it returns a boolean, which explains the error from array_merge. But it says on the developer resources that the functions should be returning array.

    For now I have updated the code on class-wp-customize-widgets.php:380 so that the customizer page is accessible but I am afraid if the wordpress is updated that the problems will occurs again. How should I fix this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Which PHP version 8 is it exactly? 8.0 or 8.1? With 8.1 there are definitely still some problems with WordPress, so 8.0 would be recommended at the moment.

    Furthermore: the Customizer is deactivated on TwentyTwentyThree. If you want to test something like that, use a classic theme like TwentyTwentyOne.

    Thread Starter rickystefano

    (@rickystefano)

    The site runs on php 8.0.26.

    Yes you are right, I tried some other themes and Twenty Eight and Seventeen as well just to be sure but unfortunately the same error occurs.

    Strange. I also have a system here that can do it all. The error message refers to a place where the sidebars are loaded. Your WordPress seems to get a wrong value there. This should not happen if all plugins are deactivated and the theme is also changed. Have you checked wp-config.php to see if there are any strange entries? I can’t think of anything else at the moment.

    Thread Starter rickystefano

    (@rickystefano)

    Nope, nothing strange in the wp-config. The site has been around for a while but we try to keep it up to date whenever a new version of wp comes out.

    I made the template that the site is using right now recently and that is how I found out about this problem. I thought that was maybe the problem, but my other themes that has almost the same code base has no problem at all. Neither on my development environment.

    I am not sure for how long the problem has been there. Maybe since when the wp itself is first installed on the server. Also thank you for helping!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizer page is broken’ is closed to new replies.