Title: Uncaught TypeError: bool given in
Last modified: July 14, 2024

---

# Uncaught TypeError: bool given in

 *  Resolved [nickkirlew](https://wordpress.org/support/users/nickkirlew/)
 * (@nickkirlew)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-bool-given-in/)
 * Hello Folks,
 * A new Azure Bitnami build July 2024. If I go to a category link (only one produves
   the error – community alerts) or If I use the search block in Menu (look for 
   a word not on the site) I get the below error.
 * I have tried:
 * Drop all Plugins
 * Swap theme
 * If I swap out of the Twenty Twenty series the error is gone, but of course I 
   would like to stick with Twenty Twenty Four, thanks in advance.
 * WordPress 6.5.5 running Twenty Twenty-Four theme.
 * root@vmPlanWebSite:/home/nick# /opt/bitnami/php/bin/php -ver
   PHP 8.2.20 (cli)(
   built: Jun 6 2024 16:07:19) (NTS)Copyright (c) The PHP GroupZend Engine v4.2.20,
   Copyright (c) Zend Technologieswith Zend OPcache v8.2.20, Copyright (c), by Zend
   Technologies
 * [proxy_fcgi:error] [pid 17045:tid 140063203468992] [client 101.173.24.155:53571]
   AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: count():
   Argument #1 ($value) must be of type Countable|array, bool given in /opt/bitnami/
   wordpress/wp-includes/formatting.php:3507\nStack trace:\n#0 /opt/bitnami/wordpress/
   wp-includes/class-wp-hook.php(324): convert_smilies()\n#1 /opt/bitnami/wordpress/
   wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#2 /opt/bitnami/wordpress/
   wp-includes/formatting.php(3992): apply_filters()\n#3 /opt/bitnami/wordpress/
   wp-includes/class-wp-hook.php(324): wp_trim_excerpt()\n#4 /opt/bitnami/wordpress/
   wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#5 /opt/bitnami/wordpress/
   wp-includes/post-template.php(434): apply_filters()\n#6 /opt/bitnami/wordpress/
   wp-includes/blocks/post-excerpt.php(28): get_the_excerpt()\n#7 /opt/bitnami/wordpress/
   wp-includes/class-wp-block.php(463): render_block_core_post_excerpt()\n#8 /opt/
   bitnami/wordpress/wp-includes/class-wp-block.php(443): WP_Block->render()\n#9/
   opt/bitnami/wordpress/wp-includes/class-wp-block.php(443): WP_Block->render()\
   n#10 /…’, referer: [https://planinc.org.au/recentposts/](https://planinc.org.au/recentposts/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-bool-given-in%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-bool-given-in/#post-17889149)
 * Hi [@nickkirlew](https://wordpress.org/support/users/nickkirlew/) given that 
   is happening only on a single category page – it makes me wonder if it is one
   of the _posts in the category_ that contains content that is causing the error.
 * From WP-Admin > Posts – are you able to open (in the front end) each of the posts
   in the category – and see if any of them fail with the fatal error?
 *  Thread Starter [nickkirlew](https://wordpress.org/support/users/nickkirlew/)
 * (@nickkirlew)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-bool-given-in/#post-17891483)
 * Hello [@jordesign](https://wordpress.org/support/users/jordesign/),
 * Thanks for the update, I believe you have the answer, there were 55 articles 
   and it took me 15 to find a “broken” article.
 * Once I took that article out of the category, no more issue. I will next test
   the search.
 * Regards
 * Nick

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

The topic ‘Uncaught TypeError: bool given in’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwentyfour/1.5/screenshot.
   png)
 * Twenty Twenty-Four
 * [Support Threads](https://wordpress.org/support/theme/twentytwentyfour/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwentyfour/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwentyfour/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwentyfour/reviews/)

## Tags

 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)
 * [uncaught](https://wordpress.org/support/topic-tag/uncaught/)

 * 2 replies
 * 2 participants
 * Last reply from: [nickkirlew](https://wordpress.org/support/users/nickkirlew/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/uncaught-typeerror-bool-given-in/#post-17891483)
 * Status: resolved