Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal error: Call to undefined function gettext()  (Read 21932 times)

0 Members and 1 Guest are viewing this topic.

henrirene

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Fatal error: Call to undefined function gettext()
« on: April 24, 2012, 06:51:45 am »

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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Fatal error: Call to undefined function gettext()
« Reply #1 on: April 24, 2012, 08:57:40 am »

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:
Code: [Select]
if (!function_exists('gettext')) {
    function gettext($str) {
        return $str;
    }
}
Logged

henrirene

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Fatal error: Call to undefined function gettext()
« Reply #2 on: April 24, 2012, 09:43:50 am »

Thanks André! Workaround did work :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Fatal error: Call to undefined function gettext()
« Reply #3 on: May 07, 2012, 08:48:34 am »

Fix committed in SVN revision 8398.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.