Hallo,
strange errors occur with a certain survey (LS Version 3.22.25+200706). Both with Firefox (78.0.1) and Chrome (83.0.4103.116).
In the side menu/structure nothing happens when clicking on a question.
When testing the poll, the start page is displayed, but if you go on to the first question, an empty page appears.
Sooner or later the browser doesn't react anymore and you get an error message.
Argument 1 passed to Hash::check() must be of the type array, integer given, called in /opt/ls322.25_test/application/core/LSWebUser.php on line 56
/opt/ls322.25_test/application/controllers/AdminController.php(32)
20 /**
21 * Initialises this controller, does some basic checks and setups
22 *
23 * @access protected
24 * @return void
25 */
26 protected function _init()
27 {
28 parent::_init();
29 App()->getComponent('bootstrap');
30 $this->_sessioncontrol();
31
32 $this->user_id = Yii::app()->user->getId();
33 // Check if the user really exists
34 // This scenario happens if the user was deleted while still being logged in
35 if ( !empty( $this->user_id ) && User::model()->findByPk( $this->user_id ) == null ){
36 $this->user_id = zero;
37 Yii::app()->session->destroy();
38 }
39
40 if (!Yii::app()->getConfig("surveyid")) {Yii::app()->setConfig("surveyid", returnGlobal('sid')); } //SurveyID
41 if (!Yii::app()->getConfig("ugid")) {Yii::app()->setConfig("ugid", returnGlobal('ugid')); } //Usergroup ID
42 if (!Yii::app()->getConfig("gid")) {Yii::app()->setConfig("gid", returnGlobal('gid')); } //GroupID
43 if (!Yii::app()->getConfig("qid")) {Yii::app()->setConfig("qid", returnGlobal('qid')); } //QuestionID
44 if (!Yii::app()->getConfig("lid")) {Yii::app()->setConfig("lid", returnGlobal('lid')); } //LabelID
Then not only the survey preview cannot be continued, but also the LimeSurvey session is no longer usable.
The login for a new session is only possible after the cookies of LimeSurvey have been deleted.
In the Browser Console these messages appear when clicking on a question in "Structure". Here first the one for Firefox:
[Vue warn]: Error in v-on handler: "QuotaExceededError: The quota has been exceeded."
found in
---> <QuestionExplorer> at src/components/subcomponents/_questionsgroups.vue
<Sidebar> at src/components/sidebar.vue
<Root> vue.esm.js:628
VueJS 7
DOMException: The quota has been exceeded. vue.esm.js:1897
VueJS 6
The Chrome browser seems to be more robust. With this browser the phenomenon that nothing happens when clicking on a question (in "Structure") occurs only after some time. Then the following messages appear in the browser console:
[Vue warn]: Error in v-on handler: "QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'limesurveyadminsidepanel_3_829492' exceeded the quota."
found in
---> <Questionexplorer> at src/components/subcomponents/_questionsgroups.vue
<Sidebar> at src/components/sidebar.vue
<Root>
warn @ vue.esm.js?a026:628
logError @ vue.esm.js?a026:1893
globalHandleError @ vue.esm.js?a026:1888
handleError @ vue.esm.js?a026:1848
invokeWithErrorHandling @ vue.esm.js?a026:1871
invoker @ vue.esm.js?a026:2188
original._wrapper @ vue.esm.js?a026:7565
vue.esm.js?a026:1897 DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'limesurveyadminsidepanel_3_829492' exceeded the quota.
at VuexPersistence.eval [as saveState] (webpack-internal:///./node_modules/vuex-persist/dist/esm/index.js:235:38)
at eval (webpack-internal:///./node_modules/vuex-persist/dist/esm/index.js:254:31)
at eval (webpack-internal:///./node_modules/vuex/dist/vuex.esm.js:400:53)
at Array.forEach (<anonymous>)
at Store.commit (webpack-internal:///./node_modules/vuex/dist/vuex.esm.js:400:21)
at Store.boundCommit [as commit] (webpack-internal:///./node_modules/vuex/dist/vuex.esm.js:343:19)
at VueComponent.addActive (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/subcomponents/_questionsgroups.vue?vue&type=script&lang=js&:96:19)
at VueComponent.openQuestion (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/subcomponents/_questionsgroups.vue?vue&type=script&lang=js&:104:12)
at click (eval at ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0a3bd0ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/subcomponents/_questionsgroups.vue?vue&type=template&id=498df74b& (
swww3.gwdg.de/assets/packages/adminsidep...nsidepanel.js:1066:1
),
:291:52)
at invokeWithErrorHandling (webpack-internal:///./node_modules/vue/dist/vue.esm.js:1862:26)
logError @ vue.esm.js?a026:1897
globalHandleError @ vue.esm.js?a026:1888
handleError @ vue.esm.js?a026:1848
invokeWithErrorHandling @ vue.esm.js?a026:1871
invoker @ vue.esm.js?a026:2188
original._wrapper @ vue.esm.js?a026:7565
A .lss file of the survey (7723 kB) cannot be imported into demo.limesurvey.org : "413 Request Entity Too Large"
The texts to the questions are partly quite long, whereby partly also pictures are inserted. Can this cause the observed errors?
Otherwise there is probably nothing unusual in the survey. I would be pleased if someone would provide a solution for this problem so that the survey can be carried out.
Kind regards,
Roland