Call to undefined function getrusage() v4072

Having trouble installing Group-Office? No worries. Help is on the way.

Moderator: Developers

Call to undefined function getrusage() v4072

Postby JHS » Thu Jul 19, 2012 7:11 pm

[19-Jul-2012 19:13:03 UTC] PHP Fatal error: Call to undefined function getrusage() in (my path cut out)\groupoffice\go\base\Config.php on line 1021

Any ideas as to why when you enable DeBug option is crashes the whole thing with this error? Debug is kind of important to have.
JHS
 
Posts: 89
Joined: Thu Jun 07, 2012 12:24 am

REASON - Re: Call to undefined function getrusage() v4072

Postby JHS » Thu Jul 19, 2012 7:15 pm

REASON it does this..

http://php.net/manual/en/function.getrusage.php

Inside this page it says
"Note: This function is not implemented on Windows platforms."

So anyone trying to run Debug on windows servers for GO we're dead in the water for useful information now. Why cut off the windows server people??
JHS
 
Posts: 89
Joined: Thu Jun 07, 2012 12:24 am

Re: Call to undefined function getrusage() v4072

Postby JHS » Thu Jul 19, 2012 7:38 pm

WORK AROUND
Comment out the getruseage line

Now we get Debug reports in the log file without the entire system crashing. And this presents us with LDAP SQL error information as follows:

[test.user2] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')))
[test.user2] WHERE 1
[test.user2] GROUP BY t.`id`
[test.user2] ORDER BY `sort_order` ASC' at line 3
[test.user2]
[test.user2] Full SQL Query: SELECT `t`.`id`, `t`.`version`, `t`.`sort_order`, `t`.`admin_menu`, `t`.`acl_id`, `t`.`enabled`
[test.user2] FROM `go_modules` t
[test.user2] INNER JOIN go_acl ON (`t`.`acl_id` = go_acl.acl_id AND (go_acl.user_id=56 OR go_acl.group_id IN ()))
[test.user2] WHERE 1
[test.user2] GROUP BY t.`id`
[test.user2] ORDER BY `sort_order` ASC
[test.user2]
[test.user2] #0 (my path edited)\groupoffice\go\base\db\ActiveRecord.php(1228): PDO->query('SELECT `t`.`id`...')
[test.user2] #1 (my path edited)\groupoffice\go\base\ModuleCollection.php(159): GO_Base_Db_ActiveRecord->find(Object(GO_Base_Db_FindParams))
[test.user2] #2 (my path edited)\groupoffice\go\base\Language.php(223): GO_Base_ModuleCollection->getAllModules()
[test.user2] #3 (my path edited)\groupoffice\views\Extjs3\default_scripts.inc.php(248): GO_Base_Language->getAllLanguage()
[test.user2] #4 (my path edited)\groupoffice\views\Extjs3\themes\Default\layout.inc.php(32): require('C:\apache\htdoc...')
[test.user2] #5 (my path edited)\groupoffice\views\Extjs3\index.php(90): require_once('C:\apache\htdoc...')
[test.user2] #6 (my path edited)\groupoffice\go\base\controller\AbstractController.php(186): require('C:\apache\htdoc...')
[test.user2] #7 (my path edited)\groupoffice\controller\AuthController.php(44): GO_Base_Controller_AbstractController->render('index')
[test.user2] #8 (my path edited)\groupoffice\go\base\controller\AbstractController.php(317): GO_Core_Controller_Auth->actionInit(Array)
[test.user2] #9 (my path edited)\groupoffice\go\base\Router.php(122): GO_Base_Controller_AbstractController->run('', Array)
[test.user2] #10 (my path edited)\groupoffice\index.php(59): GO_Base_Router->runController()
[test.user2] #11 {main}
[test.user2] EXCEPTION: exception 'Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')))
[test.user2] WHERE 1
[test.user2] GROUP BY t.`id`
[test.user2] ORDER BY `sort_order` ASC' at line 3
[test.user2]
[test.user2] Full SQL Query: SELECT `t`.`id`, `t`.`version`, `t`.`sort_order`, `t`.`admin_menu`, `t`.`acl_id`, `t`.`enabled`
[test.user2] FROM `go_modules` t
[test.user2] INNER JOIN go_acl ON (`t`.`acl_id` = go_acl.acl_id AND (go_acl.user_id=56 OR go_acl.group_id IN ()))
[test.user2] WHERE 1
[test.user2] GROUP BY t.`id`
[test.user2] ORDER BY `sort_order` ASC
[test.user2]
[test.user2] #0 (my path edited)\groupoffice\go\base\db\ActiveRecord.php(1228): PDO->query('SELECT `t`.`id`...')
[test.user2] #1 (my path edited)\groupoffice\go\base\ModuleCollection.php(159): GO_Base_Db_ActiveRecord->find(Object(GO_Base_Db_FindParams))
[test.user2] #2 (my path edited)\groupoffice\go\base\Language.php(223): GO_Base_ModuleCollection->getAllModules()
[test.user2] #3 (my path edited)\groupoffice\views\Extjs3\default_scripts.inc.php(248): GO_Base_Language->getAllLanguage()
[test.user2] #4 (my path edited)\groupoffice\views\Extjs3\themes\Default\layout.inc.php(32): require('C:\apache\htdoc...')
[test.user2] #5 (my path edited)\groupoffice\views\Extjs3\index.php(90): require_once('C:\apache\htdoc...')
[test.user2] #6 (my path edited)\groupoffice\go\base\controller\AbstractController.php(186): require('C:\apache\htdoc...')
[test.user2] #7 (my path edited)\groupoffice\controller\AuthController.php(44): GO_Base_Controller_AbstractController->render('index')
[test.user2] #8 (my path edited)\groupoffice\go\base\controller\AbstractController.php(317): GO_Core_Controller_Auth->actionInit(Array)
[test.user2] #9 (my path edited)\groupoffice\go\base\Router.php(122): GO_Base_Controller_AbstractController->run('', Array)
[test.user2] #10 (my path edited)\groupoffice\index.php(59): GO_Base_Router->runController()
[test.user2] #11 {main}' in (my path edited)\groupoffice\go\base\db\ActiveRecord.php:1248
[test.user2] Stack trace:
[test.user2] #0 (my path edited)\groupoffice\go\base\ModuleCollection.php(159): GO_Base_Db_ActiveRecord->find(Object(GO_Base_Db_FindParams))
[test.user2] #1 (my path edited)\groupoffice\go\base\Language.php(223): GO_Base_ModuleCollection->getAllModules()
[test.user2] #2 (my path edited)\groupoffice\views\Extjs3\default_scripts.inc.php(248): GO_Base_Language->getAllLanguage()
[test.user2] #3 (my path edited)\groupoffice\views\Extjs3\themes\Default\layout.inc.php(32): require('C:\apache\htdoc...')
[test.user2] #4 (my path edited)\groupoffice\views\Extjs3\index.php(90): require_once('C:\apache\htdoc...')
[test.user2] #5 (my path edited)\groupoffice\go\base\controller\AbstractController.php(186): require('C:\apache\htdoc...')
[test.user2] #6 (my path edited)\groupoffice\controller\AuthController.php(44): GO_Base_Controller_AbstractController->render('index')
[test.user2] #7 (my path edited)\groupoffice\go\base\controller\AbstractController.php(317): GO_Core_Controller_Auth->actionInit(Array)
[test.user2] #8 (my path edited)\groupoffice\go\base\Router.php(122): GO_Base_Controller_AbstractController->run('', Array)
[test.user2] #9 (my path edited)\groupoffice\index.php(59): GO_Base_Router->runController()
[test.user2] #10 {main}
[test.user2] Page load took: 0.63718199729919ms
[test.user2] Peak memory usage:2.28MB
[test.user2] --------------------
[test.user2]
JHS
 
Posts: 89
Joined: Thu Jun 07, 2012 12:24 am

Re: Call to undefined function getrusage() v4072

Postby Intermesh » Fri Jul 20, 2012 9:10 am

I removed this function from the code. Version 4.0.73 won't have it anymore.
Best regards,

Merijn Schering
Intermesh
User avatar
Intermesh
Site Admin
 
Posts: 7130
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch


Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 1 guest