vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Invalid SQL Data Base error on Admincp and forum (https://vborg.vbsupport.ru/showthread.php?t=286061)

Naijasite 07-29-2012 08:23 AM

Invalid SQL Data Base error on Admincp and forum
 
I have data base error on my admin panel and my website homepage.

Though i mistakenly uninstall a product and it's script that i download.

Please how do i fix this error some website can start working

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT languageid,
phrasegroup_global AS phrasegroup_global,
phrasegroup_posting AS phrasegroup_posting,
phrasegroup_postbit AS phrasegroup_postbit,
phrasegroup_showthread AS phrasegroup_showthread,
phrasegroup_inlinemod AS phrasegroup_inlinemod,
phrasegroup_reputationlevel AS phrasegroup_reputationlevel,
phrasegroup_bop5iframer AS phrasegroup_bop5iframer,
phrasegroup_user AS phrasegroup_user,
phrasegroupinfo AS lang_phrasegroupinfo,
options AS lang_options,
languagecode AS lang_code,
charset AS lang_charset,
locale AS lang_locale,
imagesoverride AS lang_imagesoverride,
dateoverride AS lang_dateoverride,
timeoverride AS lang_timeoverride,
registereddateoverride AS lang_registereddateoverride,
calformat1override AS lang_calformat1override,
calformat2override AS lang_calformat2override,
logdateoverride AS lang_logdateoverride,
decimalsep AS lang_decimalsep,
thousandsep AS lang_thousandsep
FROM language
WHERE languageid = 1;

MySQL Error : Unknown column 'phrasegroup_global' in 'field list'
Error Number : 1054
Request Date : Saturday, July 28th 2012 @ 09:58:36 PM
Error Date : Saturday, July 28th 2012 @ 09:58:36 PM
Script : http://www.naijafinder.com/nigeria-u...ic-season.html
Referrer :
IP Address : 74.125.78.82
Username :
Classname : vB_Database
MySQL Version :



i do not really take note of the prouct i uninstalled. At moment i can't login to my admincp and the forum is showing Database error.

Ho do i fix this error?????

I have also disable all plugin using this procedure but my forum and cpanel is still not work.

To disable the plugin/hook system completely without accessing the Admin CP options, you need to edit includes/config.php and add the following code:
define('DISABLE_HOOKS', true);

BirdOPrey5 07-29-2012 10:19 AM

The error says phrasegroup_global is missing from the language table in your database.

If it was deleted by an uninstall that is a pretty major problem. If you have a database backup from before this happened this may be a time to use it.

Naijasite 07-29-2012 10:23 AM

I do not have my Database backup. Please how do i resolve this issue to enable my forum to start working.

BirdOPrey5 07-29-2012 10:44 AM

I would think maybe if you manually add the column phrasegroup_global back to the language table.

type: MEDIUMTEXT

Then maybe you can rebuild the language/phrases in admin cp- it may work- never tested.

Naijasite 07-29-2012 11:04 AM

I just done that the error is still the same.
I tried to run the upgrade script of 4.2.0 though am already using 4.2.0

But it was showing me that i have already upgraded . And i might need to delete the selected tables of Vbulletin.

But i do not proceed because i do not want it to affect my database post and registered user.

Please any other solution?????

BirdOPrey5 07-29-2012 11:20 AM

Do NOT DELETE ANY TABLES UNDER ANY CIRCUMSTANCES.

If you did add the column back to the table you could not possibly get the same error- so check/try again because if you have the same error something went wrong.

Upgrade will not help.

Naijasite 07-29-2012 11:38 AM

I have done that the error is still the same.
I jus Run SQL query for: Unknown column 'phrasegroup_global' in 'field list'

Result

#1064 - 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 'Unknown column 'phrasegroup_global' in 'field list'' at line 1

Please regard to your previus post:
I would think maybe if you manually add the column phrasegroup_global back to the language table.

type: MEDIUMTEXT

Then maybe you can rebuild the language/phrases in admin cp- it may work- never tested.

I do not see any field to type in this :
type: MEDIUMTEXT

Please where do i insert it. Description please.

borbole 07-29-2012 11:40 AM

How exactly are you trying to run the query and what code are you using?

Naijasite 07-29-2012 11:49 AM

This is the new Database error am receiving on my email now
MySQL Error : Unknown column 'phrasegroup_posting' in 'field list'
Error Number : 1054

The code i use is: Unknown column 'phrasegroup_global' in 'field list'

borbole 07-29-2012 11:51 AM

Quote:

Originally Posted by felixkomo (Post 2352337)
This is the new Database error am receiving on my email now
MySQL Error : Unknown column 'phrasegroup_posting' in 'field list'
Error Number : 1054

The code i use is: Unknown column 'phrasegroup_global' in 'field list'


You are using it wrong. You should run the following code. Copy/paste it in the sql box in the phpmyadmin at the db that your forum resides on.

Code:

ALTER TABLE `language` ADD `phrasegroup_global` mediumtext;

If you use a custom prefix for your db tables, append it to the table name in the query above.

BirdOPrey5 07-29-2012 11:54 AM

You need to run this query:

Code:

ALTER TABLE  `language` ADD  `phrasegroup_global` MEDIUMTEXT NULL DEFAULT NULL AFTER  `thousandsep`
EDIT- borbole beat me to it. :up:

I included the code to put it in the same location it used to be even though there is probably no reason that is necessary.

Naijasite 07-29-2012 11:54 AM

I just did that this the result i got:
#1060 - Duplicate column name 'phrasegroup_global'

Quote:

Originally Posted by borbole (Post 2352339)
You are using it wrong. You should run the following code. Copy/paste it in the sql box in the phpmyadmin at the db that your forum resides on.

Code:

ALTER TABLE `language` ADD `phrasegroup_global` mediumtext;

If you use a custom prefix for your db tables, append it to the table name in the query above.


BirdOPrey5 07-29-2012 11:57 AM

Are you sure you are working the same database that your forum is running off of?

Naijasite 07-29-2012 12:03 PM

Yes is my forum Database.

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

any recommendation please...

BirdOPrey5 07-29-2012 12:13 PM

I'm stumped.

The error clearly says the column doesn't exist- at least from what vBulletin sees.

You MySQL error trying to run the ALTER command clearly says the column does exist.

And if you are sure it is the same database... I don't know what would cause this to happen.

Naijasite 07-29-2012 12:21 PM

thanks so much for trying to help. i have contacted vbulletin but no feedback from them yet.
Am stuck don't no what to do.

borbole 07-29-2012 12:22 PM

Indeed. The op is reporting conflicting messages. Make sure to run the query at the SQL box for the db that your forum with the db error resides on.

ozzy47 07-29-2012 12:35 PM

I can verify that it is indeed in there, here is a screenshot:

https://vborg.vbsupport.ru/

Naijasite 07-29-2012 12:38 PM

I just Run SQL query on SQL box, on my Forum SQL db where my forum reside.
ALTER TABLE `language` ADD `phrasegroup_global` mediumtext;

Result
#1060 - Duplicate column name 'phrasegroup_global'

Do you mind i pm you my login details so you could help resolve the problem?

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

wow thanks.. ok please help to correct the error.
Quote:

Originally Posted by ozzy47 (Post 2352366)
I can verify that it is indeed in there, here is a screenshot:

http://www.myfriendsspace.com/imageh...53beed336c.png


borbole 07-29-2012 12:44 PM

Quote:

Originally Posted by felixkomo (Post 2352368)
I just Run SQL query on SQL box, on my Forum SQL db where my forum reside.
ALTER TABLE `language` ADD `phrasegroup_global` mediumtext;

Result
#1060 - Duplicate column name 'phrasegroup_global'

Then the db error you posted doesn''t make much sense if it is reporting that field missing when in fact that field exists. That is if it is indeed in the right db.

But if you submitted a ticket at your vb customer area then wait until the vb staff can have a look and see what is really going on.


Quote:

Originally Posted by felixkomo (Post 2352368)

Do you mind i pm you my login details so you could help resolve the problem?

You can pm me the details but I provide paid services only.

BirdOPrey5 07-29-2012 12:48 PM

Is there any content in the phrasegroup_global field if you browse the table?

Naijasite 07-29-2012 12:49 PM

remebered i said this is the error message that is been sent to me now on my email.

MySQL Error : Unknown column 'phrasegroup_posting' in 'field list'
Error Number : 1054

BirdOPrey5 07-29-2012 12:51 PM

OK well that is not the same error then. Do the same to put back phrasegoup_posting...

Code:

ALTER TABLE  `language` ADD  `phrasegroup_posting` MEDIUMTEXT NULL DEFAULT NULL

ozzy47 07-29-2012 12:54 PM

I did that Joe, but still a db error, I am waiting for him to tell me what the new error is now.

Naijasite 07-29-2012 12:59 PM

1 Attachment(s)
I just pm you login details now.
Attached is the screenshot of my phrasegroup

Thanks.

Quote:

Originally Posted by BirdOPrey5 (Post 2352374)
Is there any content in the phrasegroup_global field if you browse the table?


BirdOPrey5 07-29-2012 12:59 PM

I know it is for "security' purposes but it is really annoying that the database error doesn't show anymore. :(

BirdOPrey5 07-29-2012 01:02 PM

Quote:

Originally Posted by felixkomo (Post 2352381)
I just pm you login details now.
Attached is the screenshot of my phrasegroup

Thanks.

The attachment you sent is not from the language table...

Who else do you have in your Admin CP/Cpanel? I don't want to log in if other people are in there making changes.

ozzy47 07-29-2012 01:02 PM

Yeah it used to make things alot simpler.

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

I will not do anything Joe if you are going to log in and look.

Naijasite 07-29-2012 01:03 PM

The current DB error is

MySQL Error : Unknown column 'language.phrasegroup_holiday' in 'field list'
Error Number : 1054
Request Date : Sunday, July 29th 2012 @ 10:02:22 AM
Error Date : Sunday, July 29th 2012 @ 10:02:22 AM

Ozzy47 : is login to the cpanel. But he just said (I will not do anything Joe if you are going to log in and look.)

Quote:

Originally Posted by ozzy47 (Post 2352379)
I did that Joe, but still a db error, I am waiting for him to tell me what the new error is now.


BirdOPrey5 07-29-2012 01:07 PM

From comparing it to my site there are literally dozens of phrase_groups missing.

Naijasite 07-29-2012 01:08 PM

current error:
MySQL Error : Unknown column 'phrasegroup_postbit' in 'field list'
Error Number : 1054
Request Date : Sunday, July 29th 2012 @ 10:07:17 AM
Error Date : Sunday, July 29th 2012 @ 10:07:17 AM

ozzy47 07-29-2012 01:09 PM

I don't see how that could have possibly happened from uninstalling any mod from his site.

Would it be possible to grab the phrase_groups from the vb install file and add all them back?

BirdOPrey5 07-29-2012 01:13 PM

It will take hours to add fields 1 by 1 waiting for you to say what the next database error is.

I suggest you start doing them yourself, 1 by 1, it is not difficult.

Each time you get a new error you just replace the phrasegroup_XXXX from the error into the ALTER statement:

Code:

ALTER TABLE  `language` ADD  `phrasegroup_XXXXX` MEDIUMTEXT NULL DEFAULT NULL

Naijasite 07-29-2012 01:13 PM

Do you mean i should upload my vb 4.2.0 files to my server?
Quote:

Originally Posted by ozzy47 (Post 2352392)
I don't see how that could have possibly happened from uninstalling any mod from his site.

Would it be possible to grab the phrase_groups from the vb install file and add all them back?


BirdOPrey5 07-29-2012 01:13 PM

And in the future this is why you ALWAYS NEED BACKUPS.

BirdOPrey5 07-29-2012 01:14 PM

Quote:

Originally Posted by felixkomo (Post 2352396)
Do you mean i should upload my vb 4.2.0 files to my server?

No, not what I meant. Not what ozzy meant either.

Naijasite 07-29-2012 01:14 PM

Ok thanks
i will update this Post on every error i received
current error:

MySQL Error : Unknown column 'phrasegroup_postbit'' in 'field list'
Error Number : 1054

BirdOPrey5 07-29-2012 01:17 PM

Ozzy- short of doing them 1 by 1 my next guess would be to export the language table from a working vbulletin install (structure only),

then change the name of his language table to like language_temp

Import the new language table...

And then see if you can rebuild languages.

If so he should be OK except for 3rd party mods (like mine) that add their own phrase groups, those would have to be uninstalled and re-installed or their phrasegroups added back manually.

But that is a lot of effort for something that may not even work.

ozzy47 07-29-2012 01:18 PM

Check now

Naijasite 07-29-2012 01:18 PM

Current DB error:
Invalid SQL:
SELECT phrasegroup_contenttypes AS contenttypes,phrasegroup_global AS global,phrasegroup_vbcms AS vbcms,phrasegroup_search AS search
FROM language
WHERE languageid = 1;

MySQL Error : Unknown column 'phrasegroup_contenttypes' in 'field list'
Error Number : 1054


All times are GMT. The time now is 03:15 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.02990 seconds
  • Memory Usage 1,829KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete