[Special Summer Sale] 40% OFF All Magento 2 Themes

Cart

how can I enable PHP Extension intl?

  • This topic is empty.
Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #9209
    David Hoang
    Keymaster

    ADDITIONAL NOTE (As this is very old question and has no accepted answer yet)

    I am on xampp-win32-7.2.3-0-VC15-installer on Windows10-64bit.

    here is the notes I see in my php.ini file.

    Note : The syntax used in previous PHP versions (‘extension=.so’ and
    ; ‘extension=’php_.dll’) is supported for legacy reasons and may be
    ; deprecated in a future PHP major version. So, when it is possible, please
    ; move to the new (‘extension=) syntax.

    So you will only find the extension name as intl instead of php_intl.dll and then uncommenting that line should work (It worked for me atleast).

    extension=intl

    #9207
    David Hoang
    Keymaster
    1. Go to C:\xampp\php
    2. open the file “php.ini-development” on a text editor.
    3. Then uncomment ;extension=php_intl.dll by removing the semicolon
    #9216
    David Hoang
    Keymaster

    I wrote this post if anyone come across this question for PrestaShop, I don’t know if it will work for Magento2. I solved enabling PHP extension intl for the PrestaShop installation by:

    1. Open XAMPP Control Pane.
    2. Stop the Apache server if it was started.
    3. Then from Config button click on PHP (php.ini) item.

    enter image description here

    1. Php.ini will open in Notepad (or a default text editor), click Ctrl + F and search for ;extension=intl and remove the semicolon.

    enter image description here

    1. Then save and close Notepad and re-start the Apache server.

    These steps for me solved the issue.

    Note (2):
    I’m using XAMPP v3.2.3 and PrestaShop v1.7.5.1

    enter image description here

    #9202
    David Hoang
    Keymaster

    On My windows I just opened Xampp control panel then on Apache Module same line I clicked on Config then it shows all reconfigured files then choose

    PHP (php.ini)
    

    the file will be opened in text editor like notepad then search for extension you want then change

    ;extension=php_intl.dll -> extension=php_intl.dll

    That’s all hope it will work

    #9197
    David Hoang
    Keymaster

    After installing Laminas, I got the same error message

    "Translator component requires the intl PHP extension"

    while wanting to view the web application with the php web server:

    php -S 0.0.0.0:8080 -t public public/index.php

    As I’m usgin XAMPP, in

    c:\xampp\php\php.ini

    I had to enable the PHP extension intl in this line ;extension=php_intl.dll, remove the starting semicolon (;) and restart XAMPP. I hope this will help.

    #9199
    David Hoang
    Keymaster

    If the below line is not available or commented in C:\xampp\php\php.ini, then add it or uncomment and restart the apache server then it works.

    extension=php_intl.dll

    #9213
    David Hoang
    Keymaster

    Starting with PHP 7.2.0, you only need to specify the extension name.

    I.e., add the following line to your php.ini:

    extension=intl
    

    See PHP’s docomentation on loading extensions for more informations.

    #9200
    David Hoang
    Keymaster

    First of all, you need to stop your server and
    go to this path xampp/php/php.ini and find this ;extension=php_intl.dll and then you need to remove the semicolon ( ; ) from the following code and save the file.

    And then restart your server.

    #9203
    David Hoang
    Keymaster

    Enable the intl extension in the php.ini file.

    Under Apache, click config.

    Click php.ini.

    ctrl + f to search intl to find the extension.

    Remove the semi-colon to enable the extension. (This is something that wasn’t self explanatory to me at first).

    Save the file. Restart your apache server in xampp. The error should now be resolved.

Viewing 9 posts - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.