Fatal error: Uncaught TypeError: count():
-
I am using the gallery dynamically with tags from Medla Library Categories plugin with a shortcode, e.g.
[gallery category="image-forsale" order="DESC" orderby="post_date"]
It was working fine, but I’ve noticed some of the galleries now give this error, usually the larger galleries?
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /wp-includes/formatting.php:3501 Stack trace: #0 /wp-includes/class-wp-hook.php(310): convert_smilies() #1 /wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /wp-includes/blocks/post-content.php(54): apply_filters() #3 /wp-includes/class-wp-block.php(258): render_block_core_post_content() #4 /wp-includes/class-wp-block.php(244): WP_Block->render() #5 /wp-includes/blocks.php(1133): WP_Block->render() #6 /wp-includes/blocks.php(1171): render_block() #7 /wp-includes/block-template.php(231): do_blocks() #8 /wp-includes/template-canvas.php(12): get_the_block_template_html() #9 /wp-includes/template-loader.php(106): include(‘…’) #10 /wp-blog-header.php(19): require_once(‘…’) #11 /index.php(17): require(‘…’) #12 {main} thrown in /wp-includes/formatting.php on line 3501
(edited out my /var/www etc server paths for security)
If I disable all plugins, page shows fine, no gallery though. If I just disable Meow Gallery, it shows, but annoyingly not in columns, but shows the gallery shortcode is working. Disable all but those two plugins, still errors. Changing the theme to a non block theme like Twenty Twenty Two standard still errors. So I think this is caused by Meow Gallery?
Using PHP 8.0 on nginx, everything else seems fine.The page I need help with: [log in to see the link]
- The topic ‘Fatal error: Uncaught TypeError: count():’ is closed to new replies.