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 03-26-2010, 05:11 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Getting this 1054 Error in the ACP.

Quote:
Database error in vBulletin 3.8.5:
Invalid SQL:
SELECT SUM(filesize) AS size FROM attachment;
MySQL Error : Unknown column 'filesize' in 'field list'
Error Number : 1054
Request Date : Thursday, March 25th 2010 @ 04:09:47 PM
Error Date : Thursday, March 25th 2010 @ 04:09:47 PM
Script : http://blahblahblah/forum/admincp/index.php?do=home
Referrer : http://www.blahblahblah.com/forum/ad...dex.php?do=nav
IP Address : XXX.XXX.XXX.XXX
Username : XXXXXXXXX
Classname : vB_Database
MySQL Version : 5.0.89-community
Here's some background on what happened:

What happened was I was updating one website and had inadvertantly used the username, passwords, etc. from another site I own! After I noticed that the update stalled so I checked the PW, database name, etc and corrected them and that site's working fine. Now I am still getting the above error in the AdminCP from which I erroneously took the PW's from; the other site that I tried to update - the one that had the wrong passwords is fine! It's the site that I got the wrong PWs from that I'm having the problems with. Also I tried to reinstall VBulletin and I cannot get past step two when choosing to update; 404 Error. In the AdminCP I can access items from the CP but I cannot get the forum's listing or re-install VBulletin - 404 Error on step 3. Please help!!

TIA.
Reply With Quote
  #2  
Old 03-27-2010, 02:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what you did, but there is supposed to be a field called filesize in the attachment table. If you don't have it, then you need to add it.

Code:
filesize INT UNSIGNED NOT NULL DEFAULT '0'
Reply With Quote
  #3  
Old 03-27-2010, 03:07 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I'm not sure what you did, but there is supposed to be a field called filesize in the attachment table. If you don't have it, then you need to add it.

Code:
filesize INT UNSIGNED NOT NULL DEFAULT '0'
Where should I add it in the template? TIA.

On Edit:

I put it at the top of the template but it didn't work.
Reply With Quote
  #4  
Old 03-27-2010, 05:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is information for you to add the field in your database. You did something and it got deleted. You need to add it back. If you don't know how to do this, you may have to ask your host.
Reply With Quote
  #5  
Old 03-27-2010, 08:09 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
That is information for you to add the field in your database. You did something and it got deleted. You need to add it back. If you don't know how to do this, you may have to ask your host.

:up:

--------------- Added [DATE]1269727890[/DATE] at [TIME]1269727890[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
That is information for you to add the field in your database. You did something and it got deleted. You need to add it back. If you don't know how to do this, you may have to ask your host.
This is the error I got when I ran it:

Quote:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 'filesize INT UNSIGNED NOT NULL DEFAULT '0'' at line 1
Reply With Quote
  #6  
Old 04-02-2010, 12:39 AM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne. Did you want to make a few bucks and try to fix the DB problems?
Reply With Quote
  #7  
Old 04-02-2010, 01:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You cannot just run that one line since it doesn't have the table information in it. I thought you were just gonna add it manually through phpMyAdmin and that is the information needed for the field.
Reply With Quote
  #8  
Old 04-02-2010, 03:25 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You cannot just run that one line since it doesn't have the table information in it. I thought you were just gonna add it manually through phpMyAdmin and that is the information needed for the field.

It didn't work though. Is there a way to re-build/add the table info?
Reply With Quote
  #9  
Old 04-07-2010, 03:07 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You cannot just run that one line since it doesn't have the table information in it. I thought you were just gonna add it manually through phpMyAdmin and that is the information needed for the field.
Lynne, did you want to make a few bucks fixing the problem?
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 02:55 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.03984 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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