User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,709 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,378 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2956 | Replies: 2
Reply
Join Date: Aug 2004
Posts: 212
Reputation: hexstar is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
hexstar hexstar is offline Offline
Posting Whiz in Training

Invision Power Board mysql error when trying to view newly created forums

  #1  
Dec 3rd, 2004
Well first some background, this hasn't happened before but last night I had some trouble installing a shoutbox mod so I undid all the steps I had performed I have also installed a search engine friendly mod successfuly which makes php links html links even though I know ipb supposedly has such a feature built in but this supposedly helps with getting the forum indexed in a search engine even more and this mod never caused this problem so I suspect something happened when I tried installing the shoutbox mod and I backtraced my steps undoing each one as I went. The error I get is:

There appears to be an error with the database.
You can try to refresh the page by clicking here.

Error Returned

mySQL query error: SELECT t.topic_id, t.pid, p.post FROM ibf_posts t LEFT JOIN ibf_posts p ON (p.pid=t.pid) WHERE t.topic_id IN () AND t.new_topic=1 AND t.queued=0

mySQL error: You have an error in your SQL syntax near ') AND t.new_topic=1 AND t.queued=0' at line 1
mySQL error code:
Date: Friday 03rd of December 2004 08:08:51 AM

We apologise for any inconvenience

and only happens with two staff only forums which as such I'm reluctant to link to and one public forum which can be found here: http://www.johnscompany.net/gamerzdr...rself-f36.html - any ideas on where this error is and if so how I can fix it? Any help is greatly appreciated.

Thanks!

P.S. The shoutbox mod I attempted to install is: http://mods.invisionize.com/db/index.php/f/3305
The Digital Freeway, professional paid hosting starting at just $10 a month, 5GB disk space and 15GB bandwidth, we have free hosting too and all accounts are instantly activated
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2004
Posts: 3
Reputation: Shorty is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Shorty Shorty is offline Offline
Newbie Poster

Re: Invision Power Board mysql error when trying to view newly created forums

  #2  
Dec 5th, 2004
You have broken some PHP somewhere as the below part of the SQL statement:
[php]
t.topic_id IN ()
[/php]

should not be blank when submitted to MySQL.

Id suggest reuploading the original files you edited and starting again with any hacks
Reply With Quote  
Join Date: Aug 2004
Posts: 212
Reputation: hexstar is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
hexstar hexstar is offline Offline
Posting Whiz in Training

Re: Invision Power Board mysql error when trying to view newly created forums

  #3  
Dec 5th, 2004
ahh thanks for the tip, turns out that it's a bug from a mod I installed which shows a preview of the thread when you hover over its link, that error occurs whenever a forum's empty and the mod's installed
The Digital Freeway, professional paid hosting starting at just $10 a month, 5GB disk space and 15GB bandwidth, we have free hosting too and all accounts are instantly activated
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC