How to resolve the error 500, white screen and the "false errors" of WHMCS

The WHMCS security conceals PHP errors that could be displayed on the screen, not to reveal vulnerabilities of the system, so if you stumbled upon an error 500 or simply a "white screen" in some URL of your WHMCS, know that this is probably not the real error , you need to enable the display of errors in WHMCS and access the page again to preview the actual error.

Resolve the error 500, white screen and the "false errors" of WHMCS basically consists of enabling the display of PHP errors, to collect information that help in diagnosing error disguised error 500 or white screen.

Enable the display of errors in the dashboard of WHMCS

If the error you are experiencing is in the client area or other URL that does not compromise the administrative Panel's settings area.

Access Options > General Settings > Others, check the Display errors option and click Save Changes.
See in the following image where to find this option:


Enable error viewing via configuration. php

This option is recommended when the error commits all to the areas of WHMCS or the administrative area, preventing the activation of the display of errors by the control Panel.

Find in the root directory of your WHMCS the configuration. php file, open it in a text editor and add the variable $display _ errors = true; After the last line, before the closing tag?
The file will look similar to the following example:



Re-access the page with error and note the message at the top of the page.
After you resolve the error, for your system's security, remove the line $display _ errors = true;  Or make it a comment by adding two slashes (//) at the beginning of the line, so:

See the site of WHMCS (in English) more information about diagnosing errors:

If that article helped you or you have something to add to the post, leave your comment and don't forget the like =)

Leave a Comment

You must be logged in to post a comment.