Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
7 registered (AllenAyres, Angie P, Harold, Island Piper, jmt123, Rick, Ultimatelunker), 23 Guests and 28 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/14/08
Posts: 2
Top Posters (30 Days)
Rick 110
Gizmo 100
Thelockman 57
driv 50
AllenAyres 40
Morgan 39
blaaskaak 30
ntdoc 28
flyboy105 28
ScriptKeeper 27
Latest Photos
XTERRA K9 Challenge
DEG Metro Stars: Jamie Storr
My new girlfriend
testing photo upload in ie7
Fall foilage in New England
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   sleepy

*****

Registered: 06/04/06
Posts: 7689
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: 2051
Loc: SoCal, USA
Now fixed to not allow a null in 7.3 \:\)
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

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: 1882
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: 11816
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: 2051
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..
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top


Shout Box

Today's Birthdays
The Spin Master
Recent Topics
Make this topic a global announcement
by Morgan
Today at 01:35 PM
Duplicanting moderators
by ehm1
Today at 11:25 AM
Utimate Lunker
by Ultimatelunker
Today at 09:17 AM
Subject line and Watched topics in Quick Reply form?
by medencev
Today at 06:35 AM
Moderators can't read despite the moderators settings are ok
by Morgan
Today at 03:14 AM
Forum Stats
4094 Members
33 Forums
30219 Topics
153009 Posts

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