• Resolved eLeXeM

    (@elexem)


    [well, I would have posted this to buddypress.org/support/ but after 2 attempts resulting in a 404 each I got kinda fed up with that. So, I’m trying my luck here:]

    Hey, team @buddypress;
    your last update apparently changed something vital in the way loading of activities works on WordPress’ frontend, because that suddenly stopped working under certain circumstances.

    I first thought it was something to do with our using Jannah theme by @tielabs, but the issue persists even if I switch theme/s. (I do realize not all themes fully support BuddyPress, but I invested some searching ’til I found some loading normally under similar circumstances + then went thru the usual drag of switching of plugins and reactivating them one by one to identify the trouble source.)

    One plugin that definitely has some influence is “Glossary” by @codeat (see below); but that’s probably not the entirety of it (because on e.g. theme “SocialMag” (which says it supports BuddyPress) activities do not load regardless of Glossary being active or not). Either way, I’m guessing this might have something to do with HeartBeat / Ajax handling, because disallowing HeartBeat on FrontEnd also stops activities from loading, so maybe that’s a pointer on where to start looking.

    How to reproduce the issue regardless of plugin/s :

    – install + activate free “SocialMag” theme;
    – install + activate BuddyPress;
    – open page with activities on frontend (which will not be loading then).

    How to reproduce the issue with Glossary :

    – install + activate free “Twenty Nineteen” (default) or “Custom Community” theme;
    – install + activate BuddyPress;
    – install + activate Glossary;
    – open page with activities on frontend (which will not be loading then);

    – deactivate Glossary;
    – reopen page with activities on frontend (which will be loading then).

    How to reproduce the issue by tinkering with HeartBeat :

    – install + activate any BuddyPress-supporting theme;
    – install + activate BuddyPress;
    – check if activities load properly;
    – if they do, use HeartBeat Control to disallow HeartBeat on FrontEnd
    – open page with activities on frontend (which will not be loading then);
    – re-allow HeartBeat on FrontEnd;
    – reopen page with activities on frontend (which will be loading then).

    Wordpress Version used : 5.0 (always the latest)
    BuddyPress Version used : 4.1.0 (always the latest)
    issue page : e.g. https://liberal.is/aktivitaet/

    So; could you guys examine + fix this, please? Much appreciated.
    (If I can contribute any further information to help hunt this down, pls let me know.)

    I’ll also be alerting @codeat to the portion of the issue pertaining to Glossary. Ideally, looking at the problem from more than one side should help nail the problem quicker.

    Cheers –

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Hi @elexem

    Thanks for the detailed post.

    First, regarding SocialMag. It appears to be written in such a way that it’s not fully compatible with BuddyPress. It contains a buddypress.php top-level template, which attempts to load a /parts/content-buddypress.php template, but the latter does not exist. So it loads the default content.php template, which calls the_excerpt(), which doesn’t work properly with the way that BuddyPress injects its contents into templates.

    Aside from this, I was not able to reproduce your errors. I tested against both BuddyPress 4.1.0 and BuddyPress 3.2.0, to test whether a BP update changed anything, but found the same thing:

    – Activity pages load content whether running Heartbeat or not
    – Activity pages load content whether running Glossary or not

    It could be that there’s some more complex interaction causing failure in your case, and it could be that these aspects are part of the story, but with these items alone I cannot reproduce the problems.

    It may help if you can clarify the following:
    – Have you tested with both Nouveau and Legacy templates? I see that your liberal.is site is currently running Nouveau. Dashboard > Settings > BuddyPress > Options.
    – When you say that activity items are not loading, I have a feeling you mean different things in different cases. For SocialMag, it appears that none of the BP content actually appears (or rather, only a small plaintext excerpt appears, with no dynamic functionality or styling). But I’m guessing that the behavior in other cases is different. Could you explain in more detail? Perhaps share screenshots.
    – Please open your browser’s developer console to the Network tab, and see whether the AJAX requests made by BP are returning any sorts of errors.

    Thread Starter eLeXeM

    (@elexem)

    hey, @boonebgorges;
    first of all, thanks a ton for getting back to me even tho I posted in the wrong place. Now, to your feedback ??

    – understood re SocialMag; so we drop this;

    – re >> some more complex interaction causing failure<< I have in the meantime received also a reaction by Glossary’s Author Daniele Scasciafratte (@mte90) in another thread over @ https://www.ads-software.com/support/topic/conflicting-with-buddypress-after-their-last-update/#post-10979256 + will pursue his suggestions also + let you know once I did.

    – interesting hint re Noveau vs Legacy template/s; I’d _never_ thought to think of that ?? Let me check that first of all things > I have switched BuddyPress’ template back to legacy + the activity items _do_ load on https://liberal.is/aktivitaet/ [re your question: >> When you say that activity items are not loading, I have a feeling you mean different things in different cases<< I’m sorry I wasn’t more precise before. What I mean is the listing of BuddyPress community members doing stuff, like posting updates, commenting status updates, change pictur/es etc. etc.] when Glossary is off. Next, I switched Glossary back on + the activity items failed to load again.

    So, I think next I’ll be giving Daniele’s suggestion a spin + then take it from there, yeah?

    Cheers so far! + best regards – LX

    Thread Starter eLeXeM

    (@elexem)

    checked and confirmed : definitely a line in Glossary causing the hiccup > https://www.ads-software.com/support/topic/conflicting-with-buddypress-after-their-last-update/#post-10979894

    Pursuing this further with Daniele ftm, then. More thanks for your help so far, nonetheless. Should you have any ideas on how to reconcile Glossary + BuddyPress by all means do feel very welcome to join on in over there. ??

    Cheers – LX

    Plugin Author Boone Gorges

    (@boonebgorges)

    Excellent – glad to hear that the Glossary team is following up! Glancing briefly at the code, I don’t have a clear idea of how to make their query process more effective, but I’ll jump into that thread if I have any brainstorms.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Loading of activities compromised after last update’ is closed to new replies.