Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Resolved) [LetoDMS-3.0.0-RC3] - Known bugs and their correction
#1
In "op/op.FolderAccess.php" file change line 95

PHP Code:
<?php 
if (!is_object(getGroup($_GET["groupid"]))) {
to
PHP Code:
<?php 
if (!is_object($dms->getGroup($_GET["groupid"]))) {



In "op/op.ManageNotify.php" file change line 30

PHP Code:
<?php 
function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
$folder->addNotify($userid, true);
to
PHP Code:
<?php 
function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
global
$dms;

$folder->addNotify($userid, true);


In "out/out.LogManagement.php" file change line 88

PHP Code:
<?php 
if (file_exists($settings->_contentDir.$logname)){
to
PHP Code:
<?php 
if (isset($logname) && (file_exists($settings->_contentDir.$logname)) ) {



In "Core/inc.ClassAccess.php" file add following lines, line 38, in LetoDMS_Core_UserAccess class

PHP Code:
<?php 
function isAdmin() {
return (
$this->_mode == LetoDMS_Core_User::role_admin);
}



In "inc/inc.DBInit.php" file change line 22

PHP Code:
<?php 
ini_set
('include_path', $settings->_ADOdbPath.":".ini_get('include_path'));
to
PHP Code:
<?php 
ini_set
('include_path', $settings->_ADOdbPath.";".ini_get('include_path'));


If you use MySQL under Windows
In "inc.ClassDMS.php" file change line 220
PHP Code:
<?php 
if(!array_search('tblVersion', $tbllist))
to
PHP Code:
<?php 
$tbllist
= explode(',',strtolower(join(',',$tbllist)));
if(!
array_search('tblversion', $tbllist))


Doudoux
Reply
#2
First of all, thanks for the bug reports.

(03-23-2011, 03:25 AM)Doudoux Wrote: In "op/op.FolderAccess.php" file change line 95

PHP Code:
<?php 
if (!is_object(getGroup($_GET["groupid"]))) {
to
PHP Code:
<?php 
if (!is_object($dms->getGroup($_GET["groupid"]))) {

Fixed in next release.

(03-23-2011, 03:25 AM)Doudoux Wrote: In "op/op.ManageNotify.php" file change line 30

PHP Code:
<?php 
function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
$folder->addNotify($userid, true);
to
PHP Code:
<?php 
function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
global
$dms;

$folder->addNotify($userid, true);

Fixed in next release

(03-23-2011, 03:25 AM)Doudoux Wrote: In "out/out.LogManagement.php" file change line 88

PHP Code:
<?php 
if (file_exists($settings->_contentDir.$logname)){
to
PHP Code:
<?php 
if (isset($logname) && (file_exists($settings->_contentDir.$logname)) ) {

using isset() here will not work because $logname is set to NULL, so I check for a value in $logname.

(03-23-2011, 03:25 AM)Doudoux Wrote: In "Core/inc.ClassAccess.php" file add following lines, line 38, in LetoDMS_Core_UserAccess class

PHP Code:
<?php 
function isAdmin() {
return (
$this->_mode == LetoDMS_Core_User::role_admin);
}

Fixed in next release

(03-23-2011, 03:25 AM)Doudoux Wrote: In "inc/inc.DBInit.php" file change line 22

PHP Code:
<?php 
ini_set
('include_path', $settings->_ADOdbPath.":".ini_get('include_path'));
to
PHP Code:
<?php 
ini_set
('include_path', $settings->_ADOdbPath.";".ini_get('include_path'));

I use PATH_SEPARATOR instead. That works on both Unix and Windows.

(03-23-2011, 03:25 AM)Doudoux Wrote: If you use MySQL under Windows
In "inc.ClassDMS.php" file change line 220
PHP Code:
<?php 
if(!array_search('tblVersion', $tbllist))
to
PHP Code:
<?php 
$tbllist
= explode(',',strtolower(join(',',$tbllist)));
if(!
array_search('tblversion', $tbllist))

Fixed in next release.

Uwe
Reply
#3
Hi

Thanks Uwe

Here is a new set of bugs posted in the forum.
I think I made ​​the tour :-)

In "inc/inc.ClassSession.php" file change line 75
PHP Code:
<?php 
$queryStr
= "UPDATE tblSessions SET lastAccess = " . mktime(). " WHERE id = '" . $id . "'";
to
PHP Code:
<?php 
$queryStr
= "UPDATE tblSessions SET lastAccess = " . time(). " WHERE id = '" . $id . "'";
see http://www.php.net/manual/en/function.mktime.php


In "out/out.KeywordChooser.php" file change line 34
PHP Code:
<?php 
$categories
= $dms->getAllKeywordCategories($userids);^M
to
PHP Code:
<?php 
$categories
= $dms->getAllKeywordCategories($userids);


In "out/out.UserDefaultKeywords.php" file change line 70
PHP Code:
<?php 
if ($category->getID()==$_GET["categoryid"]) $selected=$count;
to
PHP Code:
<?php 
if (isset($_GET["categoryid"]) && $category->getID()==$_GET["categoryid"]) $selected=$count;

Doudoux
Reply
#4
(03-24-2011, 03:34 AM)Doudoux Wrote: In "inc/inc.ClassSession.php" file change line 75
PHP Code:
<?php 
$queryStr
= "UPDATE tblSessions SET lastAccess = " . mktime(). " WHERE id = '" . $id . "'";
to
PHP Code:
<?php 
$queryStr
= "UPDATE tblSessions SET lastAccess = " . time(). " WHERE id = '" . $id . "'";
see http://www.php.net/manual/en/function.mktime.php
mktime() returns a timestamp if called without parameters, just like time(). Using mktime() may not be very common, but it should not make a difference.

(03-24-2011, 03:34 AM)Doudoux Wrote: In "out/out.KeywordChooser.php" file change line 34
PHP Code:
<?php 
$categories
= $dms->getAllKeywordCategories($userids);^M
to
PHP Code:
<?php 
$categories
= $dms->getAllKeywordCategories($userids);
If you mean the ^M, this can be found all over the place because of different line endings.
Does this really make problems?

(03-24-2011, 03:34 AM)Doudoux Wrote: In "out/out.UserDefaultKeywords.php" file change line 70
PHP Code:
<?php 
if ($category->getID()==$_GET["categoryid"]) $selected=$count;
to
PHP Code:
<?php 
if (isset($_GET["categoryid"]) && $category->getID()==$_GET["categoryid"]) $selected=$count;
Fixed in next release.

Thanks for testing and reporting the bugs.

Uwe
Reply
#5
(03-24-2011, 02:45 PM)steinm Wrote: mktime() returns a timestamp if called without parameters, just like time(). Using mktime() may not be very common, but it should not make a difference.

PHP note:
Quote:As of PHP 5.1, when called with no arguments, mktime() throws an E_STRICT notice: use the time() function instead.


(03-24-2011, 02:45 PM)steinm Wrote: If you mean the ^M, this can be found all over the place because of different line endings.
Does this really make problems?
[ATTACHMENT NOT FOUND]

doudoux
Reply
#6
Hi

Here is a new bug posted in the forum

In "out.BackupTools.php" file change lines 118 and 173
PHP Code:
<?php 
print "<td>".getLongReadableDate($entry)."</td>\n";
to
PHP Code:
<?php 
print "<td>".getLongReadableDate(filemtime($settings->_contentDir.$entry))."</td>\n";

doudoux
Reply
#7
New version, see [LetoDMS-3.0.0-RC4] - Known bugs and their correction
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)