Guides & Tutorials7.2 Update TroubleshootingAn "Oops! Something went wrong" error after update

An "Oops! Something went wrong" error after update

New friendly error handling has been implemented in version 7.2 and above. Instead of displaying a blank page, users will now see a "Oops! Something went wrong" message on a templated page.

This error page (shown below) can be indicative of an error requiring a solution, or that the error reporting settings are configured too high for daily usage. Read on to learn how to check both.

WHMCS Error

If an error in the WHMCS software is causing this "Oops!" message, some of the most common causes are:

  • Missing or corrupted files / incomplete uploads
  • Server not meeting¬†minimum system requirements
  • PHP, Apache or Ioncube related errors
  • Incompatible hooks or addons
  • Syntax errors in custom modules, hooks or templates

Follow these steps to identify the underlying cause:

Navigate to Setup > General Settings

Select the Other tab and scroll down to the bottom of the page.

a. Tick the Display Errors option

OR

b. Tick the Log Errors option

Click Save Changes.

Now reload the page displaying the "Oops!" message.

  • If you chose option a, you will now see a stack trace showing the technical details of the error which is occurring.
  • If you chose option b, navigate to Utilities > Logs > Activity Log, where a stack trace showing the technical details of the error is recorded.

Once troubleshooting is completed, switch the Display Errors or Log Errors option off.

Elevated Error Reporting Levels - WHMCS

Navigate to Setup > General Settings

Select the Other tab and scroll down to the bottom of the page.

UNtick the Display Errors checkbox

Click Save Changes.

The Display Errors option might also be enabled in the configuration.php file. So it's worth checking there too.

Open the configuration.php file in your WHMCS directory on your server.

Look for the following lines of code and remove them if present:

$display_errors = E_ALL ^ E_NOTICE;
$display_errors = true;

Save the file and upload to the server.

Elevated Error Reporting Levels - Server

If the Display Error options are switched off and you're still seeing warning messages, it indicates the Error Reporting level in your server's PHP Configuration is too high. This is a PHP configuration level issue and therefore for shared or reseller users, may require the assistance of your web hosting provider.

If you have sufficient access and your server is configured to use WHM for administration, follow these steps:

In WHM navigate to Service Configuration >> PHP Configuration Editor >> Advanced

Scroll down to the error_reporting setting:

Change the value to:

E_ALL & ~E_WARNING & ~E_USER_WARNING & ~E_NOTICE & ~E_USER_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_USER_DEPRECATED

Click Save.