Rebuild Images

Stack
Stack's picture

Joined: 2011-07-26
Posts: 23
Posted: Mon, 2013-09-09 15:39

I don't know how to fix that problem. Many of my pictures are named 'vi:Gallery Image', and on my Gallery3.0.9 are approx. 30.000 pictures.

This is the log file of the attached screenshot.

Quote:
Task Rebuild Images started (task id 359)
Unable to rebuild images for 'vi:Gallery Image'
exception 'Exception' with message '@todo EMPTY_INPUT_FILE' in /www/htdocs/v16.../gallery3/modules/gallery/helpers/gallery_graphics.php:79
Stack trace:
#0 [internal function]: gallery_graphics_Core::resize('/www/htdocs/v16...', '/www/htdocs/v16...', Array, Object(Item_Model))
#1 /www/htdocs/v16.../gallery3/modules/gallery/helpers/graphics.php(171): call_user_func_array('gallery_graphic...', Array)
#2 /www/htdocs/v16.../gallery3/modules/gallery/helpers/gallery_task.php(111): graphics_Core::generate(Object(Item_Model))
#3 [internal function]: gallery_task_Core::rebuild_dirty_images(Object(Task_Model))
#4 /www/htdocs/v16.../gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('gallery_task::r...', Array)
#5 /www/htdocs/v16.../gallery3/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('359')
#6 [internal function]: Admin_Maintenance_Controller->run('359')
#7 /www/htdocs/v16.../gallery3/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#8 [internal function]: Admin_Controller->__call('maintenance', Array)
#9 /www/htdocs/v16.../gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#10 [internal function]: Kohana_Core::instance(NULL)
#11 /www/htdocs/v16.../gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#12 /www/htdocs/v16.../gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#13 /www/htdocs/v16.../gallery3/index.php(116): require('/www/htdocs/v16...')
#14 {main}
Updated: 0 images. Total: 1.

Problem is, I want to set up emboss and always when I arrive the picture above I get the errormessage from emboss: @todo EMPTY_INPUT_FILE...

Need Help.

AttachmentSize
rebuildimage.jpg26.57 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-09-09 16:10

Perhaps the emboss module does not account for the : in the name of the file.
Try renaming it and does it get passed that image?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Stack
Stack's picture

Joined: 2011-07-26
Posts: 23
Posted: Mon, 2013-09-09 16:19

The Emboss Module works great all the time. but some weeks ago the emboss created a error and until than I cant do the emboss overlay update.

if I would know which picture it is, I could delete it ;-)
The ":" is also an many hundreds other pictures, without any problems

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-09-09 16:44

I assumed it was your first attempt at emboss.

Quote:
if I would know which picture it is, I could delete it ;-)

it does give you the title but: "Many of my pictures are named 'vi:Gallery Image'" So I guess we could change the error to give the ID

Edit gallery3/modules/gallery/helpers/gallery_task.php

          } catch (Exception $e) {
            $errors[] = t("Unable to rebuild images for '%title'",
                          array("title" => html::purify($item->title)));

to

          } catch (Exception $e) {
            $errors[] = t("Unable to rebuild images for '%title'",
                          array("title" => html::purify($item->id)));

Then go from there to see if deleting that image fixes the issue. If not then we will have to dig a bit deeper.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Stack
Stack's picture

Joined: 2011-07-26
Posts: 23
Posted: Mon, 2013-09-09 18:35

that was a great hint. thanks.
Rebuilding was successfully, I'm just on updating the emboss module.
I hope this will work without any errors...

 
Stack
Stack's picture

Joined: 2011-07-26
Posts: 23
Posted: Sun, 2013-09-15 18:01
Stack wrote:
that was a great hint. thanks.
Rebuilding was successfully, I'm just on updating the emboss module.
I hope this will work without any errors...

I'm using your Emboss Module some years with my Gallery v3... (now 3.0.9), but this is not important.
It runs well but I think there is something wrong with the database or image.
I have around 25000 images in my Gallery using emboss, but it starts with the error: @todo EMPTY_INPUT_FILE
Than I have downloaded your debug Version, but in the dumb file is no error listed.
This error is not coming anymore, but if i start "Update photo embossing" it starts to run... around image 16xxx it breaks up and after starting "Update photo embossing" again there only shows me "Load..." and nothing happened.
I have tried to disable all Overlays and start again... then it starts and after the image 16xxx it stops again.

Maybe do you have an idea to help me or find the problem.

Thanks in advance.
Stack