Missing error_log

If you come across a script where error logging is turned off, you can create a new file with the below code, save it as error.php and run it by accessing http://your_domain.com/error.php

File needs to be saved in the root folder of the domain in order to be accessed through http://your_domain.com/error.php

Replace File_Name.php with the name of the file causing issue. For eg index.php in wordpress home page (and almost all the php scripts) or wp-login.php when it’s an issue with the admin login page of WordPress

ini_set("display_errors", 1);
// change file name from index.php to required file in next line

/ /

Report (Please include link to post while reporting)

Leave a Reply

Your email address will not be published. Required fields are marked *