Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity and public messaging issue


  • jsanjak
    Participant

    @jsanjak

    I am having an issue with BuddyPress public messaging. When users attempt a public message, the activity form (buddypress nouveau) does not appear on the page. It appears that the requisite javascript files are unable to load. I’ve tested this with default wordpress themes ( twentynineteen). I contacted my hosting service provider, wpengine, and they identified the following database error:

    [Fri May 17 17:14:48.061122 2019] [php7:notice] [pid 18420] [client 127.0.0.1:27604] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘( user_id, blog_id ) VALUES ( 1, 1 ) /* From [menastage.wpengine.com//wp-admin/?’ at line 1 for query INSERT INTO ( user_id, blog_id ) VALUES ( 1, 1 ) /* From [menastage.wpengine.com//wp-admin/?wp-cmd=ensure] in [/nas/content/live/menastage/wp-content/plugins/buddypress/bp-blogs/classes/class-bp-blogs-blog.php:127] */ made by require_once(‘wp-admin/admin.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WpeCommon->real_ip, WpeCommon->process_internal_command, WpeCommon->ensure_standard_settings, wp_update_user, wp_insert_user, do_action(‘profile_update’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, bp_blogs_add_user_to_blog, bp_blogs_record_blog, BP_Blogs_Blog->save

    Can anyone identify a solution to this issue? Or perhaps anything else I should try?

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

  • shanebp
    Moderator

    @shanebp

    Please use the code button when posting code.

    Are you using a minify javascript plugin? Or similar setting for wpengine?
    If so, please try turning it off.


    jsanjak
    Participant

    @jsanjak

    Sorry for the error code dump. According the admins of wpengine there is no minification implemented.

    The theme I am using (woffice) uses BuddyPress and has thousands of installs that work just fine. This error occurs with nothing but a fresh install of the theme and no other plugins.

    Any other thoughts? To me it seems that there is some interaction between BuddyPress code and wpengine, but I really don’t have the technical background to figure it out.


    shanebp
    Moderator

    @shanebp

    Try deleting the wpengine cache and turning the settings ‘down’ as much as possible – they are quite aggressive about caching, which is great for WP but can cause issues with BP.

    Try switching momentarily to a WP theme like 2019 to confirm that the issue is not specific to woffice.


    jsanjak
    Participant

    @jsanjak

    Yep, the issue is not with the theme because the problem still occurs when I use 2019. This was on of the first things I did, when I thought the problem was with the theme.

    WP engine support did fully uncache that page, but nothing happened.

    An alternative solution to getting this to work would be to disable the “public messaging” feature entirely. The initial reason I found this problem is because public messaging takes you to an activity form that starts with @user (whoever you are messaging). If I can’t get the activity form to appear, then I would rather just remove the feature. Is there any simple way to do that?


    shanebp
    Moderator

    @shanebp

    Do you still want to use private messaging?
    If not, simply turn off the Messaging component in wp-admin > Settings > BuddyPress


    jsanjak
    Participant

    @jsanjak

    Okay, turns out the entire problem was solved by simply deactivating the “Automatically check for new items while viewing the activity stream” buddypress setting.

    It was effectively the same issue as in this thread https://buddypress.org/support/topic/buddypress-js-not-loading/

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