Title: Uncaught TypeError
Last modified: March 9, 2023

---

# Uncaught TypeError

 *  [nathan48](https://wordpress.org/support/users/nathan48/)
 * (@nathan48)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-68/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-68%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-68/#post-16545504)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   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](https://wordpress.org/support/article/ftp-clients/),
   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](https://wordpress.org/support/users/nathan48/)
 * (@nathan48)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-68/#post-16556316)
 * 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](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-68/#post-16556331)
 * Ok, try [downloading WordPress](https://wordpress.org/download/) again, access
   your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   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/](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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-68/#post-16556331)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
