1 (edited by mishurs 2007-02-01 15:33)

Topic: Error: Pointing to Wrong Database

Hi All,

My forum all of a sudden exploded...well not really, but sorta tongue  I haven't changed anything since it was last working, and I checked the config.php and it still points to the proper database (nextleve_punbb).  Can anyone point me in the right direction?  I can provide more info to accompany below, if required.

An error was encountered
File: /home/nextleve/punbb/viewtopic.php
Line: 439

PunBB reported: Unable to update topic

Database reported: Table 'nextleve_dkp.epupunbb_topics' doesn't exist (Errno: 1146)

I realize that 'nextleve_dkp.epupunbb_topics' doesn't exist, because the table is actually in the database 'nextleve_punbb'.  I find the problem super strange because the error is only occuring on the index.php, viewtopic.php and a few others.  But then it has no problem fetching for the forum.php or viewforum.php.

For instance, I click on messages and message_list.php works ok, but as I click on an actual message, I get the following:

File: /home/nextleve/punbb/message_list.php
Line: 313

PunBB reported: Unable to fetch messages list for forum

Database reported: Table 'nextleve_dkp.epupunbb_messages' doesn't exist (Errno: 1146)

Re: Error: Pointing to Wrong Database

well with regard to viewtopic.php...it seemed like it was only the UPDATE statement that was crapping out (the one that adds to the # of topic views)....once I comment that out, it seems to work ok

why would SELECTs (showing proper topics, messages, etc) work and know to pull from teh proper database but not UPDATE?  im sure i'll keep looking, but I feel no closer to the answer