Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress does not work right anymore


  • randyvos
    Participant

    @randyvos

    Hello,

    About a month ago we had to set our website http://www.dailynintendo.nl back with an backup after an possible hack. Since then our admin is also only available for whitelisted IP’s.

    From that moment we encounter problems with buddypress
    – members cannot accept friendships
    – members can sent PM’s but cannot reply
    – members cannot upload avatars anymore (this seems because the IP restricted admin)

    Does anyone know what the problem can be?

    If the answer is reinstall it: Deactivating buddypress seems like a hell when you read on internet (blank pages an so on). Beside that we cannot deactivate it, nothing happens when we click on deactivate.

    Kind regards,

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

  • shanebp
    Moderator

    @shanebp

    Ajax calls need access to wp-admin.
    You’ve blocked it so the ajax calls will not work.
    And you see that in the areas you’ve mentioned.

    You’ll need to add this conditional to your whitelist check:
    wp_doing_ajax

    Something like: if ( ! is_admin() && wp_doing_ajax ()) {


    Boone Gorges
    Keymaster

    @boonebgorges

    To follow up on @shanebp’s advice: It sounds like you’re experiencing problems with AJAX requests. AJAX requests are sent to wp-admin/admin-ajax.php, so your IP-based whitelist must exclude this URL. If your whitelist is built in PHP, something along the lines of the advice above will work. If it’s built in Apache or at the webserver level, be sure to exclude wp-admin/admin-ajax.php.

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