Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call to undefined method LetoDMS_Core_UserAccess::isAdmin()
#1
Hey everyone,

I got a major problem with assigning reviewers and approvers, Whenever a reviewer is selected I get the following error:

Code:
Fatal error: Call to undefined method LetoDMS_Core_UserAccess::isAdmin() in /usr/local/apache2/letoDMS/Core/inc.ClassDocument.php on line 1389

I tried replacing my current code with the freshly unzipped one and still the same.

Is this a common bug?
I am running 64bit Ubuntu 10.10 server, PHP 5.3.5; MySQL 5.1 on Apache 2.

Thanks.
Reply
#2
Hi

In "inc.ClassAccess.php" file add following lines, line 43, in LetoDMS_Core_UserAccess class

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

Doudoux
Reply
#3
Thanks a lot Doudoux, how come no one else had a problem? or is no one using the 3.0RC2 or are they smart enough to correct these simple errors?

Any ways, I had another question for you, I added 6.4GB of documents (using scripts), now I tried to create a backup archive of the entire thing, at first the output was a blank page after a long while; Then I did it again and left the system to shutdown after 2 hours.
When I check the page I found there was only one archive 54MB large.

I checked the data folder, there are 3 tar archives 6GB each and one tar.gz archive of 54MB.
o/p of the ls -l command:
Code:
root@server:/usr/local/apache2# ls /var/lib/letoDMS/data/ -lh                                                                                                                                  
total 19G                                                                                                                                                                                    
drwxr-xr-x 10137 daemon daemon 164K 2011-03-20 11:54 1048576
-rw-r--r--     1 daemon daemon 6.4G 2011-03-19 15:04 1300536028_1.tar
-rw-r--r--     1 daemon daemon  51M 2011-03-19 15:04 1300536028_1.tar.gz
-rw-r--r--     1 daemon daemon 6.0G 2011-03-19 15:10 1300536290_1.tar
-rw-r--r--     1 daemon daemon 6.0G 2011-03-19 15:10 1300536304_1.tar
-rwxr-xr-x     1 daemon daemon 2.1K 2011-03-14 21:14 20110314.log
-rwxr-xr-x     1 daemon daemon 5.0K 2011-03-15 23:59 20110315.log
-rwxr-xr-x     1 daemon daemon 6.1K 2011-03-16 15:03 20110316.log
-rw-r--r--     1 daemon daemon  530 2011-03-17 08:00 20110317.log
-rw-r--r--     1 daemon daemon 3.5K 2011-03-19 15:00 20110319.log
-rw-r--r--     1 daemon daemon 3.2K 2011-03-20 14:23 20110320.log
-rw-r--r--     1 daemon daemon   44 2011-03-21 07:19 20110321.log
-rwxr-xr-x     1 daemon daemon   88 2011-03-14 15:03 201103.log

Which one do I use?
BTW, is there a problem with PHP 5.3.2?
Sorry for so many questions.
Thanks again for the "isAdmin()" solution.
Max
Reply


Forum Jump:


Users browsing this thread: