Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (cascadeclimbers, DougMM, Rick, smallufo, 1 invisible), 32 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 09/18/08
Posts: 9
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
#129224 - 05/31/06 11:43 AM ubbthreads bug
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
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 01:52 PM Re: ubbthreads bug
Rick Administrator Online   content

*****

Registered: 06/04/06
Posts: 7903
Loc: Aberdeen, WA
Is that in your error log or are you getting that personally when you view the front page?
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#129226 - 05/31/06 07:01 PM Re: ubbthreads bug
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
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 08:18 PM Re: ubbthreads bug
Rick Administrator Online   content

*****

Registered: 06/04/06
Posts: 7903
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 = '--'

_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#129228 - 05/31/06 09:33 PM Re: ubbthreads bug
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
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
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
154979 Posts

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