BuddyDev

Search

Homepage buddypress activity LOAD MORE button error

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #21129

    Hi Brajesh,

    Have a major issue with my Homepage activity stream not loading ALL the intended new posts and comments (minus the Profile and Join a Group updates).

    When I click on the Load More button it just repeatedly loops 2-4 days data and doesn’t go all the way back to cover all the new posts and comments by members (going back a month).

    However, on the Activity Page (which is a separate page on this theme), you can see all the new posts and comments are there.

    This happened after a recent update to the theme I’m using but the author is very slow to respond to queries despite repeated tickets. Previous to this latest update, everything was working perfectly.

    I really appreciate your advise on the best recourse or next steps on this as I’m at my wits end.

    Thanks for your kind attention.

    Best regards
    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24653
    Brajesh Singh on #21135

    Hi Edward,
    Most probably they are missing some javascript for pagination.

    I will suggest checking the console for sent parameters(post rquest) when you click on the load more.

    That should give you some idea.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #21140

    Hi Brajesh,

    Thanks so much for your prompt response! Really appreciate it. I’ve done what you instructed and here’s the results:

    “Failed to load resource; the server responded with a status of 404 (not found).”

    Is there a plugin or some code that I can use to fix the problem of the Load More not working?

    Thanks again Brajesh.

    Best regards
    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24653
    Brajesh Singh on #21166

    Hi Edward,
    Is there any access restriction or dashboard restriction plugin active?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #21170

    Hi Brajesh,

    No there isn’t.

    So far, we have only restricted the Members Page from everyone except Admin. Is there any conflict?

    Best regards
    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24653
    Brajesh Singh on #21180

    Please try disabling that code and see if it works. 404 means not found. So, something is protecting and sending this header. I am unable to guess what it is.

    regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #21182

    Hi Brajesh,

    I’ve tried removing that code earlier but the Load More button was still not working.

    Funny thing is if I amend the Activity element on the Homepage and don’t state the number of activity items on each page (i.e when the Load More button is clicked), the stream loads properly with the entire history intact. Only drawback is that it makes the stream too long and unwieldy and distorts the Homepage.

    Looks like we’re running out of ideas on this issue…..

    Thanks anyway for trying Brajesh.

    Best regards
    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24653
    Brajesh Singh on #21197

    Hi Edward,
    Thank you.

    If you are comfortable with PHP, try enabling WP_DEBUG, WP_DEBUG_LOG and trace the request. That should give some insight.

    Changing activity per page, causing this issue seems strange to me.

    Best Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #21207

    Hi Brajesh,

    Sorry I’m not familiar with PHP but I tried to place this code into the wp-config.php file:

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);

    However, I can’t seem to locate the debug.log in wp-content.

    I must have skipped a step of done something wrong.

    Need your kind guidance and advise.

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #21236

    Hi Brajesh,

    Apparently the theme already has an ERROR LOG in it and this is part of the redacted message:

    [01-Mar-2019 08:18:54 UTC] PHP Warning: Division by zero in /home2//public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 511
    [01-Mar-2019 08:18:56 UTC] PHP Warning: Division by zero in /home2//public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 511

    This is coupled with our earlier Error 404 message on the console for sent parameters (post request):

    “Failed to load resource; the server responded with a status of 404 (not found).”

    The Division by Zero indicates that the Per Page option has been set to ZERO and therefore, when we click LOAD MORE, there are error messages and the data just keep repeating and looping.

    We have always set the Per Page option at 5 or 7 (and not zero). This issue only cropped up on Feb 26.

    Is this an indication that either the LOAD MORE button or the PER PAGE OPTION (on the Activity element of the Homepage) is defective?

    Would really appreciate your kind advise.

    Thanks!

    Best regards
    Edward

You must be logged in to reply to this topic.

This topic is: not resolved