View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
10254Bug reportsOtherpublic2016-02-01 16:45
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeveritycrash 
Status closedResolutionfixed 
Product Version2.06+ 
Target Version2.06+Fixed in Version2.06+ 
Summary10254: Console error at latest 2.06+ version
Description

When running a script from console, be it using SSH/shell on the server or using a cronjob, I get the following error:
exception 'CException' with message 'Object configuration must be an array containing a "class" element.' in /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/framework/YiiBase.php:193
Stack trace:
#0 /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/framework/base/CModule.php(393): YiiBase::createComponent(Array)
#1 /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/framework/base/CModule.php(530): CModule->getComponent('clientScript')
#2 /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/framework/base/CApplication.php(167): CModule->preloadComponents()
#3 /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/application/core/ConsoleApplication.php(24): CApplication->construct(Array)
#4 /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/framework/YiiBase.php(125): ConsoleApplication->
construct(Array)
#5 /var/www/vhosts/mysurveyhosting.com/httpdocs/delphi/application/commands/console.php(48): YiiBase::createApplication('ConsoleApplicat...', Array)
#6 {main}

The very same script works fine at LS 2.06+ build 151126!

Steps To Reproduce
  1. Add a survey ID at the config section of the test script and place the attached script at /limesurvey/application/commands.

  2. Make sure console.php and InviteCommend.php have sufficient rights so they can be executed.
    Go to that path using e.g. SSH/shell and execute the following command:
    php console.php invite.

  3. You should see the above error.

When using the exact same approach at LS 2.06+ build 151126 no error is shown.

Additional Information

When dumping the output of $config at console.php before line #48 ($app=Yii::createApplication('ConsoleApplication', $config);) I get this output at build 151126 which is different from the output at the latest 2.06+ version (which you can see here: http://pastebin.com/7Gj8EbVQ):
[Note the different messages at the end: At the old build, the script executes fine "2016-01-22 13:44:01 :: 82482 :: Starting work on survey." while at the current version the error listed above shows up afterwards]

