Resize not working

osomanden
osomanden's picture

Joined: 2003-11-25
Posts: 64
Posted: Wed, 2009-10-14 10:22

Greetings - again ;-)

Just tried to wipe the directory clean. And images copied (var/albums) to another path.
After installing the G3 Beta3 again, moving images back (now with a clean db) I get errors when resizing images.

Log:
2009-10-14 10:57:55 +01:00 --- error: Caught exception rebuilding image: Tranemåla 2009
The specified directory, /, is not writable.
#0 /home/web/www.dulmens.dk/modules/gallery/helpers/gallery_graphics.php(69): Image_Core->save('/home/web/www.d...')
#1 [internal function]: gallery_graphics_Core::resize('/home/web/www.d...', '/home/web/www.d...', Array)
#2 /home/web/www.dulmens.dk/modules/gallery/helpers/graphics.php(152): call_user_func_array('gallery_graphic...', Array)
#3 /home/web/www.dulmens.dk/modules/gallery/helpers/gallery_task.php(70): graphics_Core::generate(Object(Item_Model))
#4 [internal function]: gallery_task_Core::rebuild_dirty_images(Object(Task_Model))
#5 /home/web/www.dulmens.dk/modules/gallery/helpers/task.php(81): call_user_func_array('gallery_task::r...', Array)
#6 /home/web/www.dulmens.dk/modules/gallery/controllers/admin_maintenance.php(185): task_Core::run('7')
#7 [internal function]: Admin_Maintenance_Controller->run('7')
#8 /home/web/www.dulmens.dk/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#9 [internal function]: Admin_Controller->__call('maintenance', Array)
#10 /home/web/www.dulmens.dk/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#11 [internal function]: Kohana::instance()
#12 /home/web/www.dulmens.dk/system/core/Event.php(209): call_user_func(Array)
#13 /home/web/www.dulmens.dk/system/core/Bootstrap.php(55): Event::run('system.execute')
#14 /home/web/www.dulmens.dk/index.php(86): require('/home/web/www.d...')
#15 {main}

Where does the "/" come from? I have not set any paths anywhere.. Is it possible to alter it?

-- Lars

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Wed, 2009-10-14 13:37
Quote:
After installing the G3 Beta3 again, moving images back (now with a clean db) I get errors when resizing images.

How does G3 know that the images exist with a clean DB?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
osomanden
osomanden's picture

Joined: 2003-11-25
Posts: 64
Posted: Thu, 2009-10-15 05:17

He, sorry.. it does not.
But I forgot to mention a copy of the items table was made and reinserted.
So the items table is upto date. And I am able to see the original images. But none that should be resized (handled by G3)

 
osomanden
osomanden's picture

Joined: 2003-11-25
Posts: 64
Posted: Thu, 2009-10-15 08:15

Hmm.. seems the thumbnail creation fails to create directories (and $dir after "cleaning the path" is empty - the / is the .'/' in the end.)
Anyways. Looks like it needs to check wether the directories are existing and hence need to be created.

I have checked. The chown and chmod has been applied and on the system the path is writable.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Thu, 2009-10-15 13:14

Im not sure if just the items table is needed. I suspect there is more needed than just that table.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team