White screen on front page only
To make sure that the index.php will be loaded first add the following line to your .htaccess: DirectoryIndex index.php index.html This tells Apache to ignore an index.html if an index.php exists.
To make sure that the index.php will be loaded first add the following line to your .htaccess: DirectoryIndex index.php index.html This tells Apache to ignore an index.html if an index.php exists.
I’m not seeing the original snippet from before so I’m not sure of the context anymore. The undefined index notice you are getting is telling you that $_POST[‘remove_field’] does not exist. If no checkbox in your array was set, the $_POST array will not have an index for ‘remove_field’, and you’ll see the error. To … Read more
I believe that this line ini_set(‘error_reporting’, E_ALL ); will override other error settings. Will display all errors, even ‘benign’ ones, to the screen and error log file.
Wordress debug log is not working
After days of struggle to enable debugging, I switched to MAMP free version which was a cakewalk. For Step by step guide please follow this blog by Josh Buchea. Has a detailed walkthrough. Hope this helps someone stuck on Mac with Xampp-VM like i did. Switch to MAMP free version. Happy coding WordPress PHP
PHP-FPM WordPress Debug
You said you added the code in front of the file. In the wp-config.php I’m working with there’s this line towards the end: define(‘WP_DEBUG’, false); if your config file sets it to true first and then to false the problem could be that the last entry wins.
(I am allowed to answer but I am not allowed to comment, so, yeah.) Have you made any changes to the .htaccess or added any .htaccess files? EDIT: We might need more information than that. First: Have a look here how to use WP_DEBUG: https://wordpress.org/support/article/debugging-in-wordpress/. Have a look inside wp-config.php, there is a line define( … Read more
WP_DEBUG must be on, otherwise edit post or page will show 404 error
Alternatively you can create a debug logging file for where you can read the errors. Source: http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Log /** * This will log all errors notices and warnings to a file called debug.log in * wp-content (if Apache does not have write permission, you may need to create * the file first and set the appropriate … Read more