Fatal error: Call to undefined function bindtextdomain()

Written by

in

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

Comments

3 responses to “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

    1. Mathias Lipowski Avatar
      Mathias Lipowski

      Which operating system are you using? For macOS you can use the install command from above.

    2. Hi I am using windows 10 getting error how to solve ?

Leave a Reply

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