![]() |
ViewOnline on 1.8.X does not work at all. - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11) +--- Thread: ViewOnline on 1.8.X does not work at all. (/showthread.php?tid=98) |
ViewOnline on 1.8.X does not work at all. - tme - 07-02-2010 hello, I have tested 1.8.1 and 1.8.2 installed from scratch so with a fresh empty database(no migration involved) I am configured as: * var $_viewOnlineFileTypes = array(".jpg", ".txt", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".doc", ".xls",".ppt",".mpp",".dot",".TXT", ".HTML", ".HTM", ".PDF", ".GIF", ".PNG", ".JPG", ".DOC", ".XLS",".PPT",".MPP" ); // enable/disable converting of files * var $_enableConverting = false; Now I try to "View on line" a simple excel file. Excel opens with the following error content inside the file: <b>Warning</b>: readfile(E:/mydms-FilesStore/MyDMS181/1048576/5/data.xls) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in <b>E:\wamp\www\letoDMS-1.8.1\op\op.ViewOnline.php</b> on line <b>65</b><br /> As you can see LetoDMS tries to open the file with a wrong naming, in fact the old 1.7.x naming i.e "data.xls" and not "1.xls", that is the reason while it fails. Showstopper issue on a very basic functionnal test! ![]() Thanks for helping. tme. RE: ViewOnline on 1.8.X does not work at all. - Doudoux - 07-02-2010 In file "op\op.ViewOnline.php" Change header("Content-Length: " . filesize($settings->_contentDir . $content->getDir() . $content->getFileName())); header("Expires: 0"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); readfile($settings->_contentDir . $content->getDir() . $content->getFileName()); to header("Content-Length: " . filesize($settings->_contentDir . $content->getPath())); header("Expires: 0"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); readfile($settings->_contentDir . $content->getPath()); RE: ViewOnline on 1.8.X does not work at all. - administrator - 07-10-2010 there is a new fix coming for LetoDMS 1.8.2 this patch will fix the problem for view online function. We Would like to Thanks Matteo and his team for the patch and we would like to thank everyone for patience with all us here at LetoDMS. and sorry for the inconvenience LetoDMS Team. |