AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Guests do not see forum navigation buttons

40 Posts
3 Users
8 Reactions
34.2 K Views
antonM
Posts: 131
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@antonm)
Estimable Member
Joined: 9 years ago

@robert, I created a test site and installed all my plugins with wpforo. No problems, pagination works well. So, the problem with my production site. Is there any debug options to detect the problem?


antonM
Posts: 131
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@antonm)
Estimable Member
Joined: 9 years ago

Update.

Something wrong with sql. If I open forum as user the select query is

SELECT COUNT(*) FROM wpforo_topics WHERE forumid = 14

It gives 17.

If I open forum as guest the select query is

SELECT COUNT(*) FROM wpforo_topics WHERE forumid = 14 AND private = 0 AND status = 0

It gives 0.

I have tried to run this query via phpMyAdmin and it returns also 0.

If I delete 'private' or 'status' the select returns 17.

Any ideas?


Robert
Posts: 10753
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

@antonm

Please select all topics of forumid = 14 and check the  private and status fields. Are they all 0?


1 Reply
antonM
(@antonm)
Joined: 9 years ago

Estimable Member
Posts: 131
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Yes, all items in these fields = 0


antonM
Posts: 131
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@antonm)
Estimable Member
Joined: 9 years ago

I have just tried select:

SELECT * FROM wpforo_topics WHERE forumid = 14

It returned 17.

The I input select:

SELECT * FROM wpforo_topics WHERE forumid = 14 AND status = 0 AND private = 0

It returned 17.

Then I input

SELECT COUNT(*) FROM wpforo_topics WHERE forumid = 14 AND status = 0 AND private = 0

And it also returned 17. Now pagination works for guests. I don't understand anything...

Thank you for help @robert.


Robert
Posts: 10753
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

Ok, then this is a MySQL cache issue, you should add a multiple index to reset this cache and make it work faster. Please navigate to this table Structure Tab, select forumid. private, status fields and make those one index.

Or just execute this SQL, make sure the wp_ database table prefix is correct:

ALTER TABLE `wp_wpforo_topics` ADD INDEX( `forumid`, `private`, `status`);

Page 6 / 7
Share: