forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: biellebrunner on September 07, 2013, 07:46:52 pm

Title: "Fatal error: Call to undefined function..."
Post by: biellebrunner on September 07, 2013, 07:46:52 pm
I'm trying to upload some images into my gallery, but I keep getting this error:
Fatal error: Call to undefined function cpg_picture_dimension_exceeds_intermediate_limit() in /home/(...)/galeria/include/picmgmt.inc.php on line 86

My Image config reads (in Portuguese, sorry):

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg18.imageshack.us%2Fimg18%2F5798%2Fieb2.png&hash=ea130d1465568f3eb6a731e09469b9d8bd9ffffe) (http://imageshack.us/photo/my-images/18/ieb2.png/)

My picmgmt.inc.php is: http://pastebin.com/5MwrgACN
Line 86 would be:
Code: [Select]
if ($CONFIG['make_intermediate'] && cpg_picture_dimension_exceeds_intermediate_limit($imagesize[0], $imagesize[1]) && !file_exists($normal)) {
The pictures I'm trying to upload are 464x343px, 465x698px and 467x311px. So they're all bigger than the intermediate size pictures would be (400px), so it shouldn't be a problem to create them.
Just the other day I uploaded other images (around 2048px wide), and didn't have a problem, and ever since then I didn't change a thing on my configuration, or on picmgmt.inc.

What's the matter?
Title: Re: "Fatal error: Call to undefined function..."
Post by: biellebrunner on September 07, 2013, 07:50:30 pm
I can't seem to edit the post, but if it matters, the file permissions are 0644, and there's more than enough room on my server for them.
And my gallery link is http://castlefanatic.com.br/galeria
Title: Re: "Fatal error: Call to undefined function..."
Post by: phill104 on September 07, 2013, 11:36:36 pm
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270617.html#msg270617
Title: Re: "Fatal error: Call to undefined function..."
Post by: Αndré on September 09, 2013, 12:35:20 pm
It seems that you haven't upgraded your gallery completely, as that function is part of cpg1.5.x since cpg1.5.22. Please replace the file include/functions.inc.php with an up-to-date version (or at least add the missing function to that file), though I suggest to perform a full upgrade as described in the docs.