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.
Sorry I’m not familiar with PHP but I tried to place this code into the wp-config.php file:
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.
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.