Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File upload Problems
#11
The installation of adodb needs only a user permission on your own server home.
The files can be put inside the letoDMS directory. Le lastest version of letoDMS includes yet the Adobd directory then nothing should be done there.

Your problem can be due to a uncorrect "data" folder settings (the folder where DMS put the files) or inc/inc.Settings.php.
The settings file is completely commented, then read the comment to modify it.

Have a look to the HOWTO section of the forum too.
Reply
#12
I had this error, and it was simply because I had NO folder with the name "data" in the root on my leto DMS installation ....
matteo is right - you either create this folder, or change the setting in inc/inc.Settings.php

(Matteo, we probably need to either create this folder in the distribution pack, or change the settings file in it, to avoid confusing people)
Reply
#13
thx to you both.
I created a data folder with CHMOD 777 (/users/schule/www/1/data/) and modified the inc/inc.Settings.php.

And I have still the error message.

Any suggestions?

Ok, is just a test:

try myDMS

admin/admin
Reply
#14
please copy the exact error message in your reply
you have an incorrect setting in our inc/inc.Settings.php.

Please make sure you use the full path in your log folder setting...

if still no luck, attach your settings file here... I'll check it.
Reply
#15
The exact error message is

Warning: fopen(/download/20100809.log) [function.fopen]: failed to open stream: No such file or directory in /users/schule/www/1/inc/inc.Utils.php on line 244

Warning: fwrite() expects parameter 1 to be resource, boolean given in /users/schule/www/1/inc/inc.Utils.php on line 245

Warning: fclose() expects parameter 1 to be resource, boolean given in /users/schule/www/1/inc/inc.Utils.php on line 246

I think I'm to stupid to make the correct settings... Huh

Here is my inc.settings.php
PHP Code:
<?php
//    MyDMS. Document Management System
//    Copyright (C) 2002-2005  Markus Westphal
//    Copyright (C) 2006-2008 Malcolm Cowe
//
//    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 "Dokumenten Management System der Grundschule Auetal";

    
// Message to display at the bottom of every page.
    
var $_footNote "";
    
    
// 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 "";

    
// IDs of admin-user, guest-user and root-folder (no need to change)
    
var $_adminID 1;
    var 
$_guestID 2;
    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 mydms is located
    
var $_rootDir "/users/schule/www/1/";

    
// 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 "/1/";

    
// Where the uploaded files are stored (best to choose a directory that
    // is not accessible through your web-server)
    
var $_contentDir "/download/";

    
// 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 "German";

    
// 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
    
var $_viewOnlineFileTypes = array(".txt"".html"".htm"".pdf"".gif"".png"".jpg");
    
//var $_viewOnlineFileTypes = array();

    // 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;
    
    
// false to don't list administrator as reviewer/approver
    
var $_enableAdminRevApp false;
    
    
// the name of the versioning info file created by the backup tool
    
var $_versioningFileName "versioning_info.txt";
    
    
// set false to disable log system
    
var $_logFileEnable true;
    
    
// the log file rotation (h=hourly, d=daily, m=monthly)
    
var $_logFileRotation "d";
    
    
// enable users images
    
var $_enableUserImage false;

    
// -------------------------------- Database-Setup --------------------------------------------

    //Path to adodb
    
var $_ADOdbPath "/users/schule/www/1/adodb/";

    
//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 "schule_letodms";

    
//username for database-access
    
var $_dbUser "schule_letodms";

    
//password for database-access
    
var $_dbPass "mypassword";

    
// -------------------------------- 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}");
        
// For linux users
        // $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
    
}
}

$settings = new Settings();

?>

I hope you find the error because this script is perfect for my intent.
Thanks for your very, very good support and your patience!!!!
Reply
#16
make sure you have a "download" directory in your "/users/schule/www/1/" folder and the folder is writable by the server "755" or "777"
try this:

Here is my inc.settings.php
PHP Code:
<?php
//    MyDMS. Document Management System
//    Copyright (C) 2002-2005  Markus Westphal
//    Copyright (C) 2006-2008 Malcolm Cowe
//
//    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 "Dokumenten Management System der Grundschule Auetal";

    
// Message to display at the bottom of every page.
    
var $_footNote "";
    
    
// 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 "";

    
// IDs of admin-user, guest-user and root-folder (no need to change)
    
var $_adminID 1;
    var 
$_guestID 2;
    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 mydms is located
    
var $_rootDir "/users/schule/www/1/";

    
// 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 "/1/";

    
// Where the uploaded files are stored (best to choose a directory that
    // is not accessible through your web-server)
    
var $_contentDir "/users/schule/www/1/download/";

    
// 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 "German";

    
// 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
    
var $_viewOnlineFileTypes = array(".txt"".html"".htm"".pdf"".gif"".png"".jpg");
    
//var $_viewOnlineFileTypes = array();

    // 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;
    
    
// false to don't list administrator as reviewer/approver
    
var $_enableAdminRevApp false;
    
    
// the name of the versioning info file created by the backup tool
    
var $_versioningFileName "versioning_info.txt";
    
    
// set false to disable log system
    
var $_logFileEnable true;
    
    
// the log file rotation (h=hourly, d=daily, m=monthly)
    
var $_logFileRotation "d";
    
    
// enable users images
    
var $_enableUserImage false;

    
// -------------------------------- Database-Setup --------------------------------------------

    //Path to adodb
    
var $_ADOdbPath "/users/schule/www/1/adodb/";

    
//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 "schule_letodms";

    
//username for database-access
    
var $_dbUser "schule_letodms";

    
//password for database-access
    
var $_dbPass "mypassword";

    
// -------------------------------- 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}");
        
// For linux users
        // $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
    
}
}

$settings = new Settings();

?>
Reply
#17
I uploded your inc-Settings.php to my webspace.
I already have a folder "download" chmod 777.

When I try to upload a pdf-file the following error message appears:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/users) is not within the allowed path(s): (/users/schule/temp:/users/schule/www) in /users/schule/www/1/inc/inc.FileUtils.php on line 61

Its a better result as before Cool
only one error message!!
Reply
#18
hmmm....

please read here... http://www.mydigitallife.info/2007/03/15...ect-error/

if you are using your server, then you might know what to do... if you are using the hosting service, please contact them with your error...
Reply
#19
The support from my hoster denied any responsibility for that problem. It says that it is a script problem.

phpinfo shows

open_basedir /users/schule/temp:/users/schule/www /users/schule/temp:/users/schule/www (local value/master value)

is there a solution to by-pass this problem?

I'm a little bit stranded becouse you said its a hosting problem, the hoster says its a script problem... Huh
Reply
#20
Your settings seem ok and the error message MUST be a hosting issue.
You should try to move the "data" directory somwhere else?
Are you shure that www is a real directory? Not a link?
In the latter case the path in the settings must be correct with the real path.
Reply


Forum Jump:


Users browsing this thread: