Get The Most Affordable Hosting in the World!

Starting at just $1.87/month, Vercaa offers unbeatable pricing for world-class web hosting services.

Fast, reliable, and secure hosting to power your website without breaking the bank. Plus, enjoy a free CDN for faster loading times worldwide!

Get Started Now!

Symptom

If none of the Admin Dashboard widgets are loading after you update WHMCS, there may be a problem with the table collation values.

Cause

To gather more information about the cause of the issue:

  1. Go to Configuration > System Settings > General Settings (Setup > General Settings prior to WHMCS 8.0) and choose the Other tab.
  2. Enable SQL Debug.
  3. Return to the Admin Dashboard. The problem will persist.
  4. Go to Configuration > System Logs (Utilities > Logs > Activity Log prior to WHMCS 8.0).
  5. Make a note of any MySQL® errors. For example:

    Smarty Error: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '=' (SQL: select count(tblorders.id) as aggregate from tblordersinner join tblorderstatuses on tblorders.status = tblorderstatuses.title where tblorderstatuses.showpending = 1)

    or

    Smarty Error: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' (SQL: select count(tblorders.id) as aggregate from tblordersinner join tblorderstatuses on tblorders.status = tblorderstatuses.title where tblorderstatuses.showpending = 1)

Solution

To resolve the error, edit the MySQL database structure to ensure that both the tables have the same collation setting.

Before you make changes to the database, you must back it up.

If, after you make these changes, the error persists, or if you are not comfortable making these changes to your WHMCS database, create a support ticket with technical support.

Examples

The examples below describe two possible scenarios for this issue.

Example 1

In this example, the following collation settings are different:

  • tblorders = latin1_general_ci
  • tblorderstatuses = latin1_swedish_ci

For success, these values must match.

To do this, you could run the following command against the database:

ALTER TABLE tblorderstatuses CONVERT TO CHARACTER SET latin1 COLLATE latin1_general_ci;
 

Example 2

In this example, the following collation settings are different:

  • tblorders = utf8_general_ci
  • tblorderstatuses = utf8_unicode_ci

For success, these values must match.

To do this, you could run the following command against the database:

ALTER TABLE tblorders CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
 
 
 
The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.
Was this answer helpful? 1 Users Found This Useful (1 Votes)

Powered by WHMCompleteSolution