Skip to:
Content
Pages
Categories
Search
Top
Bottom

Warning: Undefined array key “forum_count”


  • crugman
    Participant

    @crugman

    Hello,

    I have just installed the latest version of bbPress, but on the forums page, I am seeing the following errors. The ‘Registered Users’ and ‘Forums’ part seems fine but the rest are not.
    Screenshot

    Here is the code from that section of the file:

    <dt><?php esc_html_e( 'Forums', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['forum_count'] ); ?></strong>
    	</dd>
    
    	<dt><?php esc_html_e( 'Topics', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['topic_count'] ); ?></strong>
    	</dd>
    
    	<dt><?php esc_html_e( 'Replies', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['reply_count'] ); ?></strong>
    	</dd>
    
    	<dt><?php esc_html_e( 'Topic Tags', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong>
    	</dd>
    
Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    I cannot replicate this on my test site – I presume you have this as the statistics widget?

    if so it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar