The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Database error
Yesterday I got this error when I try to send a Pm:
Database error in vBulletin 3.6.8: Invalid SQL: SELECT COUNT(*) AS total, folderid FROM pm AS pm LEFT JOIN pmtext AS pmtext USING(pmtextid) WHERE userid = 556 GROUP BY folderid; MySQL Error : Unknown column 'pmtextid' in 'from clause' Error Number : 1054 Date : Tuesday, March 25th 2008 @ 03:49:28 PM Script : hxxp://www.xxxxxxxxx.com/forum/private.php?do=newpm&u=2 Referrer : hxxp://www.xxxxxxxxx.com/forum/member.php?u=2 IP Address : 91.xx.xx.xxx Username : xxxxxxxxx Classname : vb_database And to make it worse I had a virus at my PC last week and lost all my files including a backup of my database , what can I do |
#2
|
|||
|
|||
To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':
Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions [Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.] Next, disable all plugins. Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php define('DISABLE_HOOKS', true); Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it. Do you have the same problem? Regards Jason |
#3
|
|||
|
|||
Thanks for your prompt reply,I have done all of the above and still have the same error when I try to send a PM.
|
#4
|
|||
|
|||
I think your PM table may have crashed. To fix it, run Repair/Optimize in the Admin CP. You may need to run it more than once to fix all errors:
Admin CP -> Import & Maintenance -> Repair/Optimize Tables -> Check All -> Continue Regards Jason |
#5
|
|||
|
|||
It didnt crash, read the error msg.
MySQL Error : Unknown column 'pmtextid' in 'from clause' Did you just install or un-install a hack before this started? |
#6
|
|||
|
|||
No I didn?t install or n-install any hack but when talking with another Admin he told that was using the forum database for a test to a youtube clone installed in our server,do yo think it might be that,and what to do now.......
|
#7
|
|||
|
|||
Hard to say, did you even check the db to see if the column is even there?
|
#8
|
|||
|
|||
Please use a tool like phpMyAdmin to see if the 'pm' & 'pmtext' tables exist and which columns they contain. Please post the results here.
|
#9
|
||||
|
||||
And maybe suggest to the admin that he create a test board for testing things instead of using the live database.
|
#10
|
|||
|
|||
Quote:
pm_id subject body sender receiver date seen inbox_track outbox_track Pmtext has this: pmtextid fromuserid fromusername title message touserarray iconid dateline showsignature allowsmilie |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|