Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (daudvegas, Dunny, Pilgrim), 41 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/09/07
Posts: 193
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
capnbob 7
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#129224 - 05/31/06 02:43 PM ubbthreads bug
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
I am getting:

Script: /public_html/forums/ubbthreads.php - Line: 328
SELECT t1.Bo_Title,t1.Bo_Description,t1.Bo_Keyword,t1.Bo_Total,t1.Bo_Last,t1.Bo_Number,t1.Bo_Moderated,t1.Bo_Read_Perm,t1.Bo_Write_Perm,t1.Bo_Threads,t1.Bo_Sorter,t1.Bo_Posterid,t1.Bo_LastMain,t1.Bo_LastNumber,t2.U_Username,t3.B_Subject,t3.B_Icon,t3.B_Reged,t3.B_AnonName,t1.Bo_Image,t1.Bo_Cat
FROM w3t_Boards AS t1
LEFT JOIN w3t_Users AS t2 ON t1.Bo_Posterid = t2.U_Number
LEFT JOIN w3t_Posts AS t3 ON t1.Bo_LastNumber = t3.B_Number
WHERE t1.Bo_Active = '1'

AND ()
ORDER BY t1.Bo_Cat,t1.Bo_Sorter
- You have an error in your SQL syntax near ')
ORDER BY t1.Bo_Cat,t1.Bo_Sorter
' at line 8


Line 328 is in:

Code:

$boards = $dbh->do_query($query,__LINE__,__FILE__);
while ( $boardrow = $dbh -> fetch_array($boards)) {
$catboards[$boardrow['Bo_Cat']][] = $boardrow;
}

_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129225 - 05/31/06 04:52 PM Re: ubbthreads bug
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Is that in your error log or are you getting that personally when you view the front page?
Top
#129226 - 05/31/06 10:01 PM Re: ubbthreads bug
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
It's in the error log, not something I'd seen before, but I thought I'd check the log and there were 3-4 instances of this
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129227 - 05/31/06 11:18 PM Re: ubbthreads bug
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Basically that query is failing because it looks like the person in question isn't assigned to any group. It builds your forum list off your groups, and for some reason this person isn't even getting into the anonymous groups, his groups are just null resulting in a bad query.

Is this on threadsdev? Maybe need to do a query and see if there is anyone with no groups.

Select U_Username from w3t_Users where U_Groups = '' or U_Groups = '-"

That should cover it unless their profile is really screwed up, in which case:

Select U_Username from w3t_Users where U_Groups = '' or U_Groups = '-" or U_Groups = '--'

Top
#129228 - 06/01/06 12:33 AM Re: ubbthreads bug
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
Thank you very much...

A suggestion for threads 7.1 - useful queries like these are put somewhere in the cp

You can move this post to the eejit forum
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Island Permissions
by ThreadsUser
Yesterday at 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Running ads
by Jeffdag
05/17/12 01:47 PM
Forum Stats
10484 Members
36 Forums
33834 Topics
181678 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image