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: (Andreas09) Fixed other problems, now Displayimage dont display anything?  (Read 6186 times)

0 Members and 1 Guest are viewing this topic.

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30

 :-\ this really really sucks.

I did something to fixx other problems, and mabye i did too much.

But DisplayImage doesnt work..

When im logged in as admin: Fatal error: Call to undefined function cpg_picture_dimension_exceeds_intermediate_limit() in /var/www/g47991/schryvers.nl/HTML/v3/themes/andreas09/theme.php on line 272

My theme.php line 307:
Code: [Select]
if ($CONFIG['make_intermediate'] && cpg_picture_dimension_exceeds_intermediate_limit($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'])) {
link Schryvers.nl


Logged

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #1 on: November 14, 2012, 07:23:19 am »

its on line 307 now... that code is above.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.

Check if cpg_picture_dimension_exceeds_intermediate_limit exists in your include/functions.inc.php file.

You chould have post this in the other thread as it happened after the change.
Link for reference: http://forum.coppermine-gallery.net/index.php/topic,75649.0.html
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #3 on: November 14, 2012, 07:29:27 am »

It doesn't exist in it

I saw andre post something on another topic about adding the following code in functionsinc

Code: [Select]
function cpg_picture_dimension_exceeds_intermediate_limit($pwidth, $pheight) {
    global $CONFIG;

    $resize_method = $CONFIG['picture_use'] == "thumb" ? ($CONFIG['thumb_use'] == "ex" ? "any" : $CONFIG['thumb_use']) : $CONFIG['picture_use'];
    if ($resize_method == 'ht' && $pheight > $CONFIG['picture_width']) {
        return true;
    } elseif ($resize_method == 'wd' && $pwidth > $CONFIG['picture_width']) {
        return true;
    } elseif ($resize_method == 'any' && max($pwidth, $pheight) > $CONFIG['picture_width']) {
        return true;
    } else {
        return false;
    }
}

This will help?
Logged

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #4 on: November 14, 2012, 07:31:11 am »

Problem fixed by the code above adding to include/functions_inc.php
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.

Yes, adding it will help but since it doesn't already exist you probably had a problem upgrading to 1.5.20 or some files got corrupt.
Run a version check and make sure your files are up to date.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #6 on: November 14, 2012, 07:36:19 am »

Thats strange...

When i version check then it says over 300 files are corrupt..
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #8 on: November 14, 2012, 08:21:54 am »

I run update.php and all files are updated.


Thankyou for your info.

SOLVED
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.

Upgrading and update.php are not the same thing. Are you sure all your files are up to date and working now?
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #10 on: November 15, 2012, 01:55:38 am »

I quess... where i can find that?

When i run Check Versions, there are 328 potential problems, most of them are 326 /DOCS/ problems (.txt and .htm files from docs/)

And 2 files maybe incorrupt of changed (i changed them) Theme.inc.php and Template.html

What i need to do or to check? i really dont understand the update thing and everything. 1 month ago i download the latest coppermine en installed it, thats it! Now im changing sum things.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #11 on: November 15, 2012, 02:22:27 am »

If all the problems are from documentation files then you should be fine.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Schryvers

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #12 on: November 15, 2012, 02:27:46 am »

Nice thanks alot mate
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: (Andreas09) Fixed other problems, now Displayimage dont display anything?
« Reply #13 on: November 20, 2012, 10:54:57 am »

The function cpg_picture_dimension_exceeds_intermediate_limit has been added after the release of cpg1.5.20. As developers usually don't work with the latest release, but with the latest SVN snapshot you probably got "too new" code from Jeff which already uses that new function. It's fine to just add it to your include/functions.inc.php file, as it is included in cpg1.5.22 anyway.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.