• Hey, my website shows following error. What can I do?

    Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/blocks.php:20 Stack trace: #0 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/blocks.php(20): strpos(Array, ‘file:’) #1 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/blocks.php(84): remove_block_asset_path_prefix(Array) #2 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/blocks.php(330): register_block_script_handle(Array, ‘viewScript’) #3 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/blocks/navigation.php(651): register_block_type_from_metadata(‘/homepages/19/d…’, Array) #4 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/class-wp-hook.php(307): register_block_core_navigation(”) #5 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #6 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #7 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-settings.php(598): do_action(‘init’) #8 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-config.php(82): require_once(‘/homepages/19/d…’) #9 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-load.php(50): require_once(‘/homepages/19/d…’) #10 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-admin/admin.php(34): require_once(‘/homepages/19/d…’) #11 /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-admin/index.php(10): require_once(‘/homepages/19/d…’) #12 {main} thrown in /homepages/19/d536731653/htdocs/clickandbuilds/GrabmalNaturstein/wp-includes/blocks.php on line 20

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter nathan48

    (@nathan48)

    Hey James,

    thank you very much for this quick answer! Unfortunately both solutions didn’t work, is there anything else I can try?

    Best regards,
    Nathan

    Moderator James Huff

    (@macmanx)

    Ok, try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    If you’d like to manually make a backup of your site first, please follow the steps at https://wordpress.org/support/article/wordpress-backups/

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

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

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