array(5) {
["basePath"]=>
string(62) "/var/www/vhosts/mysurveyhosting.com/httpdocs/ls205/application"
["runtimePath"]=>
string(62) "/var/www/vhosts/mysurveyhosting.com/httpdocs/ls205/tmp/runtime"
["name"]=>
string(10) "LimeSurvey"
["import"]=>
array(4) {
[0]=>
string(18) "application.core."
[1]=>
string(20) "application.models.
"
[2]=>
string(25) "application.controllers."
[3]=>
string(21) "application.modules.
"
}
["components"]=>
array(9) {
["bootstrap"]=>
array(3) {
["class"]=>
string(28) "application.core.LSBootstrap"
["responsiveCss"]=>
bool(false)
["jqueryCss"]=>
bool(false)
}
["urlManager"]=>
array(3) {
["urlFormat"]=>
string(4) "path"
["rules"]=>
array(16) {
["<_sid:\d+>/lang-<_lang:\w+[-\w]+>/tk-<_token:\w+>/"]=>
string(51) "survey/index/sid/<_sid>/lang/<_lang>/token/<_token>"
["<_sid:\d+>/lang-<_lang:\w+[-\w]+>/
"]=>
string(36) "survey/index/sid/<_sid>/lang/<_lang>"
["<_sid:\d+>/tk-<_token:\w+>/"]=>
string(38) "survey/index/sid/<_sid>/token/<_token>"
["<_sid:\d+>/
"]=>
string(23) "survey/index/sid/<_sid>"
["<sid:\d+>"]=>
array(3) {
[0]=>
string(12) "survey/index"
["matchValue"]=>
bool(true)
[1]=>
string(12) "survey/index"
}
["admin/index"]=>
string(5) "admin"
["admin/<action:\w+>/sa/<sa:\w+>/"]=>
string(22) "admin/<action>/sa/<sa>"
["admin/<action:\w+>/<sa:\w+>/
"]=>
string(22) "admin/<action>/sa/<sa>"
["admin/labels/<_action:\w+>"]=>
string(28) "admin/labels/index/<_action>"
["admin/labels/<_action:\w+>/<_lid:\d+>"]=>
string(35) "admin/labels/index/<_action>/<_lid>"
["admin/expressions"]=>
string(23) "admin/expressions/index"
["optout/<_sid:\d+>/(:any)/(:any)"]=>
string(25) "optout/index/<_sid>/$2/$3"
["optout/tokens/<surveyid:\d+>"]=>
array(3) {
[0]=>
string(13) "optout/tokens"
["matchValue"]=>
bool(true)
[1]=>
string(13) "optout/tokens"
}
["optin/tokens/<surveyid:\d+>"]=>
array(3) {
[0]=>
string(12) "optin/tokens"
["matchValue"]=>
bool(true)
[1]=>
string(12) "optin/tokens"
}
["statistics_user/<surveyid:\d+>"]=>
array(3) {
[0]=>
string(22) "statistics_user/action"
["matchValue"]=>
bool(true)
[1]=>
string(22) "statistics_user/action"
}
["<_controller:\w+>/<_action:\w+>"]=>
string(23) "<_controller>/<_action>"
}
["showScriptName"]=>
bool(true)
}
["clientScript"]=>
array(1) {
["packages"]=>
array(21) {
["jquery"]=>
array(2) {
["baseUrl"]=>
string(19) "third_party/jquery/"
["js"]=>
array(1) {
[0]=>
string(20) "jquery-1.11.1.min.js"
}
}
["jqgrid"]=>
array(4) {
["baseUrl"]=>
string(19) "third_party/jqgrid/"
["js"]=>
array(3) {
[0]=>
string(23) "js/jquery.jqGrid.min.js"
[1]=>
string(25) "js/i18n/grid.locale-en.js"
[2]=>
string(30) "plugins/jquery.searchFilter.js"
}
["css"]=>
array(1) {
[0]=>
string(17) "css/ui.jqgrid.css"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jqgrid.addons"]=>
array(3) {
["baseUrl"]=>
string(27) "third_party/jqgrid/plugins/"
["js"]=>
array(1) {
[0]=>
string(14) "grid.addons.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jqgrid"
}
}
["jquery-notify"]=>
array(4) {
["baseUrl"]=>
string(25) "third_party/jquery-notify"
["js"]=>
array(1) {
[0]=>
string(24) "src/jquery.notify.min.js"
}
["css"]=>
array(1) {
[0]=>
string(13) "ui.notify.css"
}
["depends"]=>
array(1) {
[0]=>
string(8) "jqueryui"
}
}
["jqueryui"]=>
array(4) {
["baseUrl"]=>
string(21) "third_party/jqueryui/"
["js"]=>
array(1) {
[0]=>
string(33) "js/jquery-ui-1.10.3.custom.min.js"
}
["css"]=>
array(0) {
}
["depends"]=>
array(2) {
[0]=>
string(6) "jquery"
[1]=>
string(9) "bootstrap"
}
}
["jquery-bindWithDelay"]=>
array(3) {
["baseUrl"]=>
string(32) "third_party/jquery-bindWithDelay"
["js"]=>
array(1) {
[0]=>
string(16) "bindWithDelay.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-cookie"]=>
array(3) {
["baseUrl"]=>
string(25) "third_party/jquery-cookie"
["js"]=>
array(1) {
[0]=>
string(16) "jquery.cookie.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-superfish"]=>
array(4) {
["baseUrl"]=>
string(28) "third_party/jquery-superfish"
["js"]=>
array(2) {
[0]=>
string(15) "js/superfish.js"
[1]=>
string(17) "js/hoverIntent.js"
}
["css"]=>
array(1) {
[0]=>
string(17) "css/superfish.css"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-json"]=>
array(3) {
["baseUrl"]=>
string(23) "third_party/jquery-json"
["js"]=>
array(1) {
[0]=>
string(22) "jquery.json-2.4.min.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-blockUI"]=>
array(2) {
["baseUrl"]=>
string(26) "third_party/jquery-blockui"
["js"]=>
array(1) {
[0]=>
string(17) "jquery.blockUI.js"
}
}
["qTip2"]=>
array(4) {
["baseUrl"]=>
string(17) "third_party/qTip2"
["js"]=>
array(1) {
[0]=>
string(23) "dist/jquery.qtip.min.js"
}
["css"]=>
array(1) {
[0]=>
string(24) "dist/jquery.qtip.min.css"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-tablesorter"]=>
array(3) {
["baseUrl"]=>
string(30) "third_party/jquery-tablesorter"
["js"]=>
array(1) {
[0]=>
string(25) "jquery.tablesorter.min.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-nestedSortable"]=>
array(3) {
["baseUrl"]=>
string(33) "third_party/jquery-nestedSortable"
["js"]=>
array(1) {
[0]=>
string(28) "jquery.mjs.nestedSortable.js"
}
["depends"]=>
array(1) {
[0]=>
string(8) "jqueryui"
}
}
["jquery-multiselect"]=>
array(4) {
["baseUrl"]=>
string(30) "third_party/jquery-multiselect"
["js"]=>
array(2) {
[0]=>
string(29) "src/jquery.multiselect.min.js"
[1]=>
string(36) "src/jquery.multiselect.filter.min.js"
}
["css"]=>
array(2) {
[0]=>
string(22) "jquery.multiselect.css"
[1]=>
string(29) "jquery.multiselect.filter.css"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["bootstrap-multiselect"]=>
array(4) {
["baseUrl"]=>
string(33) "third_party/bootstrap-multiselect"
["js"]=>
array(1) {
[0]=>
string(27) "js/bootstrap-multiselect.js"
}
["css"]=>
array(1) {
[0]=>
string(29) "css/bootstrap-multiselect.css"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["ace"]=>
array(3) {
["baseUrl"]=>
string(15) "third_party/ace"
["js"]=>
array(1) {
[0]=>
string(6) "ace.js"
}
["depends"]=>
array(1) {
[0]=>
string(10) "jquery-ace"
}
}
["jquery-ace"]=>
array(3) {
["baseUrl"]=>
string(22) "third_party/jquery-ace"
["js"]=>
array(1) {
[0]=>
string(13) "jquery.ace.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-selectboxes"]=>
array(3) {
["baseUrl"]=>
string(42) "third_party/jquery-selectboxes/selectboxes"
["js"]=>
array(1) {
[0]=>
string(21) "jquery.selectboxes.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-actual"]=>
array(3) {
["baseUrl"]=>
string(26) "third_party/jquery-actual/"
["js"]=>
array(1) {
[0]=>
string(20) "jquery.actual.min.js"
}
["depends"]=>
array(1) {
[0]=>
string(6) "jquery"
}
}
["jquery-touch-punch"]=>
array(3) {
["baseUrl"]=>
string(31) "third_party/jquery-touch-punch/"
["js"]=>
array(1) {
[0]=>
string(28) "jquery.ui.touch-punch.min.js"
}
["depends"]=>
array(1) {
[0]=>
string(8) "jqueryui"
}
}
["jqueryui-timepicker"]=>
array(4) {
["baseUrl"]=>
string(39) "thirdparty/jquery-ui-timepicker-addon/"
["js"]=>
array(1) {
[0]=>
string(29) "jquery-ui-timepicker-addon.js"
}
["css"]=>
array(1) {
[0]=>
string(30) "jquery-ui-timepicker-addon.css"
}
["depends"]=>
array(1) {
[0]=>
string(8) "jqueryui"
}
}
}
}
["assetManager"]=>
array(1) {
["baseUrl"]=>
string(11) "/tmp/assets"
}
["request"]=>
array(4) {
["class"]=>
string(13) "LSHttpRequest"
["noCsrfValidationRoutes"]=>
array(1) {
[0]=>
string(13) "remotecontrol"
}
["enableCsrfValidation"]=>
bool(true)
["enableCookieValidation"]=>
bool(false)
}
["user"]=>
array(1) {
["class"]=>
string(9) "LSWebUser"
}
["log"]=>
array(1) {
["class"]=>
string(10) "CLogRouter"
}
["cache"]=>
array(1) {
["class"]=>
string(25) "system.caching.CFileCache"
}
["db"]=>
array(7) {
["schemaCachingDuration"]=>
int(3600)
["connectionString"]=>
string(44) "mysql:host=localhost;port=3306;dbname=ls205;"
["emulatePrepare"]=>
bool(true)
["username"]=>
string(5) "ls205"
["password"]=>
string(8) "mh1f2cls"
["charset"]=>
string(4) "utf8"
["tablePrefix"]=>
string(5) "lime
"
}
}
}
2016-01-22 13:44:01 :: 82482 :: Starting work on survey. ::

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)151215
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL
Server OS (if known)Ubuntu
Webserver software & version (if known)Apache
PHP Version5.5

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2016-02-01 16:34

updater   ~34445

I can confirm that this issue was fixed at "Version 2.06+ Build 160129".

Issue History

Date Modified Username Field Change
2016-01-27 10:44 Mazi New Issue
2016-01-27 10:44 Mazi Status new => assigned
2016-01-27 10:44 Mazi Assigned To => c_schmitz
2016-01-27 10:44 Mazi File Added: InviteCommand.php
2016-01-27 10:51 Mazi Steps to Reproduce Updated
2016-01-27 10:54 Mazi Steps to Reproduce Updated
2016-01-27 10:54 Mazi Additional Information Updated
2016-02-01 16:33 Mazi File Deleted: InviteCommand.php
2016-02-01 16:34 Mazi View Status private => public
2016-02-01 16:34 Mazi Note Added: 34445
2016-02-01 16:34 Mazi Status assigned => resolved
2016-02-01 16:34 Mazi Fixed in Version => 2.06+
2016-02-01 16:34 Mazi Resolution open => fixed
2016-02-01 16:45 c_schmitz Status resolved => closed