vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Private message problem.. Showing Database Error (https://vborg.vbsupport.ru/showthread.php?t=202831)

sebil 01-23-2009 03:28 PM

Private message problem.. Showing Database Error
 
Whenever i m trying to pm any memebrs in my forum it showing data base error

Quote:

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/pri...insertpm&pmid=
Referrer : http://www.malludreams.com/forum/pri...o=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

PHP Code:

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

Quote:

Originally Posted by sebil (Post 1722468)
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:
Quote:

($hook = vBulletinHook::fetch_hook("private_insertpm_comple te")) ? eval($hook) : false;
and add // befor that code like this:
Quote:

// ($hook = vBulletinHook::fetch_hook("private_insertpm_comple te")) ? 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

Quote:

Originally Posted by i-comers.com (Post 1722532)
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.


All times are GMT. The time now is 06:29 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.01040 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (5)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