Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (Flyin V, Harold, jacampbe, Ruben Rocha, Thelockman), 22 Guests and 18 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/08/06
Posts: 36
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 106
Thelockman 79
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
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 Offline

*****

Registered: 06/04/06
Posts: 7903
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: 2077
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: 2077
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
No Birthdays
Recent Topics
I'm the Admin but.....
by David DelMonte
Today at 11:12 AM
Fatal error: Smarty::require_once
()

by ThreadsUser
Today at 08:17 AM
PayPal batch file for ID'ing expired and failed payment subscriptions?
by Mitch P.
Today at 06:02 AM
Shrinking graemlins
by Djuma
Yesterday at 05:48 PM
2 problems I'm seeing now.
by DougMM
Yesterday at 04:39 PM
Forum Stats
4261 Members
33 Forums
30535 Topics
154977 Posts

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