# 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

#### 3 comments on “Fatal error: Call to undefined function bindtextdomain()”

1. HB Chung says:

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 says:

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 ?