This error can occur if the version of the WHMCS database doesn’t match the version of its release files.
For example, the files uploaded might be for version 4.4, but database hasn’t been updated and is still in version 4.3.
The files to perform database upgrade are present in the WHMCS “install” directory.
We’ve seen customers upgrade WHMCS without running the “install.php” script in the install directory.
As a result WHMCS database hasn’t been fully upgraded or not upgraded at all.
Result is “Down for Maintenance” error all the time.
How we fix?
i) First, we look at the WHMCS core files like init.php and cart.php and check the version number.
ii) We, then compare the version number to the WHMCS database version from the tblconfiguration table using the below command.
SELECT value FROM tblconfiguration WHERE setting = 'version'";
iii) If the database is from a newer version than the PHP files, we’ll download and upload the full release files of the newer version from WHMCS official site.
iv) If the PHP files are from a newer version than the database, we’ll upload the /install folder and run the upgrade process once again.
v) Once the upgrade is complete, we remove the /install folder from the server.
That’s it. Everything should be working now!!
WHMCS upgrades are necessary to keep the system secure. Sometimes, the WHMCS database version conflicts with the release files version and result in errors like “Down for Maintenance“. Today, we’ve discussed how our Support Engineers fix this problem.