Posted: November 16, 2023 at 1:43 pm
Hello, Is this a DB configuration issue or other, please advise. thanks, Walt A RuntimeException was thrown! code: EE_Admin_Page – _route_admin_request – 1156 Notice: WPDB Error “Illegal mix of collations (utf8mb4_unicode_520_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation ‘='” while running wpdb method “get_results” with arguments [“SELECT Currency.CUR_code AS ‘Currency.CUR_code’, Currency.CUR_single AS ‘Currency.CUR_single’, Currency.CUR_plural AS ‘Currency.CUR_plural’, Currency.CUR_sign AS ‘Currency.CUR_sign’, Currency.CUR_dec_plc AS ‘Currency.CUR_dec_plc’, Currency.CUR_active AS ‘Currency.CUR_active’, Currency_Payment_Method.CPM_ID AS ‘Currency_Payment_Method.CPM_ID’, Currency_Payment_Method.CUR_code AS ‘Currency_Payment_Method.CUR_code’, Currency_Payment_Method.PMD_ID AS ‘Currency_Payment_Method.PMD_ID’, Payment_Method.PMD_ID AS ‘Payment_Method.PMD_ID’, Payment_Method.PMD_type AS ‘Payment_Method.PMD_type’, Payment_Method.PMD_name AS ‘Payment_Method.PMD_name’, Payment_Method.PMD_desc AS ‘Payment_Method.PMD_desc’, Payment_Method.PMD_admin_name AS ‘Payment_Method.PMD_admin_name’, Payment_Method.PMD_admin_desc AS ‘Payment_Method.PMD_admin_desc’, Payment_Method.PMD_slug AS ‘Payment_Method.PMD_slug’, Payment_Method.PMD_order AS ‘Payment_Method.PMD_order’, Payment_Method.PMD_debug_mode AS ‘Payment_Method.PMD_debug_mode’, Payment_Method.PMD_wp_user AS ‘Payment_Method.PMD_wp_user’, Payment_Method.PMD_open_by_default AS ‘Payment_Method.PMD_open_by_default’, Payment_Method.PMD_button_url AS ‘Payment_Method.PMD_button_url’, Payment_Method.PMD_scope AS ‘Payment_Method.PMD_scope’ FROM wp_esp_currency AS Currency \n LEFT JOIN wp_esp_currency_payment_method AS Currency_Payment_Method \n ON Currency_Payment_Method.CUR_code=Currency.CUR_code \n LEFT JOIN wp_esp_payment_method AS Payment_Method \n ON Payment_Method.PMD_ID=Currency_Payment_Method.PMD_ID WHERE Payment_Method.PMD_ID = 10″,”ARRAY_A”]. Automatically attempting to fix EE Core DB in /www/calthoracic2_926/public/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php on line 2521 Notice: WPDB AGAIN: Error “Illegal mix of collations (utf8mb4_unicode_520_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation ‘='” while running the same method and arguments as before. Automatically attempting to fix EE Addons DB in /www/calthoracic2_926/public/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php on line 2521 |
|
fyi – running the query results in the following: Error Code: 1267. Illegal mix of collations (utf8mb4_unicode_520_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation ‘=’ SELECT |
|
fyi – running the query against the backend results in the following: Error Code: 1267. Illegal mix of collations (utf8mb4_unicode_520_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation ‘=’ Normally I would try and fix/update the query w a COLLATE clause but the query is coming from EE code. Do I have to alter the tables? please advise, Walt |
|
fyi – adding COLLATE resolves the error FROM |
|
Hi there, Whilst EE’s query is showing the symptom the problem is you have mixed collations within the DB. The tale needs to be updated to use the ‘correct’ colation and the easiest way to do that is using a plugin like this: https://wordpress.org/plugins/database-collation-fix/ Or, (based on your replies) it sounds like you are comfortable enough working within the DB so you could alter the table manually. |
|
Tony, That said, make the all relevant tables collation to utf8mb4_unicode_ci? current table collation: meaning alter wp_esp_currency_payment_method to utf8mb4_unicode_ci? thanks, Walt |
|
Correct, EE creates the table on the fly but we use:
So the table will use whatever collection is set to be used at that time.
Correct. |
|
Tony, thanks for your reply and confirmation!! |
|
You’re most welcome. Did the above work as expected? |
|
The support post ‘Payment Methods: Authorize.net AIM settings – error accessing page’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.