TECHIES WORLD

For Techs.... Techniques.... Technologies....

ApacheAWSCpanelLinuxPHP

PHP Error: Attempted to call function "idn_to_ascii" from the global namespace.

Attempted to call function "idn_to_ascii" from the global namespace.

This error is due to the absence of the php module intl. Installing the intl module will solve this problem.

For Redhat based distributions,

#yum install php-intl

For Debian based distributions.

#apt-get install php-intl

Note that the package name may vary according to the different php versions.

Then restart the apache service after the module installation.

For Redhat based distributions,

#systemctl restart httpd

For Debian based distributions.

#systemctl restart apache2

That's all…

Leave a Reply