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] 2 3   Go Down

Author Topic: Problem resizing or creating thumbnails  (Read 180497 times)

0 Members and 1 Guest are viewing this topic.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Problem resizing or creating thumbnails
« on: June 08, 2012, 12:34:55 pm »

Quote
Critical error
Unable to create thumbnail or reduced size image.

File: /[.foo..]/gallery/db_input.php - Line: 699

It has worked well until some weeks ago, and I haven't uploaded photos, changed cpg core files or any settings from then on.
I tried with different jpg files bigger and smaller than 1285px (my max size for original pic).

I've read the troubleshooter and created a test account.
username: cpg_test
pwd: problem

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem resizing or creating thumbnails
« Reply #1 on: June 08, 2012, 12:41:41 pm »

Please post a link to the affected gallery.
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #2 on: June 08, 2012, 12:42:47 pm »

The one in the signature (as per forum rule).

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem resizing or creating thumbnails
« Reply #3 on: June 08, 2012, 02:03:03 pm »

Link to gallery: http://www.flapane.com/gallery/

The script dies at line 699, which means that add_picture returned something different than "true". I guess you already checked the directory permissions? If so, we'd need to debug the function add_picture by commenting out some code parts to find the issue (in include/picmgmt.inc.php).
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #4 on: June 08, 2012, 02:54:37 pm »

Thanks. Sure, I checked folder permissions while reading the troubleshooter, and found nothing weird.

CharlieD

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Problem resizing or creating thumbnails
« Reply #5 on: June 09, 2012, 02:43:38 am »

I cannot upload photos. I followed the instructions very carefully and they will not upload. this is the message I receive:

critical error
unable to create thumbnail or reduced size image
File: /home/academi/public_html/CFC/db_input.php - Line: 666


http://www.academicangler.com/CFC/db_input.php
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #6 on: June 09, 2012, 09:21:59 am »

Different code line. You'd better open a new thread.

Stevellewor

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Problem resizing or creating thumbnails
« Reply #7 on: June 12, 2012, 10:19:59 am »

I have exactly the same issue as you flapane, if you find a solution I would be pleased to know what it is. If I have any luck sorting it out will let you know.
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #8 on: June 12, 2012, 10:42:54 am »

I'm waiting for Andrč to suggest me which lines to comment for debugging purposes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem resizing or creating thumbnails
« Reply #9 on: June 14, 2012, 11:42:47 am »

Have a look at include/picmgmt.inc.php. Within the
Code: [Select]
} elseif (is_image($filename)) {block you'll find a couple of if-blocks. Try to comment them out one by one to find out which one doesn't work as expected. It's hard to explain how to find the cause, it's probably easier to give me FTP access to your gallery. But I'm currently quite busy and don't know when I'll find time to work on that issue.
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #10 on: June 14, 2012, 12:27:51 pm »

Tried with no luck (the if blocks end at line 101).
I've also set up an account for you. Check PM.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #11 on: June 14, 2012, 12:29:10 pm »

err... no PM folders for admins.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem resizing or creating thumbnails
« Reply #12 on: June 14, 2012, 02:16:36 pm »

Just sent you a PM.
Logged

pckconsult

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 9
  • ...so do you remember 150 bps...
    • Test Site for Coppermine
Re: Problem resizing or creating thumbnails
« Reply #13 on: June 14, 2012, 11:03:35 pm »

It has worked well until some weeks ago, and I haven't uploaded photos, changed cpg core files or any settings from then on.
I tried with different jpg files bigger and smaller than 1285px (my max size for original pic).

I've read the troubleshooter and created a test account.
username: cpg_test
pwd: problem

I know I have had this issue before, can't remember, it has been a while... something to do with theme validation...
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.flapane.com%2Fgallery%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
(your theme is making the browser take it's best guess)

Maybe change theme to a standard out of the box theme, and test it...?
Hope this helps
-PCK
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #14 on: June 15, 2012, 09:09:14 am »

Hi, for whatever reason, today w3c fails to read the doctype of the theme which is xhtml transitional indeed, which leads to 10 errors. They're non-critical, though.
I tried using a vanilla theme without custom header and footer, however nothing changed. Thanks

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem resizing or creating thumbnails
« Reply #15 on: June 15, 2012, 01:11:12 pm »

You're currently using ImageMagick as resize method. Please try GD2.
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #16 on: June 15, 2012, 01:18:14 pm »

GD2 does is work flawlessy.
Before writing the OP, I asked my hosting if there was something wrong with imagemagik, because I couldn't resize images, and they told me that nothing changed.
I've been using IM since a couple of years or so for resizing images in the gallery. I wonder what's wrong.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #17 on: June 18, 2012, 06:02:48 pm »

I've received an answer from my hosting, they told me that the error is due to line 71 of db_input.php, because this line of code doesn't use ImageMagik.

if (!$superCage->get->keyExists('event') && !$superCage->post->keyExists('event')) {
cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);

Honestly, I don't know what to say.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem resizing or creating thumbnails
« Reply #18 on: June 19, 2012, 08:43:20 am »

That doesn't make sense to me, sorry.
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Re: Problem resizing or creating thumbnails
« Reply #19 on: June 19, 2012, 09:26:09 am »

Yep, actually it doesn't for me neither, but I had to report the answer they gave me... I'm waiting for a new answer from my hosting.

I wonder what could cause Imagemagik to stop working all of a sudden.
Pages: [1] 2 3   Go Up
 

Page created in 0.029 seconds with 20 queries.