El módulo opcional, intl, no está instalado o ha sido deshabilitado

2 minutos de lectura

Avatar de usuario de Laxminarayan patel
patel laxminarayan

Estoy viendo este mensaje de WordPress Site Health. ¿Cómo instalo el módulo que falta?

El equipo de alojamiento de WordPress mantiene una lista de esos módulos, tanto recomendados como requeridos, en el manual del equipo

Advertencia El módulo opcional, intl, no está instalado o ha sido deshabilitado

  • ¿En qué sistema operativo estás?

    – RiggsFolly

    28 de junio a las 13:50

De acuerdo a el manual de PHP este módulo proporciona Funciones de Internacionalización. Si su sitio es multilingüe, esto será importante para usted.

Si está utilizando un servidor web que mantiene la instalación de PHP para usted, deberá contactarlos para instalar el módulo.

Si administra su propio servidor web, puede seguir una guía de instalación como esta: https://www.iteron.co.za/?page_id=17204

Para servidor basado en Linux (suponiendo que tenga acceso de root)

Make sure the php_intl.so file exists within your php extensions directory, find the extensions directory by:
    using phpinfo()
    running this command: php -r "echo ini_get('extension_dir');"
    (note: both options gets the extension_dir right from the PHP runtime configuration)

If the file exists:
    search for the config file (php.ini, usually /etc/php.ini) and open it
    Make sure the line “extension=php_intl.so” is existing and not commented
    Restart the web server (usually sudo service httpd restart)
    Check if the extension is enabled using phpinfo()
If the file doesn’t exist
    Check your php version by running the “php -v” command
    For PHP 5 install the php-intl package using your package manager – package managers and commands
        Most common: apt-get install php-intl (for ubuntu-based linux) or yum install php-intl (for CentOS)
    For PHP 7, install the php7.x-intl (depending on your php version)
    Repeat the steps for the case in which the file exists

Para servidor basado en Windows

Make sure the php_intl.dll file exists within your php extensions directory
    for separately installed PHP: C:\path\to\php\ext\
    for xampp: C:\path\to\xampp\php\ext
    (note: your drive letter might be different)
If the file exists:
    search for the config file (php.ini, usually in the same folder as the php executable) and open it
    Make sure the line “extension=php_intl.dll” is existing and not commented
    Restart the web server (usually apache)
    Check if the extension is enabled using phpinfo()
If the file doesn’t exist:
    Check your php version by running the “php -v” command
    Download the PHP version that corresponds to yours from the PHP Downloads Page (TS/NTS, x86/x64)
        To find thread safety for php, run: php -i | findstr “Thread” , source & more info.
    Search for the php_intl.dll file in the ext folder in that version and copy it in your php\ext folder
    Repeat the steps for the case in which the file exists

¿Ha sido útil esta solución?