{"id":482,"date":"2019-06-24T07:01:02","date_gmt":"2019-06-24T07:01:02","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/06\/24\/magento-logging-failed-after-installing-supee-11086-patch\/"},"modified":"2025-01-02T09:45:08","modified_gmt":"2025-01-02T09:45:08","slug":"magento-logging-failed-after-installing-supee-11086-patch","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/magento-logging-failed-after-installing-supee-11086-patch\/","title":{"rendered":"Our Solution For Magento Logging Failed After Installing SUPEE 11086 Patch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/install-magento-supee-11086\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento SUPEE 11086<\/a>\u00a0was 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\u00a0<a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/release\/notes\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">other vulnerabilities<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, it comes with an issue of&nbsp;<em><strong>Magento Logging Failed After Installing SUPEE 11086 Patch<\/strong><\/em>!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem is caused due to the log validation function added by Magento to validate extensions. It throws an error on&nbsp;<em><strong>is_readable()<\/strong><\/em>&nbsp;function in the case log file does not exist yet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Implement the below solution to overcome the Magento Logging issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution for Magento Logging Failed After Installing SUPEE 11086 Patch:<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);\n$logDir = self::getBaseDir('var') . DS . 'log';\nif (!$logValidator->isValid($logDir . DS . $file)) {\n\u00a0 \u00a0 \u00a0 \u00a0 return;\n}\n\nreplace with\n\n\/\/ $logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);\n\u00a0 \u00a0 \u00a0 \u00a0$logDir = self::getBaseDir('var') . DS . 'log';\n\u00a0 \u00a0 \u00a0 \u00a0\/\/if (!$logValidator->isValid($logDir . DS . $file)) {\n\u00a0 \u00a0 \u00a0 \u00a0 \/\/ \u00a0 return;\n\u00a0 \u00a0 \u00a0 \u00a0\/\/}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The below screenshot shows how I have implemented the solution:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/06\/Fixed-Magento-Custom-Logging-Failed-After-Installing-SUPEE-11086-Patch-1.png\" alt=\"[Fixed] Magento Custom Logging Failed After Installing SUPEE 11086 Patch\" class=\"wp-image-5857\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong>&nbsp;However, with the release of&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/install-magento-supee-11155\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento SUPEE 11155<\/a>, this issue is resolved and you don\u2019t need to implement the above solution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please let me know if you still face any issue with Magento logging after the SUPEE Patch 11086 installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019d be happy to help  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento SUPEE 11086\u00a0was released on March 26, 2019. The patch is meant to fix issues like close remote code execution (RCE), cross-site scripting (XSS), cross-site&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-482","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":1,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":4194,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions\/4194"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}