Advanced search  

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

Pages: [1]   Go Down

Author Topic: "Fatal error: Call to undefined function..."  (Read 3125 times)

0 Members and 1 Guest are viewing this topic.

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
"Fatal error: Call to undefined function..."
« 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):

(http://img18.imageshack.us/img18/5798/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?
Logged

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: "Fatal error: Call to undefined function..."
« Reply #1 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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: "Fatal error: Call to undefined function..."
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 20 queries.