Menu

Error when trying to open site

DoodleBob
2018-07-17
2018-07-29
  • DoodleBob

    DoodleBob - 2018-07-17

    I get the following error. Using a 2012 server, IIS 8.5. PHP 7.3 I believe.

    Fatal error: Uncaught Error: Call to undefined function gettext() in C:\inetpub\wwwroot\addr\lib\ldap_result.php:44 Stack trace: #0 C:\inetpub\wwwroot\addr\utils.php(20): include() #1 C:\inetpub\wwwroot\addr\index.php(19): include('C:\inetpub\wwwr...') #2 {main} thrown in C:\inetpub\wwwroot\addr\lib\ldap_result.php on line 44

     
  • James Turner

    James Turner - 2018-07-29

    The error occurs because the GetText PHP extension is not loaded. (The next version of LDAP Address Book will detect and report the missing extension in a more user-friendly manner.)

    Recent versions of PHP for Windows don't have GetText enabled by default. To enable, it edit your php.ini file and find the following line

     ;extension=gettext
    

    Remove the semicolon from the start of the line and then save the change. Depending on your setup you may need to run "iisreset" for the the web server to start using the new settings.

     

Log in to post a comment.