Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cannot access any topic or forum


  • m1ngum0u
    Participant

    @m1ngum0u

    Hi! I’ve got that:

    Error thrown
    Call to a member function get_users_for_object() on null

    When i turning visibility option to “Hide” it happens.
    And I cannot access any topics and forums.I can only access profile page of bbPress

    Found this method in engagements.php(/includes/common)(/includes/users), capabilities.php (/includes/users)

    any suggestions to solve it?
    using bbPress 2.6.9 and WordPress 5.2.13 with Pointfinder theme.

Viewing 24 replies - 1 through 24 (of 24 total)

  • Robin W
    Moderator

    @robin-w

    When i turning visibility option to “Hide” it happens.

    sorry, can you say exactly where you are changing this setting?


    m1ngum0u
    Participant

    @m1ngum0u

    I’m using WP in my native language.
    In forum parameters I’m changing visibility option to third (make forum hidden).
    just trying to translate it to en correctly

    first is 'make global'
    second is make private
    third is make hidden

    Robin W
    Moderator

    @robin-w

    so a hidden forum is only viewable by moderators and keymasters.

    How many forums do you have, and what is the visibility of these?


    m1ngum0u
    Participant

    @m1ngum0u

    100 forums, 64071 topics and 1 065 864 replies.
    all others forums have global visibility.
    when i changing 1st forum visibility i cannot access all other forums.


    Robin W
    Moderator

    @robin-w

    so try changing another forum – ie is it just this forum, or any forum?


    Robin W
    Moderator

    @robin-w

    having one forum hidden works fine on my test site


    m1ngum0u
    Participant

    @m1ngum0u

    Tried it. Same problem.


    m1ngum0u
    Participant

    @m1ngum0u

    I imported all forums from vBulletin to bbPress a couple days ago and now moderating it. Maybe import could cause this?


    Robin W
    Moderator

    @robin-w

    possibly, so if forums are public or private it all works ok ?


    m1ngum0u
    Participant

    @m1ngum0u

    with public and private works well.


    m1ngum0u
    Participant

    @m1ngum0u

    just tried to login with admin & moderator accounts and it works well with this.
    but when i logging in with participant acc it throws this error


    Robin W
    Moderator

    @robin-w

    ok, again my test site works.

    so we need to work out if it is the import, a theme or plugin issue, or something else.

    I would suggest next you create a forum, and one topic for it. Then make the forum hidden, and see if this then works.


    m1ngum0u
    Participant

    @m1ngum0u

    @robin-w could you check your engagements.php on your test forum?
    (/yoursite/wp-content/plugins/bbpress/includes/common/engagements.php)

    i’ve got
    public function get_users_for_object( $object_id = 0, $meta_key = '', $meta_type = 'post' )

    i think $meta_key value shouldn’t be empty…


    m1ngum0u
    Participant

    @m1ngum0u

    just have checked plugins, turned off them all and same result 🙁


    Robin W
    Moderator

    @robin-w

    ok, but can you try this first

    I would suggest next you create a forum, and one topic for it. Then make the forum hidden, and see if this then works.


    m1ngum0u
    Participant

    @m1ngum0u

    create a forum, and one topic for it. Then make the forum hidden, and see if this then works.

    just tried this. not worked


    Robin W
    Moderator

    @robin-w

    ok, I’d suggest running

    dashboard>tools>forums>repair forums>

    and run

    Recalculate engagements in each topic for each user

    and

    Recalculate private and hidden forums

    and see if that helps.

    I still think the core issue is with the import

    If that fails, then run all the rest one at a time


    m1ngum0u
    Participant

    @m1ngum0u

    Hi @robin-w i’m back with some good news:)
    I’ve found the reason of my problem. There is conflict between two plugins which one is bbPress and another one is Redux.
    The theme that i’m using requires Redux and i cannot to turn it off. I’m bad at it so if you know what to do next, text me please.


    Robin W
    Moderator

    @robin-w

    I’ve not read this is detail, but is it related ?

    https://wordpress.org/support/topic/redux-and-bbpress-glitchy-forum-parents/


    m1ngum0u
    Participant

    @m1ngum0u

    I’ve seen this before, already updated Redux plugin to the latest version but problem seems not to be resolved


    Robin W
    Moderator

    @robin-w

    ok, so you say you get an error

    Error thrown
    Call to a member function get_users_for_object() on null

    is this the entire error, or is there more?
    when does this occur eg on every website page, on bbpress pages, on particular pages ?


    m1ngum0u
    Participant

    @m1ngum0u

    It is the entire error showing on the page only. In debug.log file there isn’t this error.
    It occurs only on bbpress page, only if i authorized as a “Participant” bbpress role account. On another roles such as moderator or admin or viewer there is no error on bbpress page.


    hitlis
    Participant

    @hitlis

    Hello, same problem, installed Template Library and Redux Framework Version 4.3.10 + bbpress, when opening the forum page in the role Participant i get an error:

    Error thrown
    Call to a member function get_users_for_object() on null

    please help, how can i fix it?


    m1ngum0u
    Participant

    @m1ngum0u

    Hello, same problem

    Hi, still trying to fix this issue. Thinking that there is something wrong with Redux Framework, ’cause when i disable Redux Framework plugin forums work well.

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