Fatal error: Call to undefined function bindtextdomain()

Fatal error: Call to undefined function bindtextdomain() in [...]

This error might be caused by a missing GetText extension. If this is the case, you have to enable the extension in your php.ini:

extension=php_gettext.dll

If the extension is not installed yet, this is how to install gettext on macOS (for PHP7.0):

sudo port install php70-gettext

Afterwards, do not forget to restart Apache:

sudo port unload apache2
sudo port load apache2

2 comments on “Fatal error: Call to undefined function bindtextdomain()

  1. Good Day,

    I got the error stated above.
    can you provide a step by step instruction to either activate or install gettext?

    I am running PHP 7.3

Leave a Reply

Your email address will not be published. Required fields are marked *