Hi,
I’m working on my first couple of posts for my new wordpress site, and I am running into the below fatal error. This fatal error is specific to a single post that I am drafting and happened as I was saving the latest version. The rest of my site and the rest of my posts are working fine.
I enabled error debugging and this is what is returned on when I try to view the post. Any help interpreting this would be helpful as I’m a nontechnical individual.
Steps I have taken thus far include increasing my PHP memory and deactivating all plugins. I don’t think is theme related if the rest of the site is fine and I have an issue with a single post but please tell me otherwise.
Here is what is at lines 3495-3501 that i think this fatl error is referring to in the formatting file:
function convert_smilies( $text ) {
global $wp_smiliessearch;
$output = ”;
if ( get_option( ‘use_smilies’ ) && ! empty( $wp_smiliessearch ) ) {
// HTML loop taken from texturize function, could possible be consolidated.
$textarr = preg_split( ‘/(<.*>)/U’, $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Capture the tags as well as in between.
$stop = count( $textarr ); // Loop stuff.
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /home4/yredujmy/public_html/wp-includes/formatting.php:3501 Stack trace: #0 /home4/yredujmy/public_html/wp-includes/class-wp-hook.php(310): convert_smilies(‘\n<h6 class=”wp-…’) #1 /home4/yredujmy/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘\n<h6 class=”wp-…’, Array) #2 /home4/yredujmy/public_html/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:heading…’) #3 /home4/yredujmy/public_html/wp-content/themes/blocksy/inc/single/content-helpers.php(221): the_content(‘Continue readin…’) #4 /home4/yredujmy/public_html/wp-content/themes/blocksy/template-parts/single.php(74): blocksy_single_content() #5 /home4/yredujmy/public_html/wp-includes/template.php(787): require(‘/home4/yredujmy…’) #6 /home4/yredujmy/public_html/wp-includes/template.php(720): load_template(‘/home4/yredujmy…’, false, Array) #7 /home4/yredujmy/public_html/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #8 /home4/yredujmy/public_html/wp-content/themes/blocksy/single.php(17): get_template_part(‘template-parts/…’) #9 /home4/yredujmy/public_html/wp-includes/template-loader.php(106): include(‘/home4/yredujmy…’) #10 /home4/yredujmy/public_html/wp-blog-header.php(19): require_once(‘/home4/yredujmy…’) #11 /home4/yredujmy/public_html/index.php(17): require(‘/home4/yredujmy…’) #12 {main} thrown in /home4/yredujmy/public_html/wp-includes/formatting.php on line 3501
- This topic was modified 7 hours, 33 minutes ago by .
- This topic was modified 7 hours, 31 minutes ago by .
- This topic was modified 7 hours, 26 minutes ago by .
- This topic was modified 6 hours, 43 minutes ago by .