If you need to debug PHP errors in WordPress, it can really help to display them for a start. You can do this by calling the ini_set() function to display your PHP errors.
1 answers
1
Displaying PHP errors In WordPress
To display your PHP errors in WordPress, you need to call an ini_set() function in your WordPress theme’s functions.php file.
- Navigate to Appearance > Editor > Theme Functions from your WordPress Dashboard;
- Copy and paste the code below;
- Click Update File to save the changes.
ini_set( 'display_errors', 1 );
— Support WizardAnswer 1