Tks, error has disapeard from logs but I'm still without thoses thumbnails ...<div><br></div><div>When I try to get the thumbnail directly, it's empty (<a href="http://172.16.1.195/owncloud/?app=gallery&getfile=ajax/thumbnail.php?img=/Photos/006.jpg">http://172.16.1.195/owncloud/?app=gallery&getfile=ajax/thumbnail.php?img=/Photos/006.jpg</a>)</div>

<div>File is correctly generated on the server side ... </div><div><br></div><div>Normal file is ok (<a href="http://172.16.1.195/owncloud/?app=files&getfile=download.php?file=Photos/006.jpg">http://172.16.1.195/owncloud/?app=files&getfile=download.php?file=Photos/006.jpg</a>)</div>

<div><br></div><div>I realy don't understand ..</div><div><br></div><div>(PS : I try to run it from raspberry pi with debian (memory and execution time are ok))</div><div><br><br><div class="gmail_quote">2012/5/25 Victor Dubiniuk <span dir="ltr"><<a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've just realized that it wouldn't work for windows environment anyway.<div>In order to work everywhere the regular expression should be </div>

<div><br><div>  $thumbnail = preg_replace('/[^\\'. DIRECTORY_SEPARATOR .']*$/', '', OC::$CONFIG_DATADIRECTORY) . 'gallery'. DIRECTORY_SEPARATOR  .urldecode($albumname).'.png';<br>
<div><br></div><div>---</div><div>Victor Dubiniuk</div><div><div class="h5"><div><br>El 25/05/2012 18:15, "Victor Dubiniuk" <<a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a>> escribió:<br>


<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div><br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Hi Christophe,<div><br></div><div>please change the file  <b>apps/gallery/ajax/galleryOp.php</b></div><div>You need to replace the line #45</div><div>  $thumbnail = OC::$CONFIG_DATADIRECTORY.'/../gallery/'.urldecode($albumname).'.png';</div>




<div><br></div><div>with </div><div><br></div><div>  $thumbnail = preg_replace('|[^/]*$|', '', OC::$CONFIG_DATADIRECTORY) . 'gallery'. DIRECTORY_SEPARATOR  . urldecode($albumname).'.png';</div>




<div><br></div><div><br></div><div>It would be nice if you open a bug on this issue since this line affects Windows ownCloud installations as well.</div><div><br></div><div><br></div><div>----</div><div>Victor Dubiniuk</div>




<div><br></div><div><br></div><div><div class="gmail_quote">On Fri, May 25, 2012 at 5:55 PM, Christophe M <span dir="ltr"><<a href="mailto:meumeu1402@gmail.com" target="_blank">meumeu1402@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Using owncloud 4 with lighttpd has an issue with gallery :</div><div><br></div><div>Thumbnails are empty ...</div>




<div><br></div><div>Lighttpd logs give me that :</div><div><br></div><div><i>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</i></div>






<div><i><br></i></div><div><i>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</i></div><div>






<br></div><div>File is present :</div><div><br></div><div><div><i>-rw-r--r-- 1 www-data www-data 246614 May 25 15:45 /var/www/owncloud/data/test/files/../gallery/Photos.png</i></div></div><div><i><br></i></div><div><i>Ideas ?</i></div>




<span><font color="#888888">

<div><br></div>-- <br><div><span>----------------------------------------------------</span></div><div><br></div><div>Un poing levé, une main tendue</div><br>
</font></span><br>_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
<br></blockquote></div></div></div>
</blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="background-color:rgb(255,255,255)">----------------------------------------------------</span></div><div><br></div><div>Un poing levé, une main tendue</div>

<br>
</div>