Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error while using adddoc.php
#1
Hello,

I want to add a lot of documents to the dms by a shell-script, so I found in the forum, there is a script in utils, but if I use letodms_adddoc like
Code:
utils/letodms-adddoc -F 68 -f /freigabe/Dokumente/installationsanleitung.pdf

I got an error
Code:
PHP Notice:  Undefined property: LetoDMS_Core_Document::$_document in /var/www/letoDMS/LetoDMS_Core/Core/inc.ClassDocument.php on line 161
PHP Notice:  Trying to get property of non-object in /var/www/letoDMS/LetoDMS_Core/Core/inc.ClassDocument.php on line 161
PHP Notice:  Trying to get property of non-object in /var/www/letoDMS/LetoDMS_Core/Core/inc.ClassDocument.php on line 161
Could not add document to folder

Does anybody know what that mean? I'm not firm in php-coding.

I use letoDMS in version 3.3.0

Thanks

Thomas
Reply
#2
(07-14-2012, 05:56 PM)fretti_jule Wrote: Hello,

I want to add a lot of documents to the dms by a shell-script, so I found in the forum, there is a script in utils, but if I use letodms_adddoc like
Code:
utils/letodms-adddoc -F 68 -f /freigabe/Dokumente/installationsanleitung.pdf

I got an error
Code:
PHP Notice:  Undefined property: LetoDMS_Core_Document::$_document in /var/www/letoDMS/LetoDMS_Core/Core/inc.ClassDocument.php on line 161
PHP Notice:  Trying to get property of non-object in /var/www/letoDMS/LetoDMS_Core/Core/inc.ClassDocument.php on line 161
PHP Notice:  Trying to get property of non-object in /var/www/letoDMS/LetoDMS_Core/Core/inc.ClassDocument.php on line 161
Could not add document to folder

Does anybody know what that mean? I'm not firm in php-coding.

I use letoDMS in version 3.3.0

Well, those utility programs are not officially supported and are not guarantied to work, though I use them occasionally without errors. Just verified the latest version and it work perfectly. You could try a newer version than 3.3.0.

Uwe
Reply
#3
Hi,
thanks Uwe.
I found the problem.
The user running letodms-adddoc.php haven't rights writing to the directory of dms-data. If I change the user rights the script running well.

Greeting Thomas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)