7

When I deployed my magento store from local host to server then I am getting

Fatal error: Class 'IntlDateFormatter' not found in vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php on line 93`

After uploading it on server I not seeing my magento home page. when I hit the URL only this error display.

  • IntlDateFormatter class is provided by intl extension. Magento requires intl-ext. Did you run composer update? If after composer update extension is not installed, try to add it to your project composer.json and run composer install – joni jones Sep 20 '17 at 8:08
8

Check your php version :

php -v

Check php-intl packages available :

sudo apt search php | grep intl

Install the php-intl according to your php version (7.1 in my case) :

sudo apt install php-intl php7.1-intl

You may also want to switch PHP version :

sudo update-alternatives --config php
php -v

Restart your webserver if you are done

service apache2 restart
| improve this answer | |
  • 1
    This answer has resolved my issue. Thanks for your help. – jack Jan 30 '18 at 9:48
2

Just need to clear comment before this line in php.ini file:

;extension=php_intl.dll

to

extension=php_intl.dll
| improve this answer | |
  • After doing this change error was showing. I did follow the steps given by @maxagaz resolved my issue. – jack Jan 30 '18 at 9:49
  • @jack in my case i added ''extension=php_intl.dll'' line in php.ini file because it was not available before then it solved this error – Hitesh Balpande Jun 6 '19 at 10:05
1

If PHP version: 7.2.11
Just need to clear comment before this line in php.ini file:

;extension=intl

to

extension=intl
| improve this answer | |
0

I had the same Problem, a new Magento 2.1.7 installation, php 7.0.2, mysql 5.6. in developer mode and the cronjob always send me an email with:

Class 'IntlDateFormatter' not found in /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93

My solution was: Both entries for the base-urls (secure und unsecure) under stores > configuration > general > web had to be the secure (https://) domain.

Now everything works fine.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.