• joinso

    (@joinso)


    After WP upgrade to 6.1 the site is down and I get this error on logs:

    [02-Nov-2022 18:20:14 UTC] PHP Fatal error:  Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/wp-includes/blocks.php:20
    Stack trace:
    #0 /var/www/html/wp-includes/blocks.php(20): strpos()
    #1 /var/www/html/wp-includes/blocks.php(84): remove_block_asset_path_prefix()
    #2 /var/www/html/wp-includes/blocks.php(330): register_block_script_handle()
    #3 /var/www/html/wp-includes/blocks/navigation.php(651): register_block_type_from_metadata()
    #4 [internal function]: register_block_core_navigation()
    #5 /var/www/html/wp-includes/class-wp-hook.php(307): call_user_func_array()
    #6 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #7 /var/www/html/wp-includes/plugin.php(476): WP_Hook->do_action()
    #8 /var/www/html/wp-settings.php(598): do_action()
    #9 /var/www/html/wp-config.php(103): require_once('...')
    #10 /var/www/html/wp-load.php(50): require_once('...')
    #11 /var/www/html/wp-blog-header.php(13): require_once('...')
    #12 /var/www/html/index.php(17): require('...')
    #13 {main}
      thrown in /var/www/html/wp-includes/blocks.php on line 20

    Any idea in how to solve it?

    Regars,
    Jordi
    JOINSO

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter joinso

    (@joinso)

    More info: PHP 8.1

    barnez

    (@pidengmor)

    Rename the /plugins/ directory to something like /plugins-hold/. If you regain access, rename the directory to /plugins/, which should allow you to see all the plugins in the WordPress dashboard, except they will be disabled. Enable one by one until you find the conflicting plugin.

    If disabling the plugins doesn’t help, rename the active theme directory, which will activate a WordPress Twenty* theme and help you to rule out a theme conflict:

    /themes/
    /{your-active-theme}-hold/

    mjjatech

    (@mjjatech)

    I’m having this exact same error even after disabling both plugins and the active theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP 6.1: Fatal Error on wp-includes/blocks.php’ is closed to new replies.