|
Joined: Mar 2005
Posts: 1
stranger
|
stranger
Joined: Mar 2005
Posts: 1 |
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
Last edited by Sirdude; 11/09/2007 2:02 AM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
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.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
Now fixed to not allow a null in 7.3
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
What about Watched Topics even in 7.3b3 still not emailing notices? :/
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Allen has been experiancing weird issues with it for a while now at the other site...
|
|
|
|
Joined: Dec 2003
Posts: 16
stranger
|
stranger
Joined: Dec 2003
Posts: 16 |
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
~~Its only a bad shooting when the wrong people get shot~~
|
|
|
|
Joined: Dec 2003
Posts: 16
stranger
|
stranger
Joined: Dec 2003
Posts: 16 |
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
~~Its only a bad shooting when the wrong people get shot~~
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
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 you can 'fix it' without modifying code, by simply going into your preferences, selecting a value and saving..
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (Ruben),
866
guests, and
176
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|