Problem resizing or creating thumbnails Problem resizing or creating thumbnails
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problem resizing or creating thumbnails

Started by flapane, June 08, 2012, 12:34:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flapane

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
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

Please post a link to the affected gallery.

flapane

The one in the signature (as per forum rule).
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

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).

flapane

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

Gallery
www.gallery.flapane.com

CharlieD

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

flapane

Different code line. You'd better open a new thread.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Stevellewor

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.

flapane

I'm waiting for Andrè to suggest me which lines to comment for debugging purposes.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

Have a look at include/picmgmt.inc.php. Within the
} 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.

flapane

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

Gallery
www.gallery.flapane.com

flapane

Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré


pckconsult

Quote from: flapane on June 08, 2012, 12:34:55 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

flapane

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
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré

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

flapane

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
www.flapane.com

Gallery
www.gallery.flapane.com

flapane

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.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com

Αndré


flapane

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.
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com