To change the display_errors setting to 0 in WordPress
1. Access your WordPress Dashboard:
Log into your WordPress website’s admin area.
2. Navigate to the “General” Settings:
Go to Settings > General.
3. Locate the “WordPress Address” and “Site Address” fields:
Scroll down to the bottom of the page.
4. Change the “WordPress Address” and “Site Address” fields:
Replace the current URLs with your actual website address. This ensures that WordPress knows the correct location of your website.
5. Save the Changes:
Click the Save Changes button at the bottom of the page.
6. Check for errors:
Refresh your website and check if the “Save has failed” error persists. If it does, proceed to the next step.
7. Access your wp-config.php file:
Use file manager to access the wp-config.php file in your WordPress installation’s root directory.
8. Edit the wp-config.php file:
Open the wp-config.php file in a text editor.
9. Locate the define(‘WP_DEBUG’, true); Line:
If this line exists, comment it out by adding a double slash (//) before it.
10. Add the define(‘WP_DEBUG_DISPLAY’, false); Line:
Add this line to the wp-config.php file. This will prevent PHP errors from being displayed on the frontend of your website.
11. Save the wp-config.php file: