![]() |
ViewOnline on 1.9. Invalid document ID - 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.9. Invalid document ID (/showthread.php?tid=116) |
ViewOnline on 1.9. Invalid document ID - fleblic - 08-02-2010 I installed version 1.9 Everytime I try to view any document online I get an error page. I get "Invalid document ID" on op.ViewOnline.php?documentid=...... thiese are $_viewOnlineFileTypes and $_enableConverting on my inc.Settings.phpsite: // files with one of the following endings can be viewed online var $_viewOnlineFileTypes = array(".txt",".TXT", ".html",".HTML", ".htm",".HTM", ".pdf", ".PDF", ".jpg",".JPG",".gif", ".png"); //var $_viewOnlineFileTypes = array(); // enable/disable converting of files var $_enableConverting = true; Could you help me? (08-02-2010, 10:52 PM)fleblic Wrote: I installed version 1.9 Problem solved. Proper order definitions of variables $documentid, $document,$version,$content in op.ViewOnline.php ------------------------------------- $documentid = $_GET["documentid"]; $document = getDocument($documentid); if (!isset($documentid) || !is_numeric($documentid) || intval($documentid)<1) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } if (!is_object($document)) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } if ($document->getAccessMode($user) < M_READ) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied")); } $version = $_GET["version"]; $content = $document->getContentByVersion($version); if (!isset($version) || !is_numeric($version) || intval($version)<1) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version")); } -------------------------------------------- RE: ViewOnline on 1.9. Invalid document ID - alekseyn - 08-03-2010 Thanks, but this did not solve a problem for me... if I put the echo in every condition block to see what triggers the error, the first condition triggers the error... ---- if (!isset($documentid) || !is_numeric($documentid) || intval($documentid)<1) { echo "1 -".$documentid; UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } ---- because $documentid is empty in my case for any document... any suggestion where to look would be appreciated... ((( RE: ViewOnline on 1.9. Invalid document ID - marvin - 08-04-2010 Hello, I have the same problem with "Invalid document ID" in version 1.9 And I get lots of: "Error getting Text: versioning_info (German)" Beside this everthing works fine, so I thing, database setup und file protection is ok. Thomas RE: ViewOnline on 1.9. Invalid document ID - alekseyn - 08-04-2010 marvin, Please just wait for a little bit... the corrected version is coming out pretty soon... regards, Aleksey RE: ViewOnline on 1.9. Invalid document ID - olga - 08-08-2010 (08-04-2010, 05:30 PM)marvin Wrote: Hello, Hi, to solve errors like "Error getting Text: versioning_info (German)" you must complete lang.inc file in your language folder. The previous error, for example, is solved adding this line to lang.inc file: $text["versioning_info"] = "Versión"; This is the spanish translation, i don't speak german... |