Fatal error: Call to undefined function gettext() Fatal error: Call to undefined function gettext()
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Fatal error: Call to undefined function gettext()

Started by henrirene, April 24, 2012, 06:51:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

henrirene

After last update, from 1.5.18 to 1.5.20 I got error message when trying to view photos in my gallery .

Fatal error: Call to undefined function gettext() in /data04/virt3647/domeenid/www..../htdocs/pildigalerii/include/exif.php on line 472

What could be wrong and is there any cure?

Αndré

gettext is a PHP core function: http://de2.php.net/manual/en/function.gettext.php

It seems that this function isn't available/enabled on your server. Please check your PHP info and maybe ask your hosting provider if they can fix that issue. It doesn't mean that something has been changed on your server in the last days, as the EXIF library has been updated from cpg1.5.18 to cpg1.5.20 in SVN revision 8349.

As a quick workaround try to add the following function to your include/functions.inc.php file:
if (!function_exists('gettext')) {
    function gettext($str) {
        return $str;
    }
}

henrirene


Αndré