• https://soulicit.site11.com

    You see all those errors. All I’ve done is the basic WP set-up and transfer posts (only a majority of them made it) from my Tumblr (.xml file), and install a theme… but I’ve had the errors since I had any posts… the one at the top of the page showed up once I changed the PHP debug setting in wp-config.php to ‘true’.

    Any ideas on how I could remedy this? Where to start? I’m not too fluent in PHP either by any means, I mean I know some coding but I did most of that stuff years ago so it’s mostly HTML, CSS, C++… a little PHP and javascript etc. here and there but not enough for sure. Any tips would be greatly appreciated, thank you very much in advance.

    (I still need to go over and edit all my previous posts obviously, don’t give me crap about that, I just want these “comment_count” whatever friggen errors out of there and the one up top, all of them gone, fixed, resolved, thank you.)

    Update: “the one up top” disappeared upon deactivating the “Advanced Excerpt” plugin, so don’t worry about it, you won’t see it, it’s not there, currently a non-issue, thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bl1nktank

    (@bl1nktank)

    do {
    		foreach( (array) current($wp_filter[$tag]) as $the_ )
    			if ( !is_null($the_['function']) ){
    				$args[1] = $value;
    				$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));
    			}
    
    	} while ( next($wp_filter[$tag]) !== false );

    The 6th line of this excerpt (beginning with “call_user_func_array”) is the line 170 referenced in the error message.

    Thread Starter bl1nktank

    (@bl1nktank)

    In functions.php:

    <?php
    add_filter('get_comments_number', 'comment_count', 0);
    function Rbox_comment_count( $count ) {
    	if ( ! is_admin() ) {
    	global $id;
    	$comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id));
    	return count($comments_by_type['comment']);
    } else {
    return $count;
    }
    }
    ?>

    Post subheading (where the error comes up):
    <?php Rbox_posted_on(); ?> <?php _e( 'in', 'Rbox' ); ?> <?php the_category(', '); ?> | <?php comments_popup_link( __( 'Leave a comment', 'Rbox' ), __( '1 Comment', 'Rbox' ), __( '% Comments', 'Rbox' ) ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP errors’ is closed to new replies.