vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Database error (https://vborg.vbsupport.ru/showthread.php?t=174155)

baby41 03-25-2008 08:57 PM

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 :mad:, what can I do :confused:

Jase2 03-25-2008 09:20 PM

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 :)

baby41 03-25-2008 09:59 PM

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.:confused::confused:

Jase2 03-25-2008 10:06 PM

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 :)

snakes1100 03-25-2008 10:09 PM

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?

baby41 03-25-2008 10:17 PM

Quote:

Originally Posted by snakes1100 (Post 1474550)
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?

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.......:mad:

snakes1100 03-25-2008 10:21 PM

Hard to say, did you even check the db to see if the column is even there?

Marco van Herwaarden 03-26-2008 12:26 PM

Please use a tool like phpMyAdmin to see if the 'pm' & 'pmtext' tables exist and which columns they contain. Please post the results here.

Lynne 03-26-2008 02:50 PM

And maybe suggest to the admin that he create a test board for testing things instead of using the live database. :)

baby41 03-26-2008 08:15 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1474932)
Please use a tool like phpMyAdmin to see if the 'pm' & 'pmtext' tables exist and which columns they contain. Please post the results here.

Pm has this:


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


All times are GMT. The time now is 07:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01834 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete