LetoDMS Community Forum
bugs in 1.8.1 inc.ClassUI.php - 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: bugs in 1.8.1 inc.ClassUI.php (/showthread.php?tid=80)



bugs in 1.8.1 inc.ClassUI.php - lux - 05-06-2010

Hi all

I have an 1.8.1 LetoDMS test install running on RHEL5.
I find some errors in the apache log files, showing that the php code il using some uninitialized variables.
The errors are:
Code:
Undefined variable: path in /var/www/letodms/inc/inc.ClassDocument.php on line 1301
Undefined variable: folderid in /var/www/letodms/inc/inc.ClassUI.php on line 250
Undefined property:  Settings::$_versioningFileName in /var/www/letodms/out/out.ViewDocument.php on line 170

In the attached files you can find patches which works for me for the first two errors. They are quite obvious.
For the latter error, I don't know how the _versioningFileName should be initialized in the inc.Settings file, since it seems to be undocumented at the moment. What would be a suitable value for it?

Lux


RE: bugs in 1.8.1 inc.ClassUI.php - matteo lucarelli - 06-21-2010

Thank you for the patch.

About the third error: the settings.inc file should contain something like:

// the name of the versioning info file created by the backup tool
var $_versioningFileName = "versioning_info.txt";

It's strange that your system doesn't have this.