error on registration : Illegal mix of collations

7 years 4 months ago #289704 by tto
Hello,

One of my users reported this error on registration:

1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '=' SQL=SELECT u.`id` FROM `#__comprofiler` AS c INNER JOIN `#__users` AS u ON u.`id` = c.`id` WHERE ( u.`username` = 'الجوري22' OR c.`alias` = 'الجوري22' ) LIMIT 0, 1


What can I do ?

thanks,

Regards,

Tariq

Please Log in to join the conversation.

7 years 4 months ago #289737 by krileon
Your issue is as the error states. You've 2 different collations in your database. One is set to latin1_swedish_ci and the other is set to utf8mb4_general_ci. Edit your database and change the collation for all tables to be utf8mb4_general_ci. This can be done table by table by clicking a table then changing it under the Operations tab or by database by navigating to a database then by changing it also under the Operations tab.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: tto

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.657 seconds

Facebook Twitter LinkedIn