fatal error when cropping thumbnail

I'm sorry if this has been addressed - I couldn't find a reference by searching.

I'm getting an error when I try to perform a custom crop on thumbnails.
My installation is pretty vanilla:
Zenphoto version 1.3 [5479] (Official Build)
Current gallery theme: Default
PHP version: 5.2.14

"Crop Thumbnails" is checked, set to the default 85x85.
Entering the crop interface works fine, but when I alter the crop and click "save" I get this error:

`Fatal error: Call to a member function getThumb() on a non-object in /path/to/gallery/zp-core/admin-thumbcrop.php on line 25`

I have read but can make NO sense out of line 25 in that file! Have I done something dumb in the config setup?

Thanks for any advice.

Steve

Comments

  • Any other errors, for instance script errors in your CGI log? What does the address bar URL look like when you get this error? Doubt that this is something you have done wrong, but I need some more information to understand what has happened.

    EDIT: also. What was the album name and image name of the image?
  • Hello sbillard;
    Thanks for considering this.
    I didn't know to check for errors in the CGI log.

    Client named files so they would stay in numeric order. Unfortunately, she used a period:
    For example, files named like this:
    1. first image.jpg
    2. second image.jpg

    It seemed to make no difference to the gallery, but the errors in the debug log point to a bad file name. Such as
    `Backtrace: Bad filename suffix in newImage(18. )`

    Does that explanation make sense to you?

    So. I guess I have to delete all the images, rename all the files and start over. Or else just live with the thumbnails cropped as they are.
    ;-)

    Thanks for your interest.
    Steve
  • File naming seems to be the culprit. Besides the period she had sprinkled in some quotes, commas and other questionable characters. I had to rename each file, but now it seems everything does just what it's supposed to.
    Whew.
    Note to self: review the error logs before posting to the forum!
    Steve
  • acrylian Administrator, Developer
    If you setup the site for someone else, be sure that the seo-plugin is activated and she uploads and creates albums via the backend (and not ftp). That way such problematic characters would be cleared out automatically.
  • The quotes could be the cause of the problem. We'll see what we can do to avoid having problems with these. But, still it is always better if they are not used.
Sign In or Register to comment.