Image thumbs not generated after update to 3.0.4

Nickp

Joined: 2008-11-18
Posts: 10
Posted: Fri, 2012-07-13 15:18

Hello all and thanks for all the hard work and great product.I would appreciate any help with the following issue.

After upgrading from 3.01 to 3.04, I can't seem get thumbnails to work when i upload new pictures.
although when i click on the broken thumb I can see the image fine, the thumb itself don't shows up broken and there is no corresponding file in the var/thumbs folder.
I'm using IX webhosting and have ImageMagick version 6.2.8 and GD 2.0.34 available.

I've looked through the forums and followed steps that I could find without any luck.
After each of the following steps, I deleted and re-uploaded images with same results.
images are about 350 KBs each.

What i've tried so far:
Re-named images to simple names.
Went through force rebuild, etc. and everything seems fine, nothing on the log.
Changed from GD to IM.
Updated to the latest greydragon theme.

Soon as I upload a photo, maintenance shows that I have 1 out of date photo. When I hit rebuild, the log shows the following:

Task Rebuild Images started (task id 181)
Unable to rebuild images for '6412-Editsmall'
exception 'Exception' with message '@todo EMPTY_INPUT_FILE' in /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/modules/gallery/helpers/gallery_graphics.php:57
Stack trace:
#0 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/modules/gallery/helpers/graphics.php(173): gallery_graphics_Core::resize('/hsphere/local/...', '/hsphere/local/...', Array, Object(Item_Model))
#1 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/modules/gallery/helpers/gallery_task.php(107): graphics_Core::generate('gallery_graphic...', Array)
#2 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/modules/gallery/helpers/task.php(90): gallery_task_Core::rebuild_dirty_images(Object(Item_Model))
#3 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/modules/gallery/controllers/admin_maintenance.php(194): task_Core::run(Object(Task_Model))
#4 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/modules/gallery/controllers/admin.php(62): Admin_Maintenance_Controller->run('gallery_task::r...', Array)
#5 [internal function]: Admin_Controller->__call('181')
#6 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs('181')
#7 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/system/core/Event.php(208): Kohana_Core::instance(Array, Array)
#8 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/application/Bootstrap.php(67): Event_Core::run('maintenance', Array)
#9 /hsphere/local/home/peluffo1/1peluffo.com/Gallery3/index.php(113): require('/hsphere/local/...')
#10 {main}
Updated: 0 images. Total: 1.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26097
Posted: Fri, 2012-07-13 17:02

From the error it look like it does not have permissions to reed the $input_file. or the file does not exist.
Does '6412-Editsmall' exist on the file system?

Check permissions of the gallery3/var/albums/*.* directories and its contents.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
Nickp

Joined: 2008-11-18
Posts: 10
Posted: Fri, 2012-07-13 19:26

Thanks for the quick reply Dave,

The file does exist in the /albums/Color folder and I set this folder and the parent folder to 777 but I still have the same issue.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26097
Posted: Fri, 2012-07-13 22:49

Can you change the owner of the var/albums directory to whoever the webserver user is?
This is the bit of code it is complaining about:

  static function resize($input_file, $output_file, $options, $item=null) {
    graphics::init_toolkit();

    module::event("graphics_resize", $input_file, $output_file, $options, $item);

    if (@filesize($input_file) == 0) {
      throw new Exception("@todo EMPTY_INPUT_FILE");
    }

so the $input_file can't be read since it does exist as you said , or some other issue making it a empty file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
Nickp

Joined: 2008-11-18
Posts: 10
Posted: Tue, 2012-07-31 00:34

Sorry I've been out of commission. been out of town.

Dave, thanks for the effort, really appreciate it. You can't account for other's mistakes, however, and this one was mine. I had forgotten to move the square thumbs module to the new install. that was the problem.
I found it going deeper in the forums. The Romans had it right all along!

Thanks again.

Nick

P.S. Doh!

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26097
Posted: Tue, 2012-07-31 01:13

:-)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments