Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Whats wrong with this survey?

  • rbaier
  • rbaier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202548 by rbaier
Whats wrong with this survey? was created by rbaier
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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202560 by DenisChenu
Replied by DenisChenu on topic Whats wrong with this survey?
You seems to use debug set.

Since your survey is big : maybe some memory issue.

Else : community.limesurvey.org/bug-tracker/

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • rbaier
  • rbaier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202568 by rbaier
Replied by rbaier on topic Whats wrong with this survey?
I found out, why the survey is so big. The images had been included as source code in the question texts, such as:

<p style="text-align:justify; margin:0cm 0cm 10pt"><img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA ......
/CIiIiIinmnGLyIiIiLimWb8IiIiIiKeacYvIiIiIuLX//73/wCNfKE/OiQydQAAAABJRU5ErkJggg==" /></p>

Some components in LimeSurvey (the editor?) may not be able to process such very long texts correctly.

Kind regards,
Roland
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202569 by tpartner
Replied by tpartner on topic Whats wrong with this survey?
My guess is that you copied the text directly from MS Word. That should be avoided.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: rbaier
The topic has been locked.
  • rbaier
  • rbaier's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202575 by rbaier
Replied by rbaier on topic Whats wrong with this survey?
Thank you Mr. Partner, you are absolutely right with your assumption. Text and pictures were copied from MS Word to LimeSurvey. After correcting this design fault, there are no more errors in the survey.

Kind regards,
Roland
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202583 by DenisChenu
Replied by DenisChenu on topic Whats wrong with this survey?
If you can report your issue with the broken lss file it can be interseting.

Since : even with big survey : we must show something in my opinion (even if it's "Error : your survey is too big").

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose