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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2014, 05:47 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to change the collation Tables

When i invite Enter Email in Invite Field click submit rec error:

Code:
Invalid SQL:

			SELECT
				invite.email, invite.dateline,
				verified.verified,
				user.userid, user.username, user.usergroupid, user.infractiongroupid, user.displaygroupid, user.joindate, 
				actionuser_friend.relationid
			FROM dbtech_registration_invite AS invite
			LEFT JOIN dbtech_registration_email AS verified ON(invite.email = verified.email) AND verified = '1'
			LEFT JOIN user AS user ON(verified.email = user.email) AND user.userid != 1
			LEFT JOIN userlist AS actionuser_friend ON(actionuser_friend.userid = user.userid)
			WHERE invite.userid = 1
			GROUP BY invite.email
			ORDER BY invite.dateline DESC
			LIMIT 10;

MySQL Error   : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_general_ci,IMPLICIT) for operation '='
Error Number  : 1267
Request Date  : Wednesday, May 21st 2014 @ 12:38:36 AM
Error Date    : Wednesday, May 21st 2014 @ 12:38:37 AM
Script        : http://www.XXXXXXXXXX.com/registration.php?do=profile&action=invites
Referrer      : http://www.XXXXXXXXXXX.com/registration.php
IP Address    : 1**.1**.8.1**
Username      : M*****r
Classname     : vB*******se
MySQL Version : 5.1.73-cll
Quote:
DragonByte Tech:
This means you have changed the collation of certain DB tables but not your entire database, you will need to make sure all DBTech tables and their columns have the same collation as your vB tables.
Quote:
can you tell me How to change DB tables ? please
DragonByte Tech:
You should contact your host for instructions on how to change collation if you don't know how to do this yourself.
My server staff says:
let me know your exact db table and db name and the collation format you want to keep, I will check and try to do it,
Help please i think DBTech is busy i really need help
Reply With Quote
  #2  
Old 06-05-2014, 07:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You gave your server staff that error and that was their response?

Look at the user, and userlist tables.
Reply With Quote
  #3  
Old 06-05-2014, 08:45 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone explain please how to change via Phpmyadmin.
not entire only dbtec tables
i check all DbTech tables
Collation:latin1_swedish_ci
Reply With Quote
  #4  
Old 06-05-2014, 09:23 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Click on the database, then the table, then the Operations tab. There's a drop-down in the Table Options section for collation.
Reply With Quote
Благодарность от:
tanzeelniazi
  #5  
Old 06-06-2014, 08:13 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might be useful http://www.fractalizer.ru/frpost_162...-on-databases/
Reply With Quote
  #6  
Old 06-06-2014, 02:13 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
DragonByte Tech:
This means you have changed the collation of certain DB tables but not your entire database, you will need to make sure all DBTech tables and their columns have the same collation as your vB tables.
when i open my phpmyadmin i see all tables are showing same.
see My DBTECH Tables rows all is showing
dbtech_registration_action
dbtech_registration_criteria
dbtech_registration_email
dbtech_registration_field
dbtech_registration_instance
dbtech_registration_instance_action
dbtech_registration_instance_criteria
etc all is showing:latin1_swedish_ci
See Picture All dbtech_Registration same


After i check User
User is showing: latin1_general_ci
See this Picture


Now after i check Userlist showing same : latin1_general_ci
See pic


Now please tell me what i do ?
before Zachery says Change Collaction User and Uselist i see User and Userlist showing is latin1_general_ci if i change to latin1_swedish_ci can i loss anything like users etc ?
My english is not good please tell me what i do and i dont want to loose anything

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

1 more thing
dbtech_vbsecurity
dbtech_vbshout
dbtech_infopanels
dbtech_forumtabs
dbtech_vbactivity
are showing Collaction is : latin1_general_ci
but dbtech_registration is showing only Collaction is: latin1_swedish_ci ?

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

i change all dbtech_registration tables latin1_swedish_ci to latin1_general_ci
still error:
Code:
Database error in vBulletin 4.2.0:

Invalid SQL:

			SELECT
				invite.email, invite.dateline,
				verified.verified,
				user.userid, user.username, user.usergroupid, user.infractiongroupid, user.displaygroupid, user.joindate, 
				actionuser_friend.relationid
			FROM dbtech_registration_invite AS invite
			LEFT JOIN dbtech_registration_email AS verified ON(invite.email = verified.email) AND verified = '1'
			LEFT JOIN user AS user ON(verified.email = user.email) AND user.userid != 1
			LEFT JOIN userlist AS actionuser_friend ON(actionuser_friend.userid = user.userid)
			WHERE invite.userid = 1
			GROUP BY invite.email
		a	ORDER BY invite.dateline DESC
			LIMIT 10;

MySQL Error   : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin1_general_ci,IMPLICIT) for operation '='
Error Number  : 1267
Request Date  : Friday, June 6th 2014 @ 06:57:04 PM
Error Date    : Friday, June 6th 2014 @ 06:57:04 PM
Script        : http://www.************.com/registration.php?do=profile&action=invites
Referrer      : http://www.*************.com/usercp.php
IP Address    : 1********8.**5
Username      : *******r
Classname     : v*******e
MySQL Version : 5.1.73-cll
Reply With Quote
  #7  
Old 06-06-2014, 05:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

each column in the table, can also have a collation, also check any/all of the dbtech tables
Reply With Quote
2 благодарности(ей) от:
mathforum, tanzeelniazi
  #8  
Old 06-06-2014, 08:50 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zachery you are Great i change all tables 1 by 1 now working great
I have 1 question
I already close the registration and use Only Paid Registration when i invite someone he click the invited link he cant register he see Paid registration page why ?
any idea sir
i dont know why he redirect invite user to Subscription page
Reply With Quote
  #9  
Old 06-06-2014, 09:56 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to be registered to make a paid subscription.
Reply With Quote
  #10  
Old 06-06-2014, 10:01 PM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know sir if invite he automatically redirect to Paid Subscription page but i already use paid registration. I use invite system only for free but i cant success
i want to invited users to register free only how. ?
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:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04420 seconds
  • Memory Usage 2,270KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete