Fatal error: Call to undefined function bindtextdomain() in [...]
This error might be caused by a missing GetText extension. GetText is a widely-used internationalization and localization (i18n/l10n) system that provides tools for translating software messages into different languages.
To solve the error, you have to enable the extension in your php.ini
. For this, open your php.ini
and uncomment (or add) the following line:
extension=php_gettext.dll
If the extension is not installed yet, this is how to install GetText on macOS (for PHP 7.0):
sudo port install php70-gettext
Or for any other PHP version use:
sudo port install php80-gettext
sudo port install php81-gettext
sudo port install php82-gettext
sudo port install php83-gettext
You can check for available versions on the MacPorts website.
Afterwards, do not forget to restart Apache:
sudo port unload apache2
sudo port load apache2
Photo by Markus Winkler on Unsplash
Leave a Reply