Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Chewy in distress Details »»
Chewy in distress
Version: , by Ch3W Ch3W is offline
Developer Last Online: Feb 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-26-2003 Last Update: Never Installs: 0
 
No support by the author.

Hi all,

Oh I do hope somebody can help us :ermm:
My forums were working absolutely fine for a few weeks... and then all of a sudden something happened.
Ok here goes...

For some users... (not all) when they log into my forums they receive this message:
Quote:
There seems to have been a slight problem with the TalkBroadband Forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.
Now, an email is then dispatched to my webmaster email account that states:

Quote:
Database error in vBulletin 2.3.0:

Invalid SQL: SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Wednesday 26th of March 2003 08:34:06 PM
Script: http://www.talkbroadband.com/forums/index.php?
Referer:

Wanna hear something strange? If I try and search for users in the admin panel... it will not display any users that have the above problem when logging in.

Additional info:
I've ensured that these users exist on the database.
I've tried comparing the SQL values from one persons account to another and noticed nothing obvious.
I'm using vBulletin Version 2.3.0.
The vbulletin database was upgraded from xmb v1.11d some weeks back (note that it was working fine up until a couple days ago).

OH please help me anyone :cry:


Cheers,

Ch3W.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-26-2003, 06:36 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ch3W it seems to me that in the index.php the query that counts the actual pms the user has isn't getting the correct userid... anyway you can pm me the file and i'll take a look? the COUNT or SUM query should have $bbuserinfo[userid] i believe... hope that helps some...

regards,
g-force2k2
Reply With Quote
  #3  
Old 03-26-2003, 06:41 PM
Ch3W Ch3W is offline
 
Join Date: Oct 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for replying g-force.

I've pm'd you my index.php
Reply With Quote
  #4  
Old 03-26-2003, 07:31 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Wanna hear something strange? If I try and search for users in the admin panel... it will not display any users that have the above problem when logging in.
that looks like your userfield table isn't ok.
maybe your importscript didn't work correctly.
you have to syncronice your user and userfield table, searfch through the board, AFAIK someone has released a script.
Reply With Quote
  #5  
Old 03-26-2003, 07:40 PM
Ch3W Ch3W is offline
 
Join Date: Oct 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for reply.

The import worked fine for a couple of weeks.
Strange. :glasses:
Reply With Quote
  #6  
Old 03-27-2003, 02:17 PM
Ch3W Ch3W is offline
 
Join Date: Oct 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon,

Plain and simple.. YOU ROCK.

I've not found a hack that you refer to... but I guess it won't take long to write a script myself.

Cheers for your help .
Thanks also to g-force 2.
Reply With Quote
  #7  
Old 03-27-2003, 06:49 PM
Ch3W Ch3W is offline
 
Join Date: Oct 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I've created a script that synchronizes the user and userfield tables in vB v2.3.0.

If anybody else has had this fault... feel free to use this script
Attached Files
File Type: (21.4 KB, 7 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:12 PM.


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.04777 seconds
  • Memory Usage 2,275KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete