{"id":1449,"date":"2020-12-06T06:16:50","date_gmt":"2020-12-06T06:16:50","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/solved-php-fatal-error-class-locale-not-found-in-magento-2\/"},"modified":"2025-07-17T10:19:13","modified_gmt":"2025-07-17T04:49:13","slug":"solved-php-fatal-error-class-locale-not-found-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/solved-php-fatal-error-class-locale-not-found-in-magento-2\/","title":{"rendered":"Solved: PHP Fatal Error Class &#8216;locale&#8217; Not Found in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/install-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 installing<\/a>&nbsp;is simple ain\u2019t it!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And if you are a novice for\u00a0Magento 2, errors and warnings can be scary.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today, I\u2019ll post the solution for the error that says,<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>Fatal error: Class \u2018Locale\u2019 not found in C:xampp2htdocsmag236svendor\/magento\/framework\/Locale\/Bundle\/DataBundle.php<\/em><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">You may face this error while installing&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-2-3-5-release\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2.3.5<\/a>&nbsp;or above versions using XAMPP.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-at-November-12th-2020-3.29.49-pm-1024x462.png\" alt=\"Screenshot-at-November-12th-2020-3.29.49-pm\" class=\"wp-image-11813\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The error occurs because Xampp does not include the php.ini file by default. The file resides in the root directory of Xampp.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2.3.5 and higher versions require \u201cintl\u201d extension so the only solution is to enable the extension from php.ini file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the steps to avoid this error and install Magento 2 without any problem:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution for PHP Fatal Error Class \u2018locale\u2019 Not Found in Magento 2:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Open&nbsp;<strong>&lt;php.ini&gt;<\/strong>&nbsp;file and find the line&nbsp;<strong>;extension=php_intl.dll&nbsp;<\/strong>or&nbsp;<strong>;extension=intl<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Remove&nbsp;<strong>(;)<\/strong>&nbsp;from there and save the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Restart Xampp or Wamp server and refresh the installation page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similar error may occur in the newer versions of Magento 2 as the Zend Framework has been deprecated. Learn here to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/solved-class-zend-not-found-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">solve \u2018main.CRITICAL: Error: Class Zend_Json not found\u2019 in Magento 2<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do share this post with Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 installing&nbsp;is simple ain\u2019t it! And if you are a novice for\u00a0Magento 2, errors and warnings can be scary. Today, I\u2019ll post the solution&#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-1449","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1449","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=1449"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1449\/revisions"}],"predecessor-version":[{"id":14590,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1449\/revisions\/14590"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}