WHMCS requires a setting on the MySQL or MariaDB server for the SQL Mode. To verify this, log into cPanel then go to phpMyAdmin and click on Variables on the right top side. Search for SQL Mode and see what entry is listed there. If you see something similar to:


Then this indicates you have SQL Strict mode enabled which prevents WHMCS from completing SQL queries and will not allow new entries to be added to the database table.

To change the mode on the server, you will need to SSH with root access to your server and edit your my.cnf file, located typically in the /root folder. Add the following entry to your my.cnf file:


If you already have a [mysqld] section, you can add the entry to that section. Then restart your mysqld service with service mysqld restart and verify the mode has cleared by going back into phpMyAdmin > Variables and refreshing the page to ensure the SQL MODE now reads


If making the change above doesn't work, there may be an additional file at /usr/my.cnf that needs to be edited. If there is a file there, and you find the sql-mode entry in that file, you can remove the line from the file, save the file and restart the mysqld service.

If you are unsure or unable to make this change, you will need to contact support to perform the work for you, as this is a server level configuration that they will need to address for you.

Cette réponse était-elle pertinente?

 Imprimer cet article

Consultez aussi

How to Backup MySQL Databases

This can be used to back up a database. 1. Export A MySQL Database This example shows you how to...

How to Find the IP of cPanel Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors....

Create Alias Domain in cPanel

This article outlines how to create an Alias Domain in cPanel Adding a Domain Alias To add a...

Locating php.ini file

A critical file you often need to manage is the php.ini file. It controls many import aspects of...

WHM Feature Manager

This interface allows you to edit feature lists, which you can assign to packages that you apply...