Log in

View Full Version : Private message problem.. Showing Database Error


sebil
01-23-2009, 03:28 PM
Whenever i m trying to pm any memebrs in my forum it showing data base error

Database error in vBulletin 3.7.4:

Invalid SQL:
INSERT INTO pm (pmtextid, userid, parentpmid) VALUES (11241, 9266, 0);

MySQL Error : Unknown column 'parentpmid' in 'field list'
Error Number : 1054
Request Date : Friday, January 23rd 2009 @ 05:15:21 PM
Error Date : Friday, January 23rd 2009 @ 05:15:21 PM
Script : http://www.malludreams.com/forum/private.php?do=insertpm&pmid=
Referrer : http://www.malludreams.com/forum/private.php?do=newpm&u=9266
IP Address : 86.144.92.18
Username : MalluDreams
Classname : vB_Database
MySQL Version : 5.0.67-community

Could any one tell me what is the problem

Lynne
01-23-2009, 04:23 PM
Try disabling your plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

I am pretty sure that colun, parentpmid, was added in 3.8 and you are running 3.7, so it may be that you installed a modification for 3.8 which won't work.

GhoHan
01-23-2009, 04:59 PM
Whenever i m trying to pm any memebrs in my forum it showing data base error



Could any one tell me what is the problem

You may try this trick
just disable it
please open file ../includes/class_dm_user.php
find on line 2900
this below code:

($hook = vBulletinHook::fetch_hook("private_insertpm_complete")) ? eval($hook) : false;


and add // befor that code like this:

// ($hook = vBulletinHook::fetch_hook("private_insertpm_complete")) ? eval($hook) : false;


Save and please try again. :)

sebil
01-23-2009, 05:48 PM
Thanks a lot guys for your help..
i got 3.8.0 uploaed in my server but it didnt worked properly.. so i backuped my database.. but didnt remove the 3.8.0 files from server.. because after back up it seems work perfectlyy..

so, shall i just uplaod 3.7.4 files to my server now?

what is the best way ?

Lynne
01-23-2009, 06:31 PM
It looks like if you tried to upgrade to 3.8.0, that you never ran the upgrade script which is what upgrades your database to 3.8.0. Your database is still only upgraded to version 3.7.4.

Do NOT just remove the hook like the person above your post suggested. That may cause problems for other modifications you have running just fine.

Mike-D
01-23-2009, 06:43 PM
You may try this trick
just disable it
please open file ../includes/class_dm_user.php
find on line 2900
this below code:


and add // befor that code like this:


Save and please try again. :)Sorry to mention it, but your way is not highly recommended!!! Editing PHP's nor removing the most important $Hooks are no solutions for this. The way like Lynne mentioned is the way you have to go :)

sebil
01-23-2009, 06:56 PM
What really happened is..
i tried to upgrade to 3.8.0 and runned the upgrade script.. but the forum home page didnt woked
it showed me some error message
when i showed that vb support team they said it beacsue of vbseo.. and i contacted vbseo.. but it otook a long time .. so i had a back up i just back uped it.. still i got vb 3.8.0 files in sever

what is the best way to resolve it?

Mike-D
01-23-2009, 08:19 PM
Well, if I'm not mistaken I'd start the Update without vBSEO. After I'd get in touch with vBSEO to get a fix ;)

sebil
01-23-2009, 09:11 PM
so now my site is working with not many problems...

shall i delet all the vbseo files uploaded and installed and try upgrading to 3.8.0?

is that a good choice?

Lynne
01-23-2009, 09:22 PM
There was some problem in vbseo when you upgraded to 3.7.5 or 3.8.0 but a fix was posted. Is that the problem you were having?

If you have a database that is for 3.7.4, then you should put the 3.7.4 files onto the server or else you will have issues like the one in this thread.

Dismounted
01-24-2009, 03:12 AM
If you upload files for a newer version, you must run the upgrade script. Things will break if you don't.

sebil
01-28-2009, 10:33 AM
Thanks guys for your help.. its fixed.. :)

using 3.7.4 now.. not upgraded yet

alencete
08-15-2011, 12:57 AM
Work in 4.1.5!!!!!!!! Thanks!