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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2010, 08:05 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Installing VB 4 with SQL Errors in 3.8.5. Can I install it anyways?

I've been having a lot of DB errors on VB 3.5.8. Also when attempting to reinstall VB 3.5 I get an "unable to find site" after clicking on "Upgrade" - step 3. I thought that one solution might be to install VB 4.0. Are these errors going to interfere with an upgrade?

In the ACP Index:

Quote:
Database error in vBulletin 3.8.5:
Invalid SQL:
SELECT COUNT(*) AS count
FROM attachment AS attachment
INNER JOIN post AS post USING (postid)
WHERE attachment.visible = 0;
MySQL Error : Unknown column 'postid' in 'from clause'
Error Number : 1054
Request Date : Tuesday, March 30th 2010 @ 03:42:38 PM
Error Date : Tuesday, March 30th 2010 @ 03:42:38 PM
Script : http://www.XXXXXXXXXXXXforum/admincp/index.php?do=home
Referrer : http://www.XXXXXXXXXX.com/forum/admi...dex.php?do=nav
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.89-community
This happens when clicking on a username:

Quote:
Database error in vBulletin 3.8.5:
Invalid SQL:
SELECT album.*,
picture.pictureid, picture.extension, picture.idhash, album.moderation,
picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height

FROM album AS album
LEFT JOIN picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)

WHERE album.userid = 17
AND album.state IN ('public', 'private', 'profile')


ORDER BY album.lastpicturedate DESC
LIMIT 2;
MySQL Error : Table 'XXXXXXXXXXXX.picture' doesn't exist
Error Number : 1146
Request Date : Tuesday, March 30th 2010 @ 03:52:20 PM
Error Date : Tuesday, March 30th 2010 @ 03:52:21 PM
Script : http://www.XXXXXXXX.com/forum/member.php?u=17
Referrer : http://www.XXXXXXXXXXXXXX.com/forum/...e&pp=50&page=1
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.89-community
This happens when clicking on one particular post:

Quote:
Database error in vBulletin 3.8.5:
Invalid SQL:
SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM attachment
LEFT JOIN attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1,9129,9131,9137,9148,9149,9150,9151,9174,9354,936 3,9401,9404,9485,9490,9495)
ORDER BY attachmentid;
MySQL Error : Unknown column 'extension' in 'from clause'
Error Number : 1054
Request Date : Tuesday, March 30th 2010 @ 03:55:47 PM
Error Date : Tuesday, March 30th 2010 @ 03:55:47 PM
Script : http://www.XXXXXXXXXX.com/forum/showthread.php?t=798
Referrer : http://www.XXXXXXXXXXXX.com/forum/forumdisplay.php?f=53
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.89-community
There are most likely more but they would be taking up board space. TIA.
Reply With Quote
  #2  
Old 03-30-2010, 08:25 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What were the most recent modifications you did to your forum prior to the issues popping up?

From the errors you posted it seems like you are missing a db table and and in the other error, that column doesn't exist in the table or maybe it is misspelled.
Reply With Quote
  #3  
Old 03-30-2010, 08:36 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
What were the most recent modifications you did to your forum prior to the issues popping up?

From the errors you posted it seems like you are missing a db table and and in the other error, that column doesn't exist in the table or maybe it is misspelled.
Actually what started it was I was updating another site and put in the PW an Username for another site. So I went back and corrected it - on the updated site - but then these errors started to occur from which I got the wrong PW and username. I tried to run some SQL commands but they didn't do any good.
Reply With Quote
  #4  
Old 03-30-2010, 08:44 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
Actually what started it was I was updating another site and put in the PW an Username for another site. So I went back and corrected it - on the updated site - but then these errors started to occur from which I got the wrong PW and username. I tried to run some SQL commands but they didn't do any good.
I can''t fully follow you, sorry. Can you please be a bit more detailed? It will help us in figuring out what might have caused the issue.

One word of advice if I may, don''t just run queries at the db, if you don''t know what you are doing, that is. It will make matters worse.
Reply With Quote
  #5  
Old 03-30-2010, 08:54 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
I can''t fully follow you, sorry. Can you please be a bit more detailed? It will help us in figuring out what might have caused the issue.
When updating I had inadvertantly used the username and pw from another site own to update another site I own. When I found the error in the password/username switch I put in the correct password/username into the config file everything worked in the updated site but the other site got messed up.

Just thinking, could have the VB 3.8.5 tables been messed up due to any "cross data" corruption


Quote:
One word of advice if I may, don''t just run queries at the db, if you don''t know what you are doing, that is. It will make matters worse.
I was told the commands by Lynne.
Reply With Quote
  #6  
Old 03-30-2010, 09:09 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
When updating I had inadvertantly used the username and pw from another site own to update another site I own. When I found the error in the password/username switch I put in the correct password/username into the config file everything worked in the updated site but the other site got messed up.

Just thinking, could have the VB 3.8.5 tables been messed up due to any "cross data" corruption




I was told the commands by Lynne.
Are you sure that only the db user/password was switched and not the db as well? Also did you double check that the switch back was done properly?

Try this. Create a new db user and password at the mysql area in the cp of your host, then assign this new user/password to the db where your forum with issues resides on and grant it full permission/access. Then update the config.php file with the new username/pasword. And see how it will go.

Also can you check if this table exists at your db? I mean the ones that is reporting as missing by Mysql error.

Code:
MySQL Error : Table 'XXXXXXXXXXXX.picture' doesn't exist
Ah ok then, regarding the queries. If Lynne told you what to run then you can''t go wrong on her advice. She knows her staff pretty well. But I thought that you were running the queries on your own, hence my advice above.
Reply With Quote
  #7  
Old 03-30-2010, 10:35 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
Are you sure that only the db user/password was switched and not the db as well? Also did you double check that the switch back was done properly?

Try this. Create a new db user and password at the mysql area in the cp of your host, then assign this new user/password to the db where your forum with issues resides on and grant it full permission/access. Then update the config.php file with the new username/pasword. And see how it will go.

Also can you check if this table exists at your db? I mean the ones that is reporting as missing by Mysql error.

Code:
MySQL Error : Table 'XXXXXXXXXXXX.picture' doesn't exist
Ah ok then, regarding the queries. If Lynne told you what to run then you can''t go wrong on her advice. She knows her staff pretty well. But I thought that you were running the queries on your own, hence my advice above.

Didn't work.

Thanks! But can we get back to if whether or not I can install VB 4?
Reply With Quote
  #8  
Old 03-31-2010, 10:36 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
Didn't work.

Thanks! But can we get back to if whether or not I can install VB 4?
Do you mean install or upgrade? If you meant upgrading your forum I don''t think it will work on the current database with all those errors. Hence my suggestions to try and fix the errors first.

But if you want, make a backup of the db in the current state and restore it at your test forum and try to do an upgrade there and hope for a miracle.

How about the table that is reporting as missing in the mysql error, did you check it at the db if it is there or it is really missing? Also make a full inventry for all the other tables.

Or another easy way would be to restore your most recent backup and then upgrade to vb 4. But all the topics, posts, members etc made from the time of that backup and onwards will be lost.
Reply With Quote
  #9  
Old 04-09-2010, 09:37 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
Do you mean install or upgrade? If you meant upgrading your forum I don''t think it will work on the current database with all those errors. Hence my suggestions to try and fix the errors first.

But if you want, make a backup of the db in the current state and restore it at your test forum and try to do an upgrade there and hope for a miracle.

How about the table that is reporting as missing in the mysql error, did you check it at the db if it is there or it is really missing? Also make a full inventry for all the other tables.

Or another easy way would be to restore your most recent backup and then upgrade to vb 4. But all the topics, posts, members etc made from the time of that backup and onwards will be lost.
Did you want to give it a try. How much would you charge? PM me.
Reply With Quote
  #10  
Old 04-09-2010, 11:22 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
Did you want to give it a try. How much would you charge? PM me.
If you are offering money to have this fixed, then I think it would be best posted here:

https://vborg.vbsupport.ru/forumdisplay.php?f=30

P.s. you didn''t answer my question about the table that is reporting as missing in the mysql error, did you check it at the db if it is there or it is really missing?

P.p.s. Do you have a recent backup from before those errors popped up?
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 08:00 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.04221 seconds
  • Memory Usage 2,272KB
  • 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
  • (2)bbcode_code
  • (12)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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