![]() |
Cannot Upload Files - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10) +--- Thread: Cannot Upload Files (/showthread.php?tid=322) |
Cannot Upload Files - dadams982 - 07-08-2011 Admin: I apologize, I realize I posted my previous thread in the bugs forum and somehow passed up this tech support area. I am sure this is something I am doing wrong or a misconfiguration. Please delete that bug report post that mirrors this one. Messed with the demo and this DMS far surpassed opendocman... now time to just learn it! ![]() I am getting the infamous file upload error has occurred screen with any file I try to upload. Currently my test file is only a 50K text document. I ran check.php and everything came back fine. I move the data directory into my DMS directory instead of in the opt directory and even opened up the perms to 777 on the folder. Here is the error I get in the log file... one for each time I have tried uploading a file. Hopefully you gurus have seen this on. 2011/07/07 20:53 admin (xxx.xxx.xxx.xxx) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'DMS' 2011/07/07 20:57 admin (xxx.xxx.xxx.xxx) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'DMS' 2011/07/07 21:01 admin (xxx.xxx.xxx.xxx) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'DMS' 2011/07/07 21:03 admin (xxx.xxx.xxx.xxx) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'DMS' 2011/07/07 21:03 admin (xxx.xxx.xxx.xxx) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'DMS' 2011/07/07 21:07 admin (xxx.xxx.xxx.xxx) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'DMS' I am running mysql 5.1.57 php version is 5.3.6 My check.php is below: LetoDMS 3.0.0 check configuration (check version : 3.00-06) Check Apache configuration Apache version: Apache mod_rewrite : Ok Check PHP configuration PHP version: 5.3.6 gd2 : Ok mbstring : Ok database - mysql - : Ok ldap (optional) : Error Active PHP extension: php_ldap (optional) Check LetoDMS configuration settings->_rootDir : Ok settings->_coreDir : Ok settings->_httpRoot : Ok settings->_ADOdbPath : Ok database : Ok LetoDMS version: 3.0.0 (2011-07-07 21:17:12) database : Ok Check other configuration Cookies : OK Informations Limit size for uploading file (upload_max_filesize): 10M Limit size for uploading file (post_max_size): 8M SMTP server (SMTP): localhost Limits of the execution time (max_execution_time): 60 s Safe mode (safe_mode): OK Open Basedir (open_basedir): OK END Any ideas? RE: Cannot Upload Files - administrator - 07-08-2011 (07-08-2011, 08:15 PM)dadams982 Wrote: Admin: I apologize, I realize I posted my previous thread in the bugs forum and somehow passed up this tech support area. I am sure this is something I am doing wrong or a misconfiguration. Please delete that bug report post that mirrors this one. hi thanks for trying LetoDMS please post your setting file too please. so we can investigate further thanks LetoDMS team RE: Cannot Upload Files - dadams982 - 07-08-2011 Thanks for the response admin. Here is my conf file with the identifying info masked. <?php // MyDMS. Document Management System // Copyright © 2002-2005 Markus Westphal // Copyright © 2006-2008 Malcolm Cowe // Copyright © 2010 Matteo Lucarelli // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. class Settings { // Name of site -- used in the page titles. Default: MyDMS var $_siteName = "xxxxxxxxx Document Management"; // Message to display at the bottom of every page. var $_footNote = "Consider All Documents Proprietary Information"; // if true the disclaimer message the lang.inc files will be print // on the bottom of the page var $_printDisclaimer = true; // Default page on login. Defaults to out/out.ViewFolder.php var $_siteDefaultPage = ""; // ID of guest-user used when logged in as guest (mostly no need to change) var $_guestID = 2; // ID of root-folder (mostly no need to change) var $_rootFolderID = 1; // If you want anybody to login as guest, set the following line to true // note: guest login should be used only in a trusted environment var $_enableGuestLogin = false; // Restricted access: only allow users to log in if they have an entry in // the local database (irrespective of successful authentication with LDAP). var $_restricted = true; // Strict form checking. If set to true, then all fields in the form will // be checked for a value. If set to false, then (most) comments and // keyword fields become optional. Comments are always required when // submitting a review or overriding document status. var $_strictFormCheck = false; // Path to where letoDMS is located var $_rootDir = "/var/www/vhosts/xxxxxxxx/httpdocs/dms/"; // Path to LetoDMS_Core // If left empty LetoDMS_Core will used from the standard include path var $_coreDir = "/var/www/vhosts/xxxxxxxxxx/httpdocs/dms/LetoDMS_Core/"; // The relative path in the URL, after the domain part. Do not include the // http:// prefix or the web host name. e.g. If the full URL is // http://www.example.com/mydms/, set $_httpRoot = "/mydms/". // If the URL is http://www.example.com/, set $_httpRoot = "/". var $_httpRoot = "/dms/"; // Where the uploaded files are stored (best to choose a directory that // is not accessible through your web-server) var $_contentDir = "/var/www/vhosts/xxxxxxxxxxxx/httpdocs/dms/data/"; // To work around limitations in the underlying file system, a new // directory structure has been devised that exists within the content // directory ($_contentDir). This requires a base directory from which // to begin. Usually leave this to the default setting, 1048576, but can // be any number or string that does not already exist within $_contentDir. var $_contentOffsetDir = "1048576"; // Maximum number of sub-directories per parent directory. Default: 32700. var $_maxDirID = 32700; // default language (name of a subfolder in folder "languages") var $_language = "English"; // users are notified about document-changes that took place within the // last $_updateNotifyTime seconds var $_updateNotifyTime = 86400; // means 24 hours // files with one of the following endings can be viewed online // (USE ONLY LOWER CASE CHARACTERS) // to disable: var $_viewOnlineFileTypes = array(); var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg"); // enable/disable converting of files var $_enableConverting = true; // default style (name of a subfolder in folder "styles") var $_theme = "clean"; // Workaround for page titles that go over more than 2 lines. var $_titleDisplayHack = true; // enable/disable automatic email notification var $_enableEmail = true; // enable/disable group and user view for all users var $_enableUsersView = true; // enable/disable listing administrator as reviewer/approver var $_enableAdminRevApp = false; // the name of the versioning info file created by the backup tool var $_versioningFileName = "versioning_info.txt"; // enable/disable log system var $_logFileEnable = true; // the log file rotation (h=hourly, d=daily, m=monthly) var $_logFileRotation = "d"; // enable/disable users images var $_enableUserImage = true; // enable/disable calendar var $_enableCalendar = true; // calendar default view ("w" for week,"m" for month,"y" for year) var $_calendarDefaultView = "y"; // first day of the week (0=sunday, 1=monday, 6=saturday) var $_firstDayOfWeek = 0; // enable/disable display of the folder tree var $_enableFolderTree = true; // 0 to start with tree hidden // 1 to start with tree shown and first level expanded // 2 to start with tree shown fully expanded var $_expandFolderTree = 1; // enable/disable editing of users own profile var $_disableSelfEdit = false; // if enabled admin can login only by specified IP addres // leave ampty to turn off access control // NOTE: works only with local autentication (no LDAP) var $_adminIP = ""; // ----------- Database-Setup -------------------------------------------- // Path to adodb. This is the directory containing the adodb directory // If left empty adodb will be used from the standard include path var $_ADOdbPath = "/var/www/vhosts/xxxxx.com/httpdocs/dms/"; // DB-Driver used by adodb (see adodb-readme) var $_dbDriver = "mysql"; // DB-Server var $_dbHostname = "localhost"; // database where the tables for mydms are stored (optional - see adodb-readme) var $_dbDatabase = "xxxxxxx"; // username for database-access var $_dbUser = "xxxxxxx"; // password for database-access var $_dbPass = "xxxxxxxxxx"; // --- LDAP Authentication Setup ----------------------------------------- // var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com // var $_ldapPort = 389; // Optional. // var $_ldapBaseDN = ""; function Settings() { // files with one of the following endings will be converted with the // given commands for windows users $this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}", ".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}", ".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}"); // uncomment the next line for linux users // $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}"); } } $settings = new Settings(); ?> RE: Cannot Upload Files - geckogt - 07-29-2011 Same problem here, check.php file all ok ------------------------- LetoDMS 3.0.0 check configuration (check version : 3.00-06) Check Apache configuration Apache version: Apache/2.2.3 (Red Hat) mod_rewrite : Ok Check PHP configuration PHP version: 5.2.12 gd2 : Ok mbstring : Ok database - mysql - : Ok ldap (optional) : Ok Check LetoDMS configuration settings->_rootDir : Ok settings->_coreDir : Ok settings->_httpRoot : Ok settings->_ADOdbPath : Ok database : Ok LetoDMS version: 3.0.0 (2011-07-28 14:40:48) database : Ok Check other configuration Cookies : OK Informations Limit size for uploading file (upload_max_filesize): 100M Limit size for uploading file (post_max_size): 60M SMTP server (SMTP): localhost Limits of the execution time (max_execution_time): 600 s Safe mode (safe_mode): OK Open Basedir (open_basedir): OK END ---------------------- LOG FILE 2011/07/28 15:30 admin (190.148.197.197) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'Test' 2011/07/28 15:37 admin (190.148.197.197) op.Login 2011/07/28 15:38 admin (190.148.197.197) op.AddSubFolder?name=test2&folderid=3 2011/07/28 15:39 admin (190.148.197.197) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'test2' 2011/07/28 16:30 admin (190.148.197.197) op.Login 2011/07/28 16:31 admin (190.148.197.197) op.AddDocument UI::exitError error=An error has occured pagetitle=Folder 'test2' -------------------- Any help would be appreciated |