Menu

#1 bindtextdomain Error

open
None
5
2007-08-06
2007-04-18
Anonymous
No

I get this after installing

Fatal error:
Call to undefined function: bindtextdomain() in www\wili\functions\init_session.php on line 39

I have PHP v4.3.10

any ideas??

Discussion

  • Patrick Michaelis

    Logged In: YES
    user_id=319205
    Originator: NO

    Sorry for the late answer. This is the first bug ever and I didn't checked it regularily because I didn't expected anything to be there. Here's what I think is wrong:

    Probably a module is missing in your php installation.

    You need to have gettext-Support enabled.

    You can find out, if this is installed at your server by looking at the phpinfo page. To do that, just put a php with the following contents into your website's directory:

    <?php
    phpinfo();
    ?>

    There should be a section with title "gettext" and an entry, which should show this is enabled. If not, you have to install php with gettext support.

     
  • Patrick Michaelis

    • assigned_to: nobody --> kompi
     
  • Nobody/Anonymous

    Logged In: NO

    got the same error

    "There should be a section with title "gettext" and an entry, which should
    show this is enabled. If not, you have to install php with gettext
    support."

    no "gettext" strings. any help?

     
  • Patrick Michaelis

    Logged In: YES
    user_id=319205
    Originator: NO

    > no "gettext" strings. any help?

    So you have to install gettext support. If you are using a binary linux distribution for example there may be a "php-gettext" package or something similar you may need to add. If you compiled php for your self, you have to set the correct flag while invoking ./configure

    If you have no influence on your php-installation (i.e. you are hosting your site on a server you have no control of) you may ask your provider to upgrade, or try this workaround:

    If you only want to use en locales, you could comment out every function using gettext. That would be: setlocale(), bindtextdomain() and textdomain() in functions/(admin)/init_session.php to prevent the error message.

     

Log in to post a comment.

MongoDB Logo MongoDB