Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Kabitaprocab

    (@kabitaprocab)

    The problem seems to be with the ‘hide login area’ feature of iThemes Security. https://prntscr.com/990h9v

    When I turned off this feature, the bbPress worked good. I have recorded the problem in the video. https://screencast.com/t/fbJkY8tAqIo

    @kabitaprocab

    Sounds like a plugin conflict.
    Are there any errors in the webserver error_log ?

    The relevant post_new.php code is:

    if ( ! isset( $_GET['post_type'] ) ) {
    	$post_type = 'post';
    } elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) ) {
    	$post_type = $_GET['post_type'];
    } else {
    	wp_die( __('Invalid post type') );
    }

    Looks like the (custom) ‘forum’ post type is not registered for the current user …

    dwinden

    @kabitaprocab

    If you are NOT using nginx webserver you could try and comment the following line in the better-wp-security/core/modules/hide-backend/class-itsec-hide-backend.php file like this:

    //add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ), 11 );

    dwinden

    Thread Starter Kabitaprocab

    (@kabitaprocab)

    @dwinden thanks for the reply.
    I did not like idea of editing the core files of the plugin… For now, I am I made it work by turning of a feature of itheme security.

    Thread Starter Kabitaprocab

    (@kabitaprocab)

    I found that it was WPML plugin that was problem. bbPress and WPML are not compatible with each other. And to solve this we need to install a bridge. https://github.com/dmsherazi/bbPress-Multilingual

    @kabitaprocab

    Ok, thank you for sharing that info.
    So I guess the issue as described in this topic is solved.
    If so please mark this topic as ‘resolved’.

    dwinden

    @kabitaprocab and @dwinden,

    The latest version of WPML (3.2.7+) and bbPress are compatible. The problem you are facing is because of iTheme Security. You have shown it perfectly in the video https://screencast.com/t/fbJkY8tAqIo.

    solution: add this to functions.php

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    add_action( 'init', 'dynamic_role_cap', -10 );
    function dynamic_role_cap() {
        $current_user = wp_get_current_user();
        $current_user->get_role_caps();
    }

    get_role_caps() will retrieve all the capabilities and merge with individual capabilities. This will help ‘iTheme’ to handle capabilities and hopefully solve your problem.

    BTW WPML is not actively working on a “BBPress Multilingual” plugin anymore, development has ceased. So it is highly not recommended.

    Thank you
    Laxman

    @thapa.laxman

    Activating only the iThemes Security (with Hide Backend feature emabled) and BBPress plugins the issue as demonstrated in the video does not seem to reproduce … at least I was unable to (Did run into something else).

    So it looks like the WPML plugin plays a bigger role in this issue than your post suggests …
    I’m more than willing to admit the issue is caused by the iTSec plugin but only when convincing arguments are presented …

    dwinden

    Thread Starter Kabitaprocab

    (@kabitaprocab)

    Laxman Thapa
    Thanks for solution. It worked for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘ithemes security blocked bbpress plugin’ is closed to new replies.