Magento SUPEE 11086 was released on March 26, 2019. The patch is meant to fix issues like close remote code execution (RCE), cross-site scripting (XSS), cross-site request forgery (CSRF) and other vulnerabilities.
However, it comes with an issue of Magento Logging Failed After Installing SUPEE 11086 Patch!
The problem is caused due to the log validation function added by Magento to validate extensions. It throws an error on is_readable() function in the case log file does not exist yet.
Implement the below solution to overcome the Magento Logging issue.
Solution for Magento Logging Failed After Installing SUPEE 11086 Patch:
$logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);
$logDir = self::getBaseDir('var') . DS . 'log';
if (!$logValidator->isValid($logDir . DS . $file)) {
return;
}
replace with
// $logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);
$logDir = self::getBaseDir('var') . DS . 'log';
//if (!$logValidator->isValid($logDir . DS . $file)) {
// return;
//}
The below screenshot shows how I have implemented the solution:
![[Fixed] Magento Custom Logging Failed After Installing SUPEE 11086 Patch](https://meetanshi.com/blog/wp-content/uploads/2019/06/Fixed-Magento-Custom-Logging-Failed-After-Installing-SUPEE-11086-Patch-1.png)
Note: However, with the release of Magento SUPEE 11155, this issue is resolved and you don’t need to implement the above solution.
Please let me know if you still face any issue with Magento logging after the SUPEE Patch 11086 installation.
I’d be happy to help
Thanks!