PHP warning

count(): Parameter must be an array or an object that implements Countable

/home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-includes/post-template.php(284)

272             ),
273             __( '(more…)' )
274         );
275     }
276 
277     $output = '';
278     $has_teaser = false;
279 
280     // If post password required and it doesn't match the cookie.
281     if ( post_password_required( $post ) )
282         return get_the_password_form( $post );
283 
284     if ( $page > count( $pages ) ) // if the requested page doesn't exist
285         $page = count( $pages ); // give them the highest numbered page that DOES exist
286 
287     $content = $pages[$page - 1];
288     if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
289         $content = explode( $matches[0], $content, 2 );
290         if ( ! empty( $matches[1] ) && ! empty( $more_link_text ) )
291             $more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) );
292 
293         $has_teaser = true;
294     } else {
295         $content = array( $content );
296     }

Stack Trace

#0
+
 /home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-includes/formatting.php(3314): get_the_content("")
3309  * @return string The excerpt.
3310  */
3311 function wp_trim_excerpt( $text = '' ) {
3312     $raw_excerpt = $text;
3313     if ( '' == $text ) {
3314         $text = get_the_content('');
3315 
3316         $text = strip_shortcodes( $text );
3317         $text = excerpt_remove_blocks( $text );
3318 
3319         /** This filter is documented in wp-includes/post-template.php */
#1
+
 /home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-includes/class-wp-hook.php(286): wp_trim_excerpt("")
281 
282                 // Avoid the array_slice if possible.
283                 if ( $the_['accepted_args'] == 0 ) {
284                     $value = call_user_func_array( $the_['function'], array() );
285                 } elseif ( $the_['accepted_args'] >= $num_args ) {
286                     $value = call_user_func_array( $the_['function'], $args );
287                 } else {
288                     $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
289                 }
290             }
291         } while ( false !== next( $this->iterations[ $nesting_level ] ) );
#2
+
 /home/perfautosoundmob1/mobile.performance-auto-sound-local.com/wp-includes/plugin.php(203): WP_Hook->apply_filters("", array(""))
198         $args = func_get_args();
199 
200     // don't pass the tag name to WP_Hook
201     array_shift( $args );
202 
203     $filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
204 
205     array_pop( $wp_current_filter );
206 
207     return $filtered;
208 }
2020-03-28 14:00:37 Apache Yii Framework/1.1.13