Notifications
Clear all

wpForo 1.x.x [Closed] guest login topic pagination missing for extended layout

5 Posts
2 Users
1 Likes
1,086 Views
Posts: 111
Topic starter
(@nando4)
Estimable Member
Joined: 7 years ago

Had topics with no pagination for guest login. Sitemaps were not including these other pages.

Turns out the bug is due to a db call checking private=0 for topic posts and not counting those posts for items_count. The fix was to comment out the following section in class-posts.php

            //else{
//If doesn't have "View Private Posts" access and not Owner, only return public posts
// $wheres[] = " " . $table_as_prefix . "`private` = 0";
//}

 

4 Replies
Sofy
Posts: 4308
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @nando4,

This is not wpForo issue it comes from the MySQL version. Please see the description of the issue here:  https://bugs.mysql.com/bug.php?id=81031

Here is the same issue:

https://wpforo.com/community/how-to-and-troubleshooting-2/topic-pages-disappeared/#post-25490

Posts: 111
Topic starter
(@nando4)
Estimable Member
Joined: 7 years ago

@sofy , the cpanel DB check/fix did fix the problem. Thank you.

Posts: 111
Topic starter
(@nando4)
Estimable Member
Joined: 7 years ago

Spoke too soon. The problem persists and the only working workaround is to comment out the offending code in class-posts.php. More details at:

https://wpforo.com/community/how-to-and-troubleshooting-2/topic-pages-disappeared/#post-25853

1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4308

Hi @nando4,

This is not wpForo issue it comes from the MySQL version. Please see the description of the issue here:  https://bugs.mysql.com/bug.php?id=81031

I suggest you either update your MySQL version or try solution provided by antonM in this support topic:   https://wpforo.com/community/how-to-and-troubleshooting-2/topic-pages-disappeared/#post-25496