Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Help time.

 
Post new topic   Reply to topic Printable version
 View previous topic  Need a host Post :: Post C / C++ question  View next topic  
Author Message
Gravitron
VIE Vet


Age:43
Gender:Gender:Male
Joined: Aug 02 2002
Posts: 993
Location: Israel
Offline

PostPosted: Sat Jul 30, 2005 5:31 pm   Post maybe stupid    Post subject: Help time. Reply to topic Reply with quote

My turn to ask.

Quote:

SQL Error : 1109 Unknown table 'c' in where clause

SELECT * FROM phpbb_forums f WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order ASC

Line : 767
File : admin_ug_auth.php


And unless I mistook the place:
Code: Show/Hide

   //
   // Front end
   //
   $sql = "SELECT *
      FROM " . FORUMS_TABLE . " f
      WHERE f.cat_id = c.cat_id
       ORDER BY c.cat_order, f.forum_order ASC";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql);
   }


After 48 hours of messing with this thing (not this error in specific, the entire forum and other errors) I'm way too tired to even look two seconds into what's causing this one.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address Yahoo Messenger MSN Messenger
Gravitron
VIE Vet


Age:43
Gender:Gender:Male
Joined: Aug 02 2002
Posts: 993
Location: Israel
Offline

PostPosted: Sat Jul 30, 2005 5:46 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Alright, so I'm missing a category table.
I think I know why, I messed with categories and forums earlier (like 24 hours ago, heh).
But which table indexes the missing table?
Where is it hiding, must find...then can remove...then no more errors! new_let_it_all_out.gif
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address Yahoo Messenger MSN Messenger
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sat Jul 30, 2005 5:46 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

This really looks a little different from the last version I downloaded of phpBB2 and the package I just downloaded now.

Code: Show/Hide
   $sql = "SELECT f.*
      FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
      WHERE f.cat_id = c.cat_id
      ORDER BY c.cat_order, f.forum_order ASC";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql);
   }


It's even on another line.

I'd suggest re-downloading instead of trying to fix all these problems manually.
I doubt you need any explaination about the bugged SQL query after what I just posted, it's obvious the definition for 'c' is missing in your version. sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sat Jul 30, 2005 5:47 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Damn you, posting 2 seconds before I do huh. icon_sad.gif
Back to top
View users profile Send private message Add User to Ignore List
Gravitron
VIE Vet


Age:43
Gender:Gender:Male
Joined: Aug 02 2002
Posts: 993
Location: Israel
Offline

PostPosted: Sat Jul 30, 2005 6:39 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

http://www.phpbbfm.net
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address Yahoo Messenger MSN Messenger
Pests
Novice


Joined: Feb 24 2003
Posts: 84
Offline

PostPosted: Sun Jul 31, 2005 9:40 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

If you look at the original query:

SELECT * FROM phpbb_forums f WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order ASC

You see phpbb_forums is being represented as f later in the query. The problem is, c is being used as a reference before it was defined. I'm assuming c stands for category, so you need to change the query to:


SELECT * FROM phpbb_forums f, phpbb_category c WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order ASC

Assuming phpbb_category is the name of the category table (not sure if its plural or whatnot).
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Aug 01, 2005 11:21 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Uhhh, Pests, look at Solo Ace's post.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Pests
Novice


Joined: Feb 24 2003
Posts: 84
Offline

PostPosted: Tue Aug 02, 2005 4:55 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Damn, thats what I get for not reading replies. icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 40 page(s) served in previous 5 minutes.

phpBB Created this page in 0.633114 seconds : 33 queries executed (91.1%): GZIP compression disabled