View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
10930Bug reportsUser / Groups / Rolespublic2016-04-15 10:24
ReporterDrewskie Assigned Toollehar  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary10930: 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"

TagsNo 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()
Error.txt (6,559 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)160413
I will donate to the project if issue is resolvedNo
BrowserIE11
Database type & versionSQL 2008
Server OS (if known)Windows 2012
Webserver software & version (if known)IIS8
PHP Version5.4.24

Relationships

related to 10887 closedc_schmitz In Survey list page, sorting issue 

Users monitoring this issue

Drewskie

Activities

ollehar

ollehar

2016-04-13 11:21

administrator   ~37293

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.

Drewskie

Drewskie

2016-04-13 11:23

reporter   ~37294

Last edited: 2016-04-13 11:23

11 user groups and all works on 2.06

Made a copy and upgraded to test the new version.

ollehar

ollehar

2016-04-13 14:02

administrator   ~37327

Can you send me a dump of your database? Mail is: olle dot haerstedt at limesurvey dot org.

Drewskie

Drewskie

2016-04-13 15:03

reporter   ~37330

Issue resolved in 160414

ollehar

ollehar

2016-04-13 15:05

administrator   ~37332

Oh, OK. Great, will mark as resolved.

c_schmitz

c_schmitz

2016-04-15 10:24

administrator   ~37417

Version 2.50+ Build 160415 released

Issue History

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