View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
10930 | Bug reports | User / Groups / Roles | public | 2016-04-13 08:48 | 2016-04-15 10:24 |
Reporter | Drewskie | Assigned To | ollehar | ||
Priority | none | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.50.x | ||||
Fixed in Version | 2.50.x | ||||
Summary | 10930: Create/Edit user groups gives error | ||||
Description | When I select Create/Edit user groups I get a PHP notice Trying to get property of non-object E:\WebSites\limesurvey\framework\base\CComponent.php(612) : eval()'d code(1) | ||||
Steps To Reproduce | Click "Create/Edit user groups" | ||||
Tags | No tags attached. | ||||
Attached Files | Error.txt (6,559 bytes)
Stack Trace #0 + E:\WebSites\limesurvey\framework\base\CComponent.php(612): eval() #1 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CDataColumn.php(142): CComponent->evaluateExpression("$data->owner->users_name", array("data" => UserGroup, "row" => 0)) #2 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CGridColumn.php(231): CDataColumn->getDataCellContent(0) #3 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CGridColumn.php(154): CGridColumn->renderDataCellContent(0, UserGroup) #4 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CGridView.php(638): CGridColumn->renderDataCell(0) #5 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CGridView.php(622): CGridView->renderDataCell(TbDataColumn, 0) #6 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CGridView.php(578): CGridView->renderTableRow(0) #7 + E:\WebSites\limesurvey\framework\zii\widgets\grid\CGridView.php(488): CGridView->renderTableBody() #8 + E:\WebSites\limesurvey\framework\zii\widgets\CBaseListView.php(181): CGridView->renderItems() #9 unknown(0): CBaseListView->renderSection(array("{items}", "items")) #10 + E:\WebSites\limesurvey\framework\zii\widgets\CBaseListView.php(164): preg_replace_callback("/{(\w+)}/", array(TbGridView, "renderSection"), "{items} <div class="row-fluid"><div class="span6">{pager}</div><...") #11 + E:\WebSites\limesurvey\framework\zii\widgets\CBaseListView.php(149): CBaseListView->renderContent() #12 + E:\WebSites\limesurvey\framework\web\CBaseController.php(181): CBaseListView->run() #13 � E:\WebSites\limesurvey\application\views\admin\usergroup\usergroups_view.php(78): CBaseController->widget("bootstrap.widgets.TbGridView", array("dataProvider" => CActiveDataProvider, "id" => "usergroups-grid", "emptyText" => "No user groups found.", "summaryText" => "Displaying {start}-{end} of {count} result(s). <select class="ch...", ...)) 73 ), 74 75 'htmlOptions'=>array('style'=>'cursor: pointer;', 'class'=>'hoverAction'), 76 'selectionChanged'=>"function(id){window.location='" . Yii::app()->urlManager->createUrl('admin/usergroups/sa/view/ugid' ) . '/' . "' + $.fn.yiiGridView.getSelection(id.split(',', 1));}", 77 'ajaxUpdate' => true, 78 )); 79 ?> 80 </div> 81 </div> 82 83 </div> #14 + E:\WebSites\limesurvey\framework\web\CBaseController.php(126): require("E:\WebSites\limesurvey\application\views\admin\usergroup\usergro...") #15 + E:\WebSites\limesurvey\framework\web\CBaseController.php(95): CBaseController->renderInternal("E:\WebSites\limesurvey\application\views/admin/usergroup/usergro...", array("ugid" => false, "imageurl" => "/styles/Sea_Green/images/", "model" => UserGroup, "usergroupbar" => array("returnbutton" => array("url" => "admin/index", "text" => "Return to admin panel")), ...), true) #16 + E:\WebSites\limesurvey\framework\web\CController.php(869): CBaseController->renderFile("E:\WebSites\limesurvey\application\views/admin/usergroup/usergro...", array("ugid" => false, "imageurl" => "/styles/Sea_Green/images/", "model" => UserGroup, "usergroupbar" => array("returnbutton" => array("url" => "admin/index", "text" => "Return to admin panel")), ...), true) #17 � E:\WebSites\limesurvey\application\core\Survey_Common_Action.php(321): CController->renderPartial("/admin/usergroup/usergroups_view", array("ugid" => false, "imageurl" => "/styles/Sea_Green/images/", "model" => UserGroup, "usergroupbar" => array("returnbutton" => array("url" => "admin/index", "text" => "Return to admin panel")), ...)) 316 elseif (is_array($viewUrl)) 317 { 318 foreach ($viewUrl as $aSubData) 319 { 320 $aSubData = array_merge($aData, $aSubData); 321 Yii::app()->getController()->renderPartial($sViewPath . $sViewKey, $aSubData); 322 } 323 } 324 } 325 else 326 { #18 � E:\WebSites\limesurvey\application\controllers\admin\usergroups.php(451): Survey_Common_Action->_renderWrappedTemplate("usergroup", array("usergroups_view" => array(array())), array("ugid" => false, "imageurl" => "/styles/Sea_Green/images/", "model" => UserGroup, "usergroupbar" => array("returnbutton" => array("url" => "admin/index", "text" => "Return to admin panel")), ...)) 446 App()->getClientScript()->registerPackage('jquery-tablesorter'); 447 App()->getClientScript()->registerScriptFile( App()->getAssetManager()->publish( ADMIN_SCRIPT_PATH.'users.js' )); 448 449 $aData['display']['menu_bars']['user_group'] = true; 450 451 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); 452 } 453 } #19 + E:\WebSites\limesurvey\application\controllers\admin\usergroups.php(367): Usergroups->_renderWrappedTemplate("usergroup", array("usergroups_view" => array(array())), array("ugid" => false, "imageurl" => "/styles/Sea_Green/images/", "model" => UserGroup, "usergroupbar" => array("returnbutton" => array("url" => "admin/index", "text" => "Return to admin panel")))) #20 unknown(0): Usergroups->index(false, false) #21 + E:\WebSites\limesurvey\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(Usergroups, array(false, false)) #22 + E:\WebSites\limesurvey\application\core\Survey_Common_Action.php(101): CAction->runWithParamsInternal(Usergroups, ReflectionMethod, array("r" => "admin/usergroups/sa/index", "sa" => "index")) #23 + E:\WebSites\limesurvey\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/usergroups/sa/index", "sa" => "index")) #24 + E:\WebSites\limesurvey\framework\web\CController.php(286): CController->runAction(Usergroups) #25 + E:\WebSites\limesurvey\framework\web\CController.php(265): CController->runActionWithFilters(Usergroups, array()) #26 + E:\WebSites\limesurvey\application\controllers\AdminController.php(161): CController->run("usergroups") #27 + E:\WebSites\limesurvey\framework\web\CWebApplication.php(282): AdminController->run("usergroups") #28 + E:\WebSites\limesurvey\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/usergroups/sa/index") #29 + E:\WebSites\limesurvey\framework\base\CApplication.php(185): CWebApplication->processRequest() #30 + E:\WebSites\limesurvey\index.php(211): CApplication->run() | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 160413 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | IE11 | ||||
Database type & version | SQL 2008 | ||||
Server OS (if known) | Windows 2012 | ||||
Webserver software & version (if known) | IIS8 | ||||
PHP Version | 5.4.24 | ||||
Cannot reproduce on Linux/Apache. How many users and groups do you have in your system? The problem should be this string: "$data->owner->users_name". Either $data or $data->owner is undefined. |
|
11 user groups and all works on 2.06 Made a copy and upgraded to test the new version. |
|
Can you send me a dump of your database? Mail is: olle dot haerstedt at limesurvey dot org. |
|
Issue resolved in 160414 |
|
Oh, OK. Great, will mark as resolved. |
|
Version 2.50+ Build 160415 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-04-13 08:48 | Drewskie | New Issue | |
2016-04-13 08:50 | Drewskie | File Added: Error.txt | |
2016-04-13 08:52 | Drewskie | Issue Monitored: Drewskie | |
2016-04-13 11:21 | ollehar | Note Added: 37293 | |
2016-04-13 11:22 | ollehar | Assigned To | => ollehar |
2016-04-13 11:22 | ollehar | Status | new => acknowledged |
2016-04-13 11:23 | Drewskie | Note Added: 37294 | |
2016-04-13 11:23 | Drewskie | Note Edited: 37294 | |
2016-04-13 11:38 | c_schmitz | Relationship added | related to 10887 |
2016-04-13 14:02 | ollehar | Note Added: 37327 | |
2016-04-13 15:03 | Drewskie | Note Added: 37330 | |
2016-04-13 15:05 | ollehar | Note Added: 37332 | |
2016-04-13 15:06 | ollehar | Status | acknowledged => resolved |
2016-04-13 15:06 | ollehar | Fixed in Version | => 2.5 |
2016-04-13 15:06 | ollehar | Resolution | open => fixed |
2016-04-15 10:24 | c_schmitz | Note Added: 37417 | |
2016-04-15 10:24 | c_schmitz | Status | resolved => closed |
2019-11-01 17:26 | c_schmitz | Category | User/User groups => User / Groups / Roles |
2021-08-03 03:20 | guest | Bug heat | 6 => 8 |