Search code examples
phpsymfonycomposer-phpphp-extensionsonata-admin

symfony2 SonataAdminBundle intl-ext error


I have dealt with this problem all the day, but i couldn't solve it,although i have followed the instructions. I got these error all the time.:(

"require ext-intl * -> the requested php extension int is missing from your computer"

i have enabled the ext-intl in my php.ini in wampserver...and also downloaded ICU and followed the instructions in this link: http://icu-project.org/repos/icu/icu/trunk/readme.html#HowToBuildWindows

but, none of these efforts have made a change in getting that killing(!) error.

what else should i try to solve this issue?


Solution

    • First of all be sure that your server is isung x86 build (intl not working with x64)
    • activate intl extension in php.ini directly
    • copy all icu*.dll form php directory to apache directory
    • make sure your console using the same php folder you just configured

    source : https://github.com/sonata-project/SonataIntlBundle/issues/32#issuecomment-10745894

    In my windows system I have two php.ini files at the flowing paths :

    1. C:\wamp\bin\php\phpx.y.z
    2. C:\wamp\bin\apache\Apachex.y.z\bin

    I don't know which one is in your path . just make sure to add the extension in both of them to eliminate any doubt.