1
RoMeO
Database Error.! [help Me Pls], give an error message when click forum main page
  • 2006/12/31 14:38

  • RoMeO

  • Just popping in

  • Posts: 34

  • Since: 2005/8/27


Quote:
mySQL query error: SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc,
c.image, c.url, m.member_name as mod_name, m.member_id as mod_id, m.is_group, m.group_id, m.group_name, m.mid
FROM xoops_ipb_forums f, xoops_ipb_categories c
LEFT JOIN xoops_ipb_moderators m ON (f.id=m.forum_id)
WHERE c.id=f.category
ORDER BY c.position, f.position

mySQL error: Unknown column 'f.id' in 'on clause'
mySQL error code:
Date: Sunday 31st of December 2006 08:39:00 AM


Can you help me?
How i can fix it?

2
irmtfan
Re: Database Error.! [help Me Pls], give an error message when click forum main page
  • 2006/12/31 14:44

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


is this cbb?
why you dont write any information?
xoops version?
is this an upgrade?
if yes from what version to what version of what module ?

do you delete your template and create the new once after upgrade?

3
RoMeO
Re: Database Error.! [help Me Pls], give an error message when click forum main page
  • 2006/12/31 14:51

  • RoMeO

  • Just popping in

  • Posts: 34

  • Since: 2005/8/27


i am sorry.
xoops ver. 2.2.3 and X-ipb ver. 1.4x

4
irmtfan
Re: Database Error.! [help Me Pls], give an error message when click forum main page
  • 2006/12/31 14:56

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


if you upgrade and use a clone template try to delete it and generate new.

5
RoMeO
Re: Database Error.! [help Me Pls], give an error message when click forum main page
  • 2006/12/31 16:06

  • RoMeO

  • Just popping in

  • Posts: 34

  • Since: 2005/8/27


resolved
Thanks ..

------------------
Bug is described here

http://bugs.mysql.com/bug.php?id=13551

to solve

open sources/Boards.php

find buggy query

Quote:


SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc



and make it look like the following

Quote:


// FIX 5.0.15
$DB->query("SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc,
c.image, c.url, m.member_name as mod_name, m.member_id as mod_id, m.is_group, m.group_id, m.group_name, m.mid
FROM ( ibf_forums f, ibf_categories c )
LEFT JOIN ibf_moderators m ON (f.id=m.forum_id)
WHERE c.id=f.category
ORDER BY c.position, f.position");

Login

Who's Online

321 user(s) are online (265 user(s) are browsing Support Forums)


Members: 0


Guests: 321


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits