Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ViewOnline on 1.8.X does not work at all.
#1
Bug 
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!Sad
Thanks for helping.

tme.
Reply
#2
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());
Reply
#3
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)