• Resolved bytefight

    (@bytefight)


    Hello,

    when we try to open the customizer we get a wordpress critical error. This is the error from the log:

    PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-blocks.php:70 #0 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-blocks.php(70): array_merge(NULL, Array) #1 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-hook.php(326): RankMath\Schema\Blocks->block_categories(NULL) #2 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #3 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/block-editor.php(86): apply_filters('block_categorie...', Array, Object(WP_Block_Editor_Context)) #4 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/block-editor.php(494): get_block_categories(Object(WP_Block_Editor_Context)) #5 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-customize-widgets.php(851): get_block_editor_settings(Array, Object(WP_Block_Editor_Context)) #6 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-hook.php(324): WP_Customize_Widgets->enqueue_scripts('') #7 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-admin/customize.php(133): do_action('customize_contr...') #10 {main} thrown in /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-blocks.php on line 70

    This is the stack trace:

    #1 must be of type array, null given in /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-blocks.php:70
    #0 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-blocks.php(70): array_merge(NULL, Array)
    #1 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-hook.php(326): RankMath\Schema\Blocks->block_categories(NULL)
    #2 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
    #3 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/block-editor.php(86): apply_filters('block_categorie...', Array, Object(WP_Block_Editor_Context))
    #4 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/block-editor.php(494): get_block_categories(Object(WP_Block_Editor_Context))
    #5 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-customize-widgets.php(851): get_block_editor_settings(Array, Object(WP_Block_Editor_Context))
    #6 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-hook.php(324): WP_Customize_Widgets->enqueue_scripts('')
    #7 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #8 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /www/htdocs/w0187bc1/Entwicklung/genokom.bitfinity.ms/wp-admin/customize.php(133): do_action('customize_contr...')
    #10 {main}

    The critical error only occurs while Rank Math is activated, when deactivated we can use the Customizer as usual.

    This happens on three sites for us, each with a different server environment.

    Could you help us with this please?

    WP Version: 6.8.3
    Rank Math: 1.0.255 (Pro not installed, but i was a couple of years before)

    Thanks in advance!

    Kind regards,

    Jonas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jeremy

    (@jeremrm)

    Hello @bytefight,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    The issue seems to be caused by a corrupted schema block. If the page you’re trying to customize can also be edited through the Block Editor or Classic Editor, please open it and go to Rank Math → Schema. Remove any existing schemas, then return to the Customizer to check if the error persists.

    If everything works fine afterward, you can re-add your schemas back to the page. However, if the issue continues even after removing them, please let us know so we can investigate this further.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter bytefight

    (@bytefight)

    Hey, thanks for the quick reply! Unfortunately there isn’t any schema in the front page. And also the error occurs on every page no matter where you activate the customizer. Any other ideas?

    Thread Starter bytefight

    (@bytefight)

    Fully deactivating the Schema Module works fine, but we would like to use this functionality as well 😉

    Plugin Support Jaideep Asrani

    (@jaideeprm)

    Hello @bytefight,

    We will need to check this further on your site. Please email our support team at [email protected] so we can assist you further.

    Looking forward to helping you.

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

The topic ‘Customizer Critical Error’ is closed to new replies.