404 on author page

Sometimes, you can get a 404 page when you try to access a user’s profile page. This might only happen if the user hasn’t posted any topics.

If so, there’s a good chance this is an issue with iThemes Security. To fix it, go to Security > Settings > WordPress Tweaks and uncheck the option to ‘Disable extra user archives’.

Clear your cache and maybe your permalinks too.

Users can’t view topics

If you would like to allow all users to view topics, whether they are logged in or not, you need to ensure that the ‘Permitted viewer roles’ field is empty.

In your dashboard, go to Discussion Board > Settings > User tab and deselect any items in the’Permitted viewer roles’ field. Click Save.

For more information, see the User tab settings article.

Can’t reply to topics

There might be several reasons for this. When viewing a topic, the comment fields aren’t visible so it’s not possible to respond to the topic.

Possibilities include:

  • Your theme template doesn’t include comments. Try switching to a standard theme like Twenty Sixteen temporarily.
  • You have comments enabled. Go to Settings > Discussion to enable.
  • You have incorrect roles set for viewer / poster. Go to Discussion Board > Settings > User to ensure that users have the capability to view and post.

User cannot upload an image

If a user cannot upload an image to a topic or reply, make sure that the role of your forum members has permissions to upload images. Roles and capabilities can be managed using a plugin or be done in code.

Here is a snippet to add upload capabilities to the “contributor” role.

// Allow Contributors to Upload Media.
if ( current_user_can('contributor' ) && ! current_user_can( 'upload_files' ) ) {
    add_action( 'admin_init', 'allow_contributor_uploads' );
}

function allow_contributor_uploads() {
    $contributor = get_role( 'contributor' );
    $contributor->add_cap( 'upload_files' );
}