Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Topics order in forum, seems not to work
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2016 - 6:14 am

The code is fine and it is working fine on my dev system.
So... what Simple:Press plugins - if any - are you using please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Giovanna
Nijmegen - NL
Member
sp_UserOfflineSmall Offline
Mar 15, 2016 - 7:28 am

Quite a lot:

Here's the list:

Admin Bar

Announce

Answers Topic

Birthdays

Editor Tiny...

File Uploader...

Font Resizer

Language and Theme Selection (not active)

Mentions

Post Preview

Profnity Filter

Ranks Information

Share This (not active)

Subscriptions

Template Tags and Widgets

Unaswered Topics

Watches

 

...maybe it was easier to list the ones I do not uselaughlaughlaugh

My forum (in Italian) is: MsPforum

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2016 - 7:39 am

No... nothing there should be interfering. I asked because some plugins will also modify the base query but that all still looks fine.

I am puzzled bit intrigued.

Can you try one more thing? Put the new code file in place. Go to the forum admin > toolbox > error log and clear it out (button at bottom). Run one of your forums in form view (list of topics). I assume it will be 'damaged'. Revisit the error log (reload the panel) to  see if any fatal errors occurred.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Giovanna
Nijmegen - NL
Member
sp_UserOfflineSmall Offline
Mar 15, 2016 - 3:36 pm

Andy, this is what I see in the error log after having done what you said:

file: /membri/mspforum/mspforum/wp-content/plugins/simple-press/forum/content/classes/sp-forum-view-class.php
line: 319
function: select
error: Unknown column 'spf_sftopics.topic_id' in 'order clause'

SELECT avwp_sftopics.forum_id, forum_slug, forum_name, forum_status, group_id, topic_count, forum_icon, topic_icon, topic_icon_new, topic_icon_locked, topic_icon_pinned, forum_desc, forum_rss, forum_rss_private, parent, children, forum_message, forum_disabled, keywords, avwp_sftopics.topic_id, topic_slug, topic_name, topic_status, topic_pinned, topic_opened, avwp_sftopics.post_id, avwp_sftopics.post_count FROM avwp_sftopics JOIN avwp_sfforums ON avwp_sftopics.forum_id = avwp_sfforums.forum_id WHERE avwp_sfforums.forum_id=6 ORDER BY topic_pinned DESC, spf_sftopics.topic_id DESC LIMIT 0, 12

My forum (in Italian) is: MsPforum

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2016 - 3:52 pm

Sono un idiota!

I am so sorry. I forgot all about the WP table prefix, The line if code that I gave you:

    $db->orderby = 'topic_pinned DESC, spf_sftopics.topic_id DESC';

should be:

    $db->orderby = 'topic_pinned DESC, '.SFTOPICS.'.topic_id DESC';

!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Giovanna
Nijmegen - NL
Member
sp_UserOfflineSmall Offline
Mar 15, 2016 - 3:56 pm

Funzionaaaaaaaaaaaaaaalaughlaughlaughlaughlaughlaughlaugh

And your spelling was absolutely perfect laughlaugh

Thanks a lot!!!kiss

My forum (in Italian) is: MsPforum

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2016 - 3:58 pm

Excellent. And again - sorry for my stupidity!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Giovanna
Nijmegen - NL
Member
sp_UserOfflineSmall Offline
Mar 15, 2016 - 3:59 pm

Don't worry Andy, I have done much worse, trust me! 

My forum (in Italian) is: MsPforum

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2016 - 10:01 pm

we have all been there!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626