View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
08831Bug reportsPluginspublic2014-03-20 12:11
Reporterevolvesystems Assigned Tomdekker  
PrioritynormalSeveritycrash 
Status closedResolutionnot fixable 
Product Version2.05+ 
Summary08831: Internal Server Error - Either "name" or "value" must be specified for CDataColumn
Description

When i click on plugins i get this

http://screencast.com/t/wx0WVnSh

Steps To Reproduce

http://screencast.com/t/wx0WVnSh

Additional Information

Updated to the most recent version

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)140302
I will donate to the project if issue is resolvedNo
BrowserAny
Database type & versionMysql
Server OS (if known)Linux
Webserver software & version (if known)WHM
PHP Version5.4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2014-03-10 12:40

developer   ~29159

Please activate debug to 2 in application/config/config.php

evolvesystems

evolvesystems

2014-03-12 04:11

reporter   ~29198

When i do that i can't login and get :

PHP warning

uksort() expects parameter 2 to be a valid callback, no array or string given

/home/surveyse/public_html/application/helpers/ClassFactory.php(31)

19 }
20
21 public static function createClass($baseClass, $className)
22 {
23 $code = "class $className extends $baseClass {}";
24 return eval($code);
25 }
26
27 public static function registerClass($prefix, $baseClass)
28 {
29 self::$map[$prefix] = $baseClass;
30 // Keep the array "reverse"-sorted by keys.
31 uksort(self::$map, function($a, $b) { return strcmp($a, $b) * -1;} );
32
33 if (!self::$registered)
34 {
35 self::$registered = spl_autoload_register(array(get_class(), 'autoload'), true, true);
36 }
37 }
38 }
39 ?>
Stack Trace

DenisChenu

DenisChenu

2014-03-12 08:39

developer   ~29199

Ok,

Can you show what did you get in your plugins directory ?

evolvesystems

evolvesystems

2014-03-12 08:47

reporter   ~29201

When i turned on 2 on config. i can't get into lime survey so can't even click on plugins

DenisChenu

DenisChenu

2014-03-12 10:33

developer   ~29203

No, i don't want plugin list : but the content of your ./plugins/ directory on the server (FTP listing)

evolvesystems

evolvesystems

2014-03-13 06:47

reporter   ~29217

http://screencast.com/t/HWjPN0A8L
http://screencast.com/t/WNkYlKYnP

mdekker

mdekker

2014-03-13 09:15

reporter   ~29218

During the process of going from 2.00 to 2.05 some files where created and later on deleted. Maybe the deletes did not work well. You could try making a backup of the files on the server and then start by removing the /application folder and copying it in from the downloaded zip. Then ofcourse add your /aplication/config/config.php again from the backup.

If that does not work, include the complete stack trace that might show us a little more of the root of the problem.

mdekker

mdekker

2014-03-13 09:17

reporter   ~29219

You can also try this with the /plugins folder

The /application/core/plugins was already refreshed when updating the /application folder. If you did not add any plugins yourself you can do that safely.

c_schmitz

c_schmitz

2014-03-19 09:23

administrator   ~29372

evolvesystems, did you follow mennodekkers' instructions and did it work?

mdekker

mdekker

2014-03-19 10:00

reporter   ~29375

I read some reports about php 5.4 and eaccelarator not liking this sort with anonymous functions. Do you use eaccelerator?

Devnote:
Don't really see why the sort is needed, and especially using an anonymous function. krsort(self::$map) would do the same I think, and looking at the classfactory the order does not matter.

evolvesystems

evolvesystems

2014-03-19 10:05

reporter   ~29377

I actually asked a tech to do this and they reinstalled it with the same issue
I then just tried a comfort update with the same issue
even a fresh install separate to this one had the same result

evolvesystems

evolvesystems

2014-03-19 10:06

reporter   ~29378

How do i get a stack trace?

mdekker

mdekker

2014-03-19 10:08

reporter   ~29381

See your second post... please paste the complete output you see in that screen, it seems you only pasted the first part.

evolvesystems

evolvesystems

2014-03-19 10:13

reporter   ~29386

http://screencast.com/t/aEeD8SgF

mdekker

mdekker

2014-03-19 10:15

reporter   ~29387

Seems debug is off again, set it to 2 in /application/config.php

evolvesystems

evolvesystems

2014-03-19 10:34

reporter   ~29389

Ok when i do that i can't get into limesurvey this is what i get
http://screencast.com/t/x58XjNwkKgx

mdekker

mdekker

2014-03-19 11:03

reporter   ~29390

Last edited: 2014-03-19 11:04

Ok can you edit that file (application/helpers/ClassFactory.php) and on line 31 add two // in front of it. what happens then?

evolvesystems

evolvesystems

2014-03-19 12:07

reporter   ~29394

Ok got further now:

CException

Either "name" or "value" must be specified for CDataColumn.

/home/surveyse/public_html/framework/zii/widgets/grid/CDataColumn.php(84)

72 */
73 public $filter;
74
75 /
76 Initializes the column.
77
/
78 public function init()
79 {
80 parent::init();
81 if($this->name===null)
82 $this->sortable=false;
83 if($this->name===null && $this->value===null)
84 throw new CException(Yii::t('zii','Either "name" or "value" must be specified for CDataColumn.'));
85 }
86
87 /

88 Renders the filter cell content.
89
This method will render the {@link filter} as is if it is a string.
90 If {@link filter} is an array, it is assumed to be a list of options, and a dropdown selector will be rendered.
91
Otherwise if {@link filter} is not false, a text field is rendered.
92 @since 1.1.1
93
/
94 protected function renderFilterCellContent()
95 {
96 if(is_string($this->filter))

Stack Trace
#0
+
/home/surveyse/public_html/framework/zii/widgets/grid/CGridView.php(401): CDataColumn->init()
#1
–
/home/surveyse/public_html/application/extensions/bootstrap/widgets/TbGridView.php(109): CGridView->initColumns()

104 {
105 if (is_array($column) && !isset($column['class']))
106 $this->columns[$i]['class'] = 'bootstrap.widgets.TbDataColumn';
107 }
108
109 parent::initColumns();
110
111 if($this->responsiveTable)
112 $this->writeResponsiveCss();
113 }
114

#2
+
/home/surveyse/public_html/framework/zii/widgets/grid/CGridView.php(359): TbGridView->initColumns()
#3
–
/home/surveyse/public_html/application/extensions/bootstrap/widgets/TbGridView.php(54): CGridView->init()

49 /*
50
Initializes the widget.
51 */
52 public function init()
53 {
54 parent::init();
55
56 $classes = array('table');
57
58 if (isset($this->type))
59 {

#4
–
/home/surveyse/public_html/application/extensions/bootstrap/widgets/TbExtendedGridView.php(220): TbGridView->init()

215 $this->bulkActions['class'] = 'bootstrap.widgets.TbBulkActions';
216
217 $this->bulk = Yii::createComponent($this->bulkActions, $this);
218 $this->bulk->init();
219 }
220 parent::init();
221 }
222
223 /*
224
Renders grid content
225 */

#5
+
/home/surveyse/public_html/framework/web/CBaseController.php(147): TbExtendedGridView->init()
#6
+
/home/surveyse/public_html/framework/web/CBaseController.php(172): CBaseController->createWidget("bootstrap.widgets.TbExtendedGridView", array("dataProvider" => CArrayDataProvider, "columns" => array(array("class" => "CLinkColumn", "header" => "Status", "labelExpression" => , "url" => "#"), array("class" => "CDataColumn", "type" => "raw", "header" => "Action", "value" => null), array("class" => "CDataColumn", "header" => "Plugin", "name" => "name"), array("class" => "CDataColumn", "header" => "Description", "name" => "description")), "rowCssClassExpression" => , "itemsCssClass" => "items table-condensed table-bordered"))
#7
+
/home/surveyse/public_html/application/views/plugins/index.php(60): CBaseController->widget("bootstrap.widgets.TbExtendedGridView", array("dataProvider" => CArrayDataProvider, "columns" => array(array("class" => "CLinkColumn", "header" => "Status", "labelExpression" => , "url" => "#"), array("class" => "CDataColumn", "type" => "raw", "header" => "Action", "value" => null), array("class" => "CDataColumn", "header" => "Plugin", "name" => "name"), array("class" => "CDataColumn", "header" => "Description", "name" => "description")), "rowCssClassExpression" => , "itemsCssClass" => "items table-condensed table-bordered"))
#8
+
/home/surveyse/public_html/framework/web/CBaseController.php(126): require("/home/surveyse/public_html/application/views/plugins/index.php")
#9
+
/home/surveyse/public_html/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/surveyse/public_html/application/views/plugins/index.php", array("data" => array(array("id" => "1", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "1", ...), array("id" => "2", "name" => "auditlog", "description" => "Core: Create an audit log of changes", "active" => "0", ...), array("id" => "3", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "0", ...), array("id" => "4", "name" => "Webserver", "description" => "Core: Webserver authentication", "active" => "0", ...), ...)), true)
#10
+
/home/surveyse/public_html/framework/web/CController.php(869): CBaseController->renderFile("/home/surveyse/public_html/application/views/plugins/index.php", array("data" => array(array("id" => "1", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "1", ...), array("id" => "2", "name" => "auditlog", "description" => "Core: Create an audit log of changes", "active" => "0", ...), array("id" => "3", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "0", ...), array("id" => "4", "name" => "Webserver", "description" => "Core: Webserver authentication", "active" => "0", ...), ...)), true)
#11
+
/home/surveyse/public_html/framework/web/CController.php(782): CController->renderPartial("/plugins/index", array("data" => array(array("id" => "1", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "1", ...), array("id" => "2", "name" => "auditlog", "description" => "Core: Create an audit log of changes", "active" => "0", ...), array("id" => "3", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "0", ...), array("id" => "4", "name" => "Webserver", "description" => "Core: Webserver authentication", "active" => "0", ...), ...)), true)
#12
+
/home/surveyse/public_html/application/controllers/PluginsController.php(206): CController->render("/plugins/index", array("data" => array(array("id" => "1", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "1", ...), array("id" => "2", "name" => "auditlog", "description" => "Core: Create an audit log of changes", "active" => "0", ...), array("id" => "3", "name" => "LimeSurvey internal database", "description" => "Core: Database authentication + exports", "active" => "0", ...), array("id" => "4", "name" => "Webserver", "description" => "Core: Webserver authentication", "active" => "0", ...), ...)))
#13
+
/home/surveyse/public_html/framework/web/actions/CInlineAction.php(49): PluginsController->actionIndex()
#14
+
/home/surveyse/public_html/framework/web/CController.php(308): CInlineAction->runWithParams(array())
#15
+
/home/surveyse/public_html/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)
#16
+
/home/surveyse/public_html/framework/web/filters/CFilter.php(40): CFilterChain->run()
#17
+
/home/surveyse/public_html/framework/web/CController.php(1145): CFilter->filter(CFilterChain)
#18
+
/home/surveyse/public_html/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)
#19
+
/home/surveyse/public_html/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)
#20
+
/home/surveyse/public_html/framework/web/CController.php(291): CFilterChain->run()
#21
+
/home/surveyse/public_html/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#22
+
/home/surveyse/public_html/framework/web/CWebApplication.php(282): CController->run("")
#23
+
/home/surveyse/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("plugins")
#24
+
/home/surveyse/public_html/framework/base/CApplication.php(180): CWebApplication->processRequest()
#25
+
/home/surveyse/public_html/index.php(200): CApplication->run()
2014-03-19 22:07:04 LiteSpeed Yii Framework/1.1.14

mdekker

mdekker

2014-03-19 14:33

reporter   ~29400

Last edited: 2014-03-19 14:35

Probably due to the same error, could you please check if eaccellerator is active?

And if so, if disabeling or upgrading to the latest version works?

http://snippets.webaware.com.au/howto/eaccelerator-and-php-closures-dont-mix/

mdekker

mdekker

2014-03-19 14:42

reporter   ~29402

Not sure if it is the problem, but the test from http://forge.typo3.org/issues/43946

might be something for installer check if it is.

DenisChenu

DenisChenu

2014-03-19 15:01

developer   ~29406

@mdekker : really great job if it's eaccelerator : great job to find it \o/

Love this commit from piwik author : https://github.com/eaccelerator/eaccelerator/pull/44/files He's angry :)

evolvesystems

evolvesystems

2014-03-20 11:36

reporter   ~29438

yippie i got the host to do this and its fixed :)

mdekker

mdekker

2014-03-20 12:11

reporter   ~29439

Thanks for reporting back!

Since it turns out eaccelerator (at least some version) caused the trouble, we will no longer investigate. If it turns out more people have the same problem, we could invest in adding a check to the installer.

Issue History

Date Modified Username Field Change
2014-03-09 08:06 evolvesystems New Issue
2014-03-10 12:40 DenisChenu Note Added: 29159
2014-03-12 04:11 evolvesystems Note Added: 29198
2014-03-12 08:39 DenisChenu Note Added: 29199
2014-03-12 08:47 evolvesystems Note Added: 29201
2014-03-12 10:33 DenisChenu Note Added: 29203
2014-03-13 06:47 evolvesystems Note Added: 29217
2014-03-13 09:15 mdekker Note Added: 29218
2014-03-13 09:17 mdekker Note Added: 29219
2014-03-19 09:23 c_schmitz Note Added: 29372
2014-03-19 09:23 c_schmitz Assigned To => c_schmitz
2014-03-19 09:23 c_schmitz Status new => feedback
2014-03-19 10:00 mdekker Note Added: 29375
2014-03-19 10:05 evolvesystems Note Added: 29377
2014-03-19 10:05 evolvesystems Status feedback => assigned
2014-03-19 10:06 evolvesystems Note Added: 29378
2014-03-19 10:08 mdekker Note Added: 29381
2014-03-19 10:13 evolvesystems Note Added: 29386
2014-03-19 10:15 mdekker Note Added: 29387
2014-03-19 10:16 c_schmitz Assigned To c_schmitz => mdekker
2014-03-19 10:34 evolvesystems Note Added: 29389
2014-03-19 11:03 mdekker Note Added: 29390
2014-03-19 11:04 mdekker Note Edited: 29390
2014-03-19 12:07 evolvesystems Note Added: 29394
2014-03-19 14:33 mdekker Note Added: 29400
2014-03-19 14:34 mdekker Note Edited: 29400
2014-03-19 14:35 mdekker Note Edited: 29400
2014-03-19 14:42 mdekker Note Added: 29402
2014-03-19 15:01 DenisChenu Note Added: 29406
2014-03-20 11:36 evolvesystems Note Added: 29438
2014-03-20 12:11 mdekker Note Added: 29439
2014-03-20 12:11 mdekker Status assigned => closed
2014-03-20 12:11 mdekker Resolution open => not fixable