Photo's are just not showing

pande

Joined: 2005-05-08
Posts: 56
Posted: Mon, 2009-06-22 20:32

Hi there,

I just downloaded and installed the latest G3 build (3.0 pre beta 2 (git) ) Everything seems to work fine, including uploading photos, but after uploading, photos are just not showing! I've made an album, simply clicked on 'Add some', selected a couple of pictures (all jpg), then it says 'Uploading' and 'Complete', but after clicking 'Done', no photo is to be seen.

In the Gallery stats it says '0 photos' as well... First I thought it had something to do with the GD Graphical part, but now I can see on my ftp-server, the folders aren't created and thus the pictures aren't being stored, though I have given the folder 'VAR' chmod -777... But I can't seem to create any folders the 'hard way' using FTP in /var/ as well... Is there something I'm doing wrong, or is this something my hosting provider should fix? Anyone any suggestions? Thanks!!

This is my Platform Information

* Operating System: Linux
* Apache: Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.0.3 Perl/v5.8.8
* PHP: 5.2.4-2ubuntu5.6
* MySQL: 5.0.51a-3ubuntu5.4
* Server load: Unavailable

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2009-06-24 00:13

What's in your var/logs files?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
pande

Joined: 2005-05-08
Posts: 56
Posted: Wed, 2009-06-24 07:50

Hi Bharat, this is in my logfile, hope you can help me out:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-06-24 00:48:08 +02:00 --- error: Caught exception rebuilding image: photo1
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(111): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo1.jpg', 'photo1', NULL, 2)
#4 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#7 [internal function]: Server_Add_Controller->add_photo('4')
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#13 {main}
2009-06-24 00:48:08 +02:00 --- error: Caught exception rebuilding image: photo1999
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(60): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(115): item_Core::make_album_cover(Object(Item_Model))
#4 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo1.jpg', 'photo1', NULL, 2)
#5 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#7 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#8 [internal function]: Server_Add_Controller->add_photo('4')
#9 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#10 [internal function]: Kohana::instance()
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#13 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#14 {main}
2009-06-24 00:48:08 +02:00 --- error: Caught exception rebuilding image: Zomervakantie @ photo
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(60): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(63): item_Core::make_album_cover(Object(Item_Model))
#4 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(115): item_Core::make_album_cover(Object(Item_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo1.jpg', 'photo1', NULL, 2)
#6 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#7 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#9 [internal function]: Server_Add_Controller->add_photo('4')
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#11 [internal function]: Kohana::instance()
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#13 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#14 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#15 {main}
2009-06-24 00:48:08 +02:00 --- error: Caught exception rebuilding image: 1999
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(60): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(63): item_Core::make_album_cover(Object(Item_Model))
#4 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(63): item_Core::make_album_cover(Object(Item_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(115): item_Core::make_album_cover(Object(Item_Model))
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo1.jpg', 'photo1', NULL, 2)
#7 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#9 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#10 [internal function]: Server_Add_Controller->add_photo('4')
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#12 [internal function]: Kohana::instance()
#13 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#14 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#15 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#16 {main}
2009-06-24 00:48:08 +02:00 --- error: Caught exception rebuilding image: Gallery
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(60): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(63): item_Core::make_album_cover(Object(Item_Model))
#4 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(63): item_Core::make_album_cover(Object(Item_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/item.php(63): item_Core::make_album_cover(Object(Item_Model))
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(115): item_Core::make_album_cover(Object(Item_Model))
#7 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo1.jpg', 'photo1', NULL, 2)
#8 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#9 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#11 [internal function]: Server_Add_Controller->add_photo('4')
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#13 [internal function]: Kohana::instance()
#14 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#15 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#16 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#17 {main}
2009-06-24 00:48:09 +02:00 --- error: Caught exception rebuilding image: photo2
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(111): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo2.jpg', 'photo2', NULL, 2)
#4 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#7 [internal function]: Server_Add_Controller->add_photo('4')
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#13 {main}
2009-06-24 00:48:09 +02:00 --- error: Caught exception rebuilding image: photo3
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(111): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo3.jpg', 'photo3', NULL, 2)
#4 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#7 [internal function]: Server_Add_Controller->add_photo('4')
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#13 {main}
2009-06-24 00:48:10 +02:00 --- error: Caught exception rebuilding image: photo4
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(111): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo4.jpg', 'photo4', NULL, 2)
#4 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#7 [internal function]: Server_Add_Controller->add_photo('4')
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#13 {main}
2009-06-24 00:48:10 +02:00 --- error: Caught exception rebuilding image: photo5
@todo EMPTY_INPUT_FILE
#0 [internal function]: graphics_Core::resize('/var/www/vhosts...', '/var/www/vhosts...', Array)
#1 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/graphics.php(155): call_user_func_array(Array, Array)
#2 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/photo.php(111): graphics_Core::generate(Object(Item_Model))
#3 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/helpers/server_add_task.php(65): photo_Core::create(Object(Item_Model), '/var/www/vhosts...', 'photo5.jpg', 'photo5', NULL, 2)
#4 [internal function]: server_add_task_Core::add_from_server(Object(Task_Model))
#5 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/gallery/helpers/task.php(78): call_user_func_array('server_add_task...', Array)
#6 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/modules/server_add/controllers/server_add.php(141): task_Core::run('4')
#7 [internal function]: Server_Add_Controller->add_photo('4')
#8 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Server_Add_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/vhosts/mydomain.nl/subdomains/fotos/httpdocs/index.php(85): require('/var/www/vhosts...')
#13 {main}

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 04:24

Try using the "add photos" button instead of the server_add module. Does that work? We're going to overhaul server_add for beta 2.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
pande

Joined: 2005-05-08
Posts: 56
Posted: Mon, 2009-06-29 09:05

Yup Bharat, that works. I can add single (or multiple) photos, but since I have 15.000 pictures in many different albums to re-upload to my new server, that will take me a lot of time! Hopefully things will be better in beta 2... Thanks anyway!