Tks, error has disapeard from logs but I'm still without thoses thumbnails ...
When I try to get the thumbnail directly, it's empty ( http://172.16.1.195/owncloud/?app=gallery&getfile=ajax/thumbnail.php?img=/Photos/006.jpg ) File is correctly generated on the server side ... Normal file is ok ( http://172.16.1.195/owncloud/?app=files&getfile=download.php?file=Photos/006.jpg ) I realy don't understand .. (PS : I try to run it from raspberry pi with debian (memory and execution time are ok)) 2012/5/25 Victor Dubiniuk <[email protected]> > I've just realized that it wouldn't work for windows environment anyway. > In order to work everywhere the regular expression should be > > $thumbnail = preg_replace('/[^\\'. DIRECTORY_SEPARATOR .']*$/', '', > OC::$CONFIG_DATADIRECTORY) . 'gallery'. DIRECTORY_SEPARATOR > .urldecode($albumname).'.png'; > > --- > Victor Dubiniuk > > El 25/05/2012 18:15, "Victor Dubiniuk" <[email protected]> > escribió: > >> >> Hi Christophe, >>> >>> please change the file *apps/gallery/ajax/galleryOp.php* >>> You need to replace the line #45 >>> $thumbnail = >>> OC::$CONFIG_DATADIRECTORY.'/../gallery/'.urldecode($albumname).'.png'; >>> >>> with >>> >>> $thumbnail = preg_replace('|[^/]*$|', '', OC::$CONFIG_DATADIRECTORY) . >>> 'gallery'. DIRECTORY_SEPARATOR . urldecode($albumname).'.png'; >>> >>> >>> It would be nice if you open a bug on this issue since this line affects >>> Windows ownCloud installations as well. >>> >>> >>> ---- >>> Victor Dubiniuk >>> >>> >>> On Fri, May 25, 2012 at 5:55 PM, Christophe M <[email protected]>wrote: >>> >>>> Using owncloud 4 with lighttpd has an issue with gallery : >>>> >>>> Thumbnails are empty ... >>>> >>>> Lighttpd logs give me that : >>>> >>>> *2012-05-24 21:47:43: (mod_fastcgi.c.2701) FastCGI-stderr: PHP >>>> Warning: >>>> exif_imagetype(/var/www/owncloud/data/test/files/../gallery/Photos.png): >>>> failed to open stream: No such file or directory in >>>> /var/www/owncloud/lib/image.php on line 57* >>>> * >>>> * >>>> *PHP Warning: >>>> fopen(/var/www/owncloud/data/test/files/../gallery/Photos.png): failed to >>>> open stream: No such file or directory in >>>> /var/www/owncloud/lib/response.php on line 150* >>>> >>>> File is present : >>>> >>>> *-rw-r--r-- 1 www-data www-data 246614 May 25 15:45 >>>> /var/www/owncloud/data/test/files/../gallery/Photos.png* >>>> * >>>> * >>>> *Ideas ?* >>>> >>>> -- >>>> ---------------------------------------------------- >>>> >>>> Un poing levé, une main tendue >>>> >>>> >>>> _______________________________________________ >>>> Owncloud mailing list >>>> [email protected] >>>> https://mail.kde.org/mailman/listinfo/owncloud >>>> >>>> >>> >>> _______________________________________________ >>> Owncloud mailing list >>> [email protected] >>> https://mail.kde.org/mailman/listinfo/owncloud >>> >>> > > _______________________________________________ > Owncloud mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/owncloud > > -- ---------------------------------------------------- Un poing levé, une main tendue
_______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
