How to hook into debug.log?

WordPress tells PHP, using ini_set(), in wp_debug_mode() which errors should be handled and which file they should be written to. The function is called in wp-settings.php when WP is starting up. As suggested by David in How to catch all PHP errors with custom error handler? answers you could use PHP’s set_error_handler() to define a … Read more

Fatal error on random blog posts

Pretty simple. comments.php is trying to call a function twentyseventeen_get_svg() which doesn’t exist: Uncaught Error: Call to undefined function You’ll probably need to contact the theme developer or, just find the part of the code in comments.php (line 88) that calls the function and comment it out. Looks like that function comes with the theme … Read more

WordPress returns empty page

the site seems to be infected by malware: https://sitecheck.sucuri.net/results/https/webscraping.pro which could explain the issues you have; these guides should help you deal with malware removal: https://wordpress.org/support/article/faq-my-site-was-hacked/ https://sucuri.net/guides/how-to-clean-hacked-wordpress/

Critical error after updating my wordpress

If you are using WordPress 5.2 or newer, then the site should by default send a fatal error notification email to your admin email address. The email should have some sort of stack trace in it, which shows where the error occured. Then either login to the site using the recovery mode link found on … Read more

Customizing login message

You can use a variation of this code to change invalid login messages (adjust the message to your needs; but see note below): add_filter(‘login_errors’, function ($error) { global $errors; $err_codes = $errors->get_error_codes(); // Invalid username. if (in_array(‘invalid_username’, $err_codes)) { $error=”<strong>ERROR</strong>: Sorry, that is incorrect.”; } // Incorrect password. if (in_array(‘incorrect_password’, $err_codes)) { $error=”<strong>ERROR</strong>: Sorry, that … Read more