"Fatal error: Call to undefined function..." "Fatal error: Call to undefined function..."
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

"Fatal error: Call to undefined function..."

Started by biellebrunner, September 07, 2013, 07:46:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biellebrunner

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg18.imageshack.us%2Fimg18%2F5798%2Fieb2.png&hash=ea130d1465568f3eb6a731e09469b9d8bd9ffffe)

My picmgmt.inc.php is: http://pastebin.com/5MwrgACN
Line 86 would be: 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?

biellebrunner

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

phill104

It is a mistake to think you can solve any major problems just with potatoes.

ΑndrĂ©

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.