Previous Thread
Next Thread
Print Thread
Hop To
#212149 05/14/2008 7:23 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Getting this when try to use Active Topics (any of those options) on my 7.3b5 test forum
Anyone help?



We encountered a problem. The reason reported was
Script: /home/sites/www.domain name here.com/web/forums/scripts/activetopics.inc.php
Line#: 139
SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and t1.FORUM_ID = t2.FORUM_ID and t2.FORUM_ACTIVE_POSTS = 1 and t1' at line 5
SQL Error #: 1064
Query: select count(t1.TOPIC_ID) from ubbt_TOPICS as t1, ubbt_FORUMS as t2 where t1.TOPIC_LAST_REPLY_TIME > 1210159296 and t1.FORUM_ID in () and t1.FORUM_ID = t2.FORUM_ID and t2.FORUM_ACTIVE_POSTS = 1 and t1.TOPIC_IS_APPROVED = 1 and t1.TOPIC_STATUS <> 'M'


Joined: Jun 2006
Posts: 3,839
Likes: 1
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,839
Likes: 1
Have you made any changes to your scripts - perhaps line 139 of scripts/activetopics.inc.php?

And I would suggest testing with the final rather than b5 as several fixes were made between b5 and the final.

Ian #212161 05/14/2008 8:32 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
no I didn't change anything.

I will try with the 7.3 tomorrow morning, got to rest now!

thanks

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Do you have any actual forums setup where you can see them on your test board? The error is that there are no forums in the query for some reason. The script should catch this and present a more user friendly error, so I'll need to look at that.

Rick #212245 05/14/2008 10:06 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
"Do you have any actual forums setup where you can see them on your test board?"

Yes I do.

Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
OK I deleted the test forums completely, dropped the database and then reinstalled.

As soon as the clean install (7.3) was on, I went to any of the 3 dropdowns and got the below:


We encountered a problem. The reason reported was
Script: /home/sites/www.yuzawa-now.com/web/forums/scripts/activetopics.inc.php
Line#: 139
SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and t1.FORUM_ID = t2.FORUM_ID and t2.FORUM_ACTIVE_POSTS = 1 and t1' at line 5
SQL Error #: 1064
Query: select count(t1.TOPIC_ID) from ubbt_TOPICS as t1, ubbt_FORUMS as t2 where t1.TOPIC_LAST_REPLY_TIME > 1210236712 and t1.FORUM_ID in () and t1.FORUM_ID = t2.FORUM_ID and t2.FORUM_ACTIVE_POSTS = 1 and t1.TOPIC_IS_APPROVED = 1 and t1.TOPIC_STATUS <> 'M'

Please click back to return to the previous page.

Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
I seem to have fixed this. Not exactly sure how unfortunately but once I had all the permissions on it seems to be working now.

I hope it works on the real thing.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
Who's Online Now
7 members (toner, SD, Michael_E6D9, Bill_Owens, BellaOnline, 2 invisible), 357 guests, and 93 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)