Installing the php platform will ask me about the intl extension, but it seems to be already installed

During installation of orocrm (platform developed using symfony 2), I get this error

Fatal error: Uncaught exception 'Symfony\Component\Intl\Exception\MethodArgumentValueNotImplementedException' with message 'The Symfony\Component\Intl\Collator\Collator::__construct() method argument $locale value 'fr_FR' behavior is not implemented. Only the locale "en" is supported. Please install the "intl" extension for full localization capabilities.' in /Users/ale/Sites/educacloud- bo/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php:80 Stack trace: #0 /Users/ale/Sites/educacloud-bo/app/SymfonyRequirements.php(619): Symfony\Component\Intl\Collator\Collator->__construct('fr_FR') #1 /Users/ale/Sites/educacloud-bo/app/OroRequirements.php(24): SymfonyRequirements->__construct() #2 /Users/ale/Sites/educacloud-bo/app/oro-check.php(6): OroRequirements->__construct() #3 {main} thrown in /Users/ale/Sites/educacloud-bo/vendor/symfony/symfony/src/Symfony/Component/Intl/Collator/Collator.php on line 80 

but I installed the intl extension:

 # php -i | grep intl /usr/local/php5/php.d/50-extension-intl.ini, intl intl.default_locale => it_IT => it_IT intl.error_level => 0 => 0 

and php_info () in my browser give me the following results:

 version 1.1.0 ICU version 4.6 ICU Data version 4.6 

What is the problem? thanks alessandra

+7
php symfony intl orocrm
source share
3 answers

By default, symfony2 can control the extension "en", but to get a different language you need to install the extension php-intl .

The easiest option is to install it with the composer as it provides you with a global variable ... etc.

All of this is explained here by symfony / components / intl .

To install the extension for the composer symfony / components / using_components .

So, after that you should do:

 composer require symfony/intl 

- EDIT

Ok, sorry, I just checked the solution, and the fact is that if you use the symfony component, you only have access to "en". I have the same problem as you, my php5-intl extension was installed and activated, but the error persisted. For me it was that I continue to write use Symfony\Component\Intl\DateFormatter\IntlDateFormatter; at the top of my file instead of using the main php5 extension.

+2
source share

Check out the solutions:

In Symfony 2.0:

application /Config/config.yml

framework: session: {default_locale: it_IT}

In Symfony 2.1 +:

application /Config/config.yml

framework: default_locale: it_IT

0
source share

Do one thing that may be helpful in resolving this error: open the php.ini file ;extension=php_intl.dll remove the comment from ;extension=php_intl.dll

 extension=php_intl.dll 

and restart the apache server

0
source share

All Articles