Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2004, 09:40 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default confusing MySQL Error number 1054

Hi There,

We've changed servers a week or so ago. I have seen this error emailed to me twice:
Quote:
Database error in vBulletin 3.0.3:
Invalid SQL:
UPDATE user
SET posts = posts + Array
WHERE userid = 0

mysql error: Unknown column 'Array' in 'field list'
mysql error number: 1054
Date: Thursday 09th of December 2004 05:00:03 PM
Script: http://
Referer:
Username: Unregistered
IP Address:
Can anyone tell me what this means? I see the scriptname is mostly blank. does that mean it is a mod like photopost or something nonVB generating the error? Does the fact that the username shows as unregistered mean anything?

Hmmm. Maybe it is that port of Ryangel's journal? It never gave this error before, but it seems to be some unnamed script somewhere.

It's confusing
Reply With Quote
  #2  
Old 01-06-2005, 07:23 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any help please? I have been getting this error and the corresponding email about four times a day and I would love to get rid of it. Even a suggestion at what I might do to help debug it would be helpful.

I have these hacks installed:

vbjournal
photopost_classifieds
photopost_gallery
vbadvanced_CMPS

Many thanks,

Matt
Reply With Quote
  #3  
Old 01-06-2005, 08:14 AM
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You gotta give more details. WHEN do you get the error? In what script?
Reply With Quote
  #4  
Old 01-06-2005, 09:38 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The error is emailed to me by the server. I never actually "get it". It happens usually twice a day, sometimes 4x. That's the actual email message that I included in the first post. The error is always the same. The script is not identified, which makes me think it is probably a non-VB error. I think it is probably some Photopost thing.

Regards,

Matt
Reply With Quote
  #5  
Old 01-06-2005, 11:49 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by memobug
Database error in vBulletin 3.0.3:
Invalid SQL:
UPDATE user
SET posts = posts + Array
WHERE userid = 0

mysql error: Unknown column 'Array' in 'field list'
mysql error number: 1054
Date: Thursday 09th of December 2004 05:00:03 PM
Script: http://
Referer:
Username: Unregistered
IP Address:
that's the incorrect thingy.

You should search for those hack this string: "user
SET posts = posts +" , the value 'Array' should be a number but it doesn't set properly.

I don't understand why the error appears on no file !?!
Reply With Quote
  #6  
Old 01-06-2005, 07:24 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi deathemperor,

I don't know what you mean by "incorrect," but it does look bizarre, which makes me think it is not a vb script, but a hack or something that does not set $THISSCRIPT or whatever to make the Script field appear.

Photopost does increment /decrement user post count when they add or delete a comment. They deny it is their thing becuase they don't email errors.

[UPDATE] I am going to look at journals.php now.
Nope, journals doesn't increment or decrement "posts" on entry or comment

Regards,

Matt
Reply With Quote
  #7  
Old 01-07-2005, 05:19 PM
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a program called editplus2 which has a very handy "search in files" function. You could use that to track down the script that's creating the problems.
Reply With Quote
  #8  
Old 01-08-2005, 05:24 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by memobug
Hi deathemperor,

I don't know what you mean by "incorrect," but it does look bizarre, which makes me think it is not a vb script, but a hack or something that does not set $THISSCRIPT or whatever to make the Script field appear.

Photopost does increment /decrement user post count when they add or delete a comment. They deny it is their thing becuase they don't email errors.
The incorrect thing I mentioned was for the yellow 'Array' in my quote. it showed up 'Array' probally because that varible is an array like but instead of calling it like $array['value'] they just added $array.

However I'm not sure about this, it's just one possible chance.
Reply With Quote
  #9  
Old 01-08-2005, 05:10 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it is the articlebot hack. I found that the errors might coincide with the cron, and there is this in articlebot.php
Code:
if (is_array($users))
        {
            foreach ($users as $userid => $user_posts)
            {
                /* +---------------------------------+
                   | Query: update article bot(s)    |
                   +---------------------------------+ */


                $DB_site->query("
                    UPDATE ".TABLE_PREFIX."user
                    SET posts = posts + $user_posts
                    WHERE userid = $userid
                ");
            }
        }
Thanks for the help. I will follow up in the articlebot thread.

Regards,

Matt
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 07:13 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.03831 seconds
  • Memory Usage 2,239KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete