MoroGasper / yii-usergroups

Automatically exported from code.google.com/p/yii-usergroups
0 stars 0 forks source link

Cannot get it to work #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am at http://localhost/usergroups/userGroups where i see the documentation. I 
see a menu with the following links - My Profile, Invite User, User List, Root 
Tools, Documentation. Unfortunately all except Root Tools are working. When I 
click on Root Tools, nothing is happening.The Root Tools menu has a link 
'http://localhost/usergroups/userGroups/admin'. No action happens when I click 
on Root Tools. But if I try to open Root Tools on a different tab, an error 
message is displayed (shown below).

Details of my development environment- Apache/2.2.17 (Win32) mod_ssl/2.2.17 
OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Yii Framework/1.1.7

Details of error- PHP Error 
Only variables should be passed by reference 
D:\yiiroot\framework\base\CComponent.php(616) : eval()'d code(1)

The line numbers are 11,15 and 20
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
Stack Trace
#0  +
 D:\yiiroot\framework\base\CComponent.php(616): eval() 
#1  +
 D:\yiiroot\framework\zii\widgets\grid\CDataColumn.php(132): CComponent->evaluateExpression("array_shift(explode(" ",$data->last_occurrence))", array("data" => UsergroupsCron, "row" => 0)) 
#2  +
 D:\yiiroot\framework\zii\widgets\grid\CGridColumn.php(135): CDataColumn->renderDataCellContent(0, UsergroupsCron) 
#3  +
 D:\yiiroot\framework\zii\widgets\grid\CGridView.php(501): CGridColumn->renderDataCell(0) 
#4  +
 D:\yiiroot\framework\zii\widgets\grid\CGridView.php(474): CGridView->renderTableRow(0) 
#5  +
 D:\yiiroot\framework\zii\widgets\grid\CGridView.php(386): CGridView->renderTableBody() 
#6  +
 D:\yiiroot\framework\zii\widgets\CBaseListView.php(158): CGridView->renderItems() 
#7   unknown(0): CBaseListView->renderSection(array("{items}", "items")) 
#8  +
 D:\yiiroot\framework\zii\widgets\CBaseListView.php(141): preg_replace_callback("/{(\w+)}/", array(CGridView, "renderSection"), "{summary} {items} {pager}") 
#9  +
 D:\yiiroot\framework\zii\widgets\CBaseListView.php(126): CBaseListView->renderContent() 
#10     +
 D:\yiiroot\framework\web\CBaseController.php(166): CBaseListView->run() 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
#11     –
 D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views\admin\crons.php(52): CBaseController->widget("zii.widgets.grid.CGridView", array("dataProvider" => CActiveDataProvider, "id" => "configuration-list", "enableSorting" => false, "summaryText" => false, ...)) 
47             array(
48                 'name'=>'description',
49                 'value'=>'UGCron::getDescriptions($data->name, true);',
50             ),
51         ),
52     )); ?>
53     <?php if (Yii::app()->user->pbac('userGroups.admin.admin')): ?>
54     <div class="inline buttons">
55         <?php echo 
CHtml::submitButton(Yii::t('userGroupsModule.general','Save')); ?>
56     </div>
57     <?php $this->endWidget(); ?>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
#12     +
 D:\yiiroot\framework\web\CBaseController.php(119): require("D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views\admin\c...") 
#13     +
 D:\yiiroot\framework\web\CBaseController.php(88): CBaseController->renderInternal("D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views/admin\c...", array("cronDataProvider" => CActiveDataProvider), true) 
#14     +
 D:\yiiroot\framework\web\CController.php(866): CBaseController->renderFile("D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views/admin\c...", array("cronDataProvider" => CActiveDataProvider), true) 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
#15     –
 D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views\admin\index.php(14): CController->renderPartial("crons", array("cronDataProvider" => CActiveDataProvider)) 
09         <?php $this->renderPartial('/admin/menu', array('mode' => 'profile', 
'root' => true))?>
10     </div>
11     <?php if (!UserGroupsConfiguration::findRule('dumb_admin') || 
Yii::app()->user->pbac('admin')): ?>
12     <?php $this->renderPartial('configurations', 
array('confDataProvider'=>$confDataProvider))?>
13     <hr/>
14     <?php $this->renderPartial('crons', 
array('cronDataProvider'=>$cronDataProvider))?>
15     <hr/>
16     <?php endif; ?>
17     <?php $this->renderPartial('groups', array('groupModel'=>$groupModel))?>
18     <hr/>
19     <?php $this->renderPartial('users', array('userModel'=>$userModel))?>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
#16     +
 D:\yiiroot\framework\web\CBaseController.php(119): require("D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views\admin\i...") 
#17     +
 D:\yiiroot\framework\web\CBaseController.php(88): CBaseController->renderInternal("D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views/admin\i...", array("confDataProvider" => CActiveDataProvider, "cronDataProvider" => CActiveDataProvider, "groupModel" => UserGroupsGroup, "userModel" => UserGroupsUser), true) 
#18     +
 D:\yiiroot\framework\web\CController.php(866): CBaseController->renderFile("D:\xampp\htdocs\yiiqp\protected\modules\userGroups\views/admin\i...", array("confDataProvider" => CActiveDataProvider, "cronDataProvider" => CActiveDataProvider, "groupModel" => UserGroupsGroup, "userModel" => UserGroupsUser), true) 
#19     +
 D:\yiiroot\framework\web\CController.php(779): CController->renderPartial("index", array("confDataProvider" => CActiveDataProvider, "cronDataProvider" => CActiveDataProvider, "groupModel" => UserGroupsGroup, "userModel" => UserGroupsUser), true) 
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
#20     –
 D:\xampp\htdocs\yiiqp\protected\modules\userGroups\controllers\AdminController.php(99): CController->render("index", array("confDataProvider" => CActiveDataProvider, "cronDataProvider" => CActiveDataProvider, "groupModel" => UserGroupsGroup, "userModel" => UserGroupsUser)) 
094         
095         // checks if the page was loaded as ajax
096         if (Yii::app()->request->isAjaxRequest)
097             $this->renderPartial('index', 
array('confDataProvider'=>$confDataProvider, 
'cronDataProvider'=>$cronDataProvider, 'groupModel' => $groupModel, 'userModel' 
=> $userModel), false, true);
098         else
099             $this->render('index', 
array('confDataProvider'=>$confDataProvider, 
'cronDataProvider'=>$cronDataProvider, 'groupModel' => $groupModel, 'userModel' 
=> $userModel));
100     }
101     
102     /**
103      * display the documentation
104      */
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------
#21     +
 D:\yiiroot\framework\web\actions\CInlineAction.php(50): AdminController->actionIndex() 
#22     +
 D:\yiiroot\framework\web\CController.php(300): CInlineAction->runWithParams(array()) 
#23     +
 D:\yiiroot\framework\web\filters\CFilterChain.php(133): CController->runAction(CInlineAction) 
#24     +
 D:\yiiroot\framework\web\filters\CFilter.php(41): CFilterChain->run() 
#25     +
 D:\xampp\htdocs\yiiqp\protected\components\Controller.php(43): CFilter->filter(CFilterChain) 
#26     +
 D:\yiiroot\framework\web\filters\CInlineFilter.php(59): Controller->filterUserGroupsAccessControl(CFilterChain) 
#27     +
 D:\yiiroot\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 
#28     +
 D:\yiiroot\framework\web\CController.php(283): CFilterChain->run() 
#29     +
 D:\yiiroot\framework\web\CController.php(257): CController->runActionWithFilters(CInlineAction, array("userGroupsAccessControl")) 
#30     +
 D:\yiiroot\framework\web\CWebApplication.php(328): CController->run("") 
#31     +
 D:\yiiroot\framework\web\CWebApplication.php(121): CWebApplication->runController("userGroups/admin") 
#32     +
 D:\yiiroot\framework\base\CApplication.php(155): CWebApplication->processRequest() 
#33     +
 D:\xampp\htdocs\yiiqp\index.php(13): CApplication->run() 
2011-05-22 16:47:41 Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o 
PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Yii Framework/1.1.7 

Original issue reported on code.google.com by khari...@gmail.com on 22 May 2011 at 11:24

Attachments:

GoogleCodeExporter commented 9 years ago
now it should work... the error is due to PHP E_STRICT configuration

Original comment by nic...@creationgears.com on 25 May 2011 at 10:36