Please refer to the following article to enable PHP error reporting in cPanel
1. Log in to your cPanel.
2. Inside Software, Go to Select PHP Version.
3. Click on the Options button.
4. At PHP Options, select E_ALL to enable PHP error reporting.