Please refer to the following article to enable PHP error reporting in cPanel
Step 1: Log in to your cPanel.
Step 2: Inside Software, Go to Select PHP Version.

Step 3: Click on the Options button.

Step 4: At PHP Options, select E_ALL to enable PHP error reporting.

