#498 gettext() defined twice

PHP_error
closed
nobody
5
2014-07-30
2005-09-15
Anonymous
No

when i go to the index.php, i've a php error which say
that the function gettext is defined twice. Strange
because in the explanation it's in the same file. So i
think this file is asked to times... what happen ?

Discussion

  • Logged In: NO

    I had the same problem (in lib/IniConfig.php). It seems to be a
    matter of 'bindtextdomain' not being defined, which results in the
    'gettext' definition being invoked. There are apparently two places
    where this segment is executed, and bindtextdomain is never there,
    so gettext is defined twice. I hacked it on my system by by using
    " if (!function_exists ('gettext')) {..."
    but somebody else who understands the options should fix it
    properly.
    pete.goodeve@computer.org

     
  • Gniarf
    Gniarf
    2006-02-05

    Logged In: YES
    user_id=1082402

    got the same bug, just had to add a bloc : if (!
    function_exists ('gettext')) { ... } to prevent the second
    definition.

     
    • status: open --> closed
     
  • Closing very all bugs.