vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problem with PMs (https://vborg.vbsupport.ru/showthread.php?t=160570)

niiopps 10-19-2007 11:08 AM

Problem with PMs
 
This is what happens when i try to send a pm on my board..
Code:

Database error in vBulletin 3.6.8:

Invalid SQL:
INSERT INTO vb_pm (pmtextid, userid) VALUES (29, );

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Error Number : 1064
Date        : Friday, October 19th 2007 @ 08:04:51 PM
Script      : http://www.ijcalumni.net/forum/private.php?do=insertpm&pmid=
Referrer    : http://www.ijcalumni.net/forum/private.php?do=newpm
IP Address  : 116.15.40.67
Username    : weiqiang
Classname    : vb_database

Please help me..thanks.

Lynne 10-19-2007 03:45 PM

Did you recently install any Mods? Try disabling them and then see if your PMs work.

EnIgMa1234 10-19-2007 03:50 PM

The userid isn't getting added to the database. Its entering a blank option

E.g
You have:
VALUES (29, );

If you were entering userid 1 you would have:
VALUES (29, 1);

niiopps 10-20-2007 01:50 AM

I don't get it.I have two mods on my installation, namely,cyb adv stats, and something that displays the first post using ajax at forum mode.Its very strange...i did not do much of a mod to my templates nor my installation...

Chris M 10-20-2007 03:55 AM

You have obviously altered the Private Messaging system as this would not happen with a stock vBulletin or un-altered Private Messaging system...

Have a look through your plugins to see if any exist that shouldn't, and your templates to see if there are differences between the Default and your templates...

Chris

Marco van Herwaarden 10-20-2007 06:28 AM

To troubleshoot this, please remove any hacks and disable your plugins, then 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);

If so, 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.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.

niiopps 10-23-2007 05:22 AM

Okay, i tried it out, and realised that it seems to be some problems with the database, fetching the userid. I added users directly to the database, and seems like these users are experiencing the problem. ie, when a PM is sent to them, they can't be sent.
This doesn't happen to those who registered through the registration system.

What should i do?Seems like its some problems with the database.When i first added these users, i add the entries into both vb_user, vb_userfield only.

Marco van Herwaarden 10-23-2007 06:56 AM

Well that is the reason then. You should never add users in this way.

You can try to run the "Fix Broken Profiles" undr Maintenance in your AdminCP.

niiopps 10-23-2007 07:21 AM

hmm, there is no other ways to mass add quite a huge number of users (>500), I guess i missed out one of the tables to edit. Thanks so much. :)

Marco van Herwaarden 10-23-2007 07:25 AM

There are other ways:

- Use ImpEx textfile importer
- Use DataManagers to add a new user in your custom script.


All times are GMT. The time now is 11:12 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.01627 seconds
  • Memory Usage 1,724KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete