View Issue Details

IDProjectCategoryView StatusLast Update
15063Bug reports[All Projects] Survey designpublic2019-10-04 09:13
ReporterDenisChenu Assigned ToJHoeck  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version4.0.0-RC3 
Target VersionFixed in Version 
Summary15063: No surveys menu : Local Storage QuotaExceededError: The quota has been exceeded.
Description

Surveys menu aren't shown

Steps To Reproduce

Debug > 1
Create a survey with one group/question
Go to Survey check console

Additional Information

Need to clean Local Storage transparently

Tagssprint
Complete LimeSurvey version number (& build)4.0.0 github e5d117578b
I will donate to the project if issue is resolvedNo
Browserff
Database & DB-Versionnot relevant?
Server OS (if known)not relevant ?
Webserver software & version (if known)not relevant ?
PHP Versionnot relevant ?

Relationships

has duplicate 15064 closed Unable to edit aray question 
has duplicate 15356 new Side-menu breaks after importing ~8000 questions 

Activities

DenisChenu

DenisChenu

2019-07-20 18:03

developer  

DenisChenu

DenisChenu

2019-07-20 18:04

developer   ~52943

Last edited: 2019-07-20 18:05

View 2 revisions

[Vue warn]: Error in created hook: "QuotaExceededError: The quota has been exceeded."

found in

---> <Sidebar> at src/components/sidebar.vue
       <Root> vue.esm.js:628
DOMException: "The quota has been exceeded." vue.esm.js:1897
    VueJS 23
    createSideMenu adminsidepanelmain.js:68
    createPanelAppliance adminsidepanelmain.js:155
    <anonyme> adminsidepanelmain.js:186
    jQuery 2
[Vue warn]: Error in mounted hook: "QuotaExceededError: The quota has been exceeded."

found in

---> <Submenu> at src/components/subcomponents/_submenu.vue
       <Sidemenu> at src/components/subcomponents/_sidemenu.vue
         <Sidebar> at src/components/sidebar.vue
           <Root> vue.esm.js:628
DOMException: "The quota has been exceeded." vue.esm.js:1897
[Vue warn]: Error in mounted hook: "QuotaExceededError: The quota has been exceeded."

found in

---> <Submenu> at src/components/subcomponents/_submenu.vue
       <Sidemenu> at src/components/subcomponents/_sidemenu.vue
         <Sidebar> at src/components/sidebar.vue
           <Root> vue.esm.js:628
DOMException: "The quota has been exceeded." vue.esm.js:1897
[Vue warn]: Error in mounted hook: "QuotaExceededError: The quota has been exceeded."

found in

---> <Sidemenu> at src/components/subcomponents/_sidemenu.vue
       <Sidebar> at src/components/sidebar.vue
         <Root> vue.esm.js:628
DOMException: "The quota has been exceeded." vue.esm.js:1897
[Vue warn]: Error in mounted hook: "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
DOMException: "The quota has been exceeded." vue.esm.js:1897
[Vue warn]: Error in mounted hook: "QuotaExceededError: The quota has been exceeded."

found in

---> <Sidebar> at src/components/sidebar.vue
       <Root> vue.esm.js:628
DOMException: "The quota has been exceeded." vue.esm.js:1897
[Vue warn]: Error in mounted hook: "QuotaExceededError: The quota has been exceeded."

(found in <Root>) vue.esm.js:628
DOMException: "The quota has been exceeded." vue.esm.js:1897
Unhandled promise rejection DOMException: "The quota has been exceeded." es6.promise.js:110
Unhandled promise rejection DOMException: "The quota has been exceeded." es6.promise.js:110
Erreur dans les liens source : request failed with status 404
URL de la ressource : http://limesurvey.local/develop/assets/packages/bootstrap/bootstrap.css
URL du lien source : bootstrap.css.map
Erreur dans les liens source : request failed with status 404
URL de la ressource : http://limesurvey.local/develop/themes/admin/Sea_Green/css/lime-admin-colors.css
URL du lien source : lime-admin-colors.css.map
Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource.
URL de la ressource : moz-extension://6887d171-2694-4f4e-a73e-2a09581aa7cd/browser-polyfill.js
URL du lien source : browser-polyfill.js.map
Erreur dans les liens source : request failed with status 404
URL de la ressource : http://limesurvey.local/develop/assets/packages/lstutorial/build/lstutorial.js
URL du lien source : lstutorial.js.map

etc …

DenisChenu

DenisChenu

2019-07-20 18:09

developer   ~52944

Same with debug = 0 after reset assets

DenisChenu

DenisChenu

2019-07-20 18:10

developer  

DenisChenu

DenisChenu

2019-07-23 13:10

developer   ~52959

Delete whole localStorage fix the issue.

But it must be done transparently for all user/browser

cdorin

cdorin

2019-08-20 17:09

manager   ~53207

Hmm, do not have this issue (tried it with debug mode 1). COuld you confirm whether you still have it in the latest dev? Or did I test it wrongly... hmm

DenisChenu

DenisChenu

2019-08-21 01:42

developer   ~53208

@cdorin : need localStorage filled by a lot of survey , after a lot of test.
Look at console/localStorage , delete a survey : local storage still there: never deleted.
We must delete local storage : it's caching : we must not take all memory available …



fradeff

fradeff

2019-09-18 15:08

reporter   ~53627

thanks @DenisChenu:

"bug" confirmed: got exactly the same error this morning, perhaps because I'm active on many limesurvey instances on the same debian server (all are Version 3.17.16+190906)

using the same method described by Denis (clearing the local storage from ff inspector / storage) worked for me

it was not so obvious to find the fix (tried many things and finally found it by myself... Unfortunately before reaching that post!)

DenisChenu

DenisChenu

2019-09-18 15:21

developer   ~53628

Last edited: 2019-09-18 15:25

View 2 revisions

Yep,

We really need to

  1. Clean up our localStorage more than currently
  2. Maybe find a way to have working LimeSurvey admin without any localStorage …

https://stackoverflow.com/questions/2989284/what-is-the-max-size-of-localstorage-values and https://www.html5rocks.com/en/tutorials/offline/quota-research/
an,d https://demo.agektmr.com/storage/

Maybe move to sessionStorage : https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage

fradeff

fradeff

2019-09-18 17:27

reporter   ~53641

Thanks Denis for the interesting links; I must confess, 'till this morning I didnt knew anything about localStorage... so now I know a bit more - and still haven't understood the utility of this feature, and I particularly don't understand why LS need that stuff.

Wouldn't it be possible to store that in a session table on the server? A table which could be automatically emptied after a couple of days or a given period, defined in some LS config - you know, kind of a "good old time", when sessions where stored on the server, with just a simple cookie linking the client to the datas in the table? Ok, someone may argue that this means a little more usage of bandwidth, but it is really there that we need to try to minimize bandwith usage?

My dinosaur-old-way-of.thinking doesn't really like that new wave of excessive usage of client-side datas - and this is getting harder with working with many different devices on different places, which is (unfortunately or not) a trend that will likely increase in the future

DenisChenu

DenisChenu

2019-09-18 17:32

developer   ~53642

Hi Frederic, it's not for you, more for dev team :)

And about your issue «Maybe find a way to have working LimeSurvey admin without any localStorage …»

JHoeck

JHoeck

2019-09-30 13:48

manager   ~53745

I cant reproduce it.

DenisChenu

DenisChenu

2019-09-30 17:46

developer   ~53789

@JHoeck

I cant reproduce it.

You need a lot lot lot of survey testing for this issue … html5rocks show it broke when get to 10MB with firefox and chrome.

DenisChenu

DenisChenu

2019-10-04 09:03

developer   ~53872

A solution to get it quickly



DenisChenu

DenisChenu

2019-10-04 09:05

developer   ~53873

And with dom.storage.enabled to false : no alert are shown, something like “Sorry, you need to activate localStorage” ?
(In my opinion : must work without local storage … (and without JS too …))



Capture d’écran du 2019-10-04 09-04-01.png (113,324 bytes)
DenisChenu

DenisChenu

2019-10-04 09:13

developer   ~53874

dom.storage.enabled to false : issue in 3.8 too

Issue History

Date Modified Username Field Change
2019-07-20 18:03 DenisChenu New Issue
2019-07-20 18:03 DenisChenu File Added: Capture d’écran du 2019-07-20 18-02-19.png
2019-07-20 18:04 DenisChenu Note Added: 52943
2019-07-20 18:05 DenisChenu Note Edited: 52943 View Revisions
2019-07-20 18:09 DenisChenu Note Added: 52944
2019-07-20 18:10 DenisChenu File Added: Capture d’écran du 2019-07-20 18-09-59.png
2019-07-23 13:10 DenisChenu Note Added: 52959
2019-07-23 13:10 DenisChenu Relationship added has duplicate 15064
2019-07-23 13:11 DenisChenu Summary No surveys menu => No surveys menu : Local Storage QuotaExceededError: The quota has been exceeded.
2019-07-23 13:11 DenisChenu Additional Information Updated View Revisions
2019-08-20 17:09 cdorin Assigned To => cdorin
2019-08-20 17:09 cdorin Status new => feedback
2019-08-20 17:09 cdorin Note Added: 53207
2019-08-21 01:42 DenisChenu File Added: Capture d’écran du 2019-08-21 01-39-51.png
2019-08-21 01:42 DenisChenu Note Added: 53208
2019-08-21 01:42 DenisChenu Status feedback => assigned
2019-09-18 15:08 fradeff Note Added: 53627
2019-09-18 15:21 DenisChenu Note Added: 53628
2019-09-18 15:25 DenisChenu Note Edited: 53628 View Revisions
2019-09-18 17:27 fradeff Note Added: 53641
2019-09-18 17:32 DenisChenu Note Added: 53642
2019-09-30 13:37 JHoeck Assigned To cdorin => JHoeck
2019-09-30 13:38 JHoeck Tag Attached: sprint
2019-09-30 13:48 JHoeck Note Added: 53745
2019-09-30 13:48 JHoeck Status assigned => feedback
2019-09-30 17:46 DenisChenu Note Added: 53789
2019-09-30 17:46 DenisChenu Status feedback => assigned
2019-10-04 08:58 DenisChenu Relationship added has duplicate 15356
2019-10-04 09:03 DenisChenu File Added: Capture d’écran du 2019-10-04 09-02-49.png
2019-10-04 09:03 DenisChenu Note Added: 53872
2019-10-04 09:05 DenisChenu File Added: Capture d’écran du 2019-10-04 09-04-01.png
2019-10-04 09:05 DenisChenu File Added: Capture d’écran du 2019-10-04 09-04-11.png
2019-10-04 09:05 DenisChenu Note Added: 53873
2019-10-04 09:13 DenisChenu Note Added: 53874