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?
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"));
}
--------------------------------------------
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
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?
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"));
}
--------------------------------------------