Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (jacampbe, Rick, Ruben Rocha, Thelockman, 1 invisible), 30 Guests and 17 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 09/18/08
Posts: 9
Top Posters (30 Days)
Ruben Rocha 184
Gizmo 110
Rick 101
Thelockman 83
driv 41
AllenAyres 35
ntdoc 28
Sirdude 27
Ian 24
ScriptKeeper 18
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#197637 - 09/18/07 12:31 PM [Fixed 7.3]7.2.2. Watch List Bug
MarkD Offline
stranger

Registered: 03/24/05
Posts: 4
after i add a forum or user to a watch list i get this error when i try to select "my watch lists" link.

We encountered a problem. The reason reported was
Script: E:\www\markdriver\forums\scripts\tab_forums.inc.php
Line#: 113
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 '' at line 8
SQL Error #: 1064
Query: select t.TOPIC_ID,t.POST_ID,t.USER_ID,t.TOPIC_SUBJECT,t.TOPIC_ICON,t.TOPIC_CREATED_TIME,u.USER_DISPLAY_NAME,t.TOPIC_LAST_REPLY_TIME,t.FORUM_ID from ubbt_TOPICS as t, ubbt_USERS as u where TOPIC_IS_APPROVED = '1' and t.USER_ID = u.USER_ID and t.FORUM_ID IN ( '1' ) order by t.TOPIC_LAST_REPLY_TIME desc limit


Edited by Sirdude (11/08/07 10:02 PM)

Top
#197646 - 09/18/07 01:45 PM Re: 7.2.2. Watch List Bug [Re: MarkD]
Rick Administrator Online   content

*****

Registered: 06/04/06
Posts: 7904
Loc: Aberdeen, WA
It looks like the limit clause is missing. That comes from your Topics per page setting in your profile. Try going into your preferences and make sure you have a valid number in the topics per page setting.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#200925 - 11/08/07 10:01 PM Re: 7.2.2. Watch List Bug [Re: Rick]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2081
Loc: SoCal, USA
Now fixed to not allow a null in 7.3 \:\)
_________________________


Top
#206223 - 02/10/08 12:29 AM Re: 7.2.2. Watch List Bug [Re: Sirdude]
jgeoff Offline
Pooh-Bah

Registered: 08/08/06
Posts: 1885
Loc: NJ

What about Watched Topics even in 7.3b3 still not emailing notices? :/
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Firefox 3.0, Google Chrome, & Safari 3.1 (XP and iPhone)

Top
#206225 - 02/10/08 05:54 AM Re: 7.2.2. Watch List Bug [Re: jgeoff]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
Allen has been experiancing weird issues with it for a while now at the other site...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#215531 - 07/16/08 03:07 PM Re: 7.2.2. Watch List Bug [Re: Gizmo]
ThomasM Offline
stranger

Registered: 12/24/03
Posts: 10
I'm having this same problem in 7.3.1.

Whats the fix?

i tried changing the ubbt_forums.forum_default_topic_age to NULL, 1, 365, still no joy.

Mysql ver 4.1.10

Thanks

Top
#216198 - 08/03/08 12:02 AM Re: 7.2.2. Watch List Bug [Re: ThomasM]
ThomasM Offline
stranger

Registered: 12/24/03
Posts: 10
Looks like i fixed mine. The limit statement is not complete.

Rather than figuring out why, i just removed it.

\scripts\tab_forums.inc.php

Line 112 removed $limit_clause

Top
#216199 - 08/03/08 12:11 AM Re: 7.2.2. Watch List Bug [Re: ThomasM]
Sirdude Moderator Offline

*****

Registered: 04/19/07
Posts: 2081
Loc: SoCal, USA
it's caused because the user doesn't have a topics per page value set and tab_forums.inc.php assumes so..

ideally, it should check to see if it's defined.. if not, then grab the global config value.. if even that (for some reason) ain't happening, then there should be a catchall of 25 or whatever.

this occurs elsewhere too frown

you can 'fix it' without modifying code, by simply going into your preferences, selecting a value and saving..
_________________________


Top


Shout Box

Today's Birthdays
kimteague_5@msn.com, Trekkie, Trixie
Recent Topics
Inclusion of Locked/Closed thread capabilities
by QSS Tim
12/03/08 11:17 AM
Contact Page Problem
by David DelMonte
12/03/08 09:05 AM
FAQ bug,
by BreeOge
12/03/08 08:36 AM
I'm the Admin but.....
by David DelMonte
12/02/08 11:12 AM
Fatal error: Smarty::require_once
()

by ThreadsUser
12/02/08 08:17 AM
Forum Stats
4261 Members
33 Forums
30538 Topics
155004 Posts

Max Online: 978 @ 06/24/07 08:19 PM