View Issue Details

This bug affects 1 person(s).
 14
IDProjectCategoryView StatusLast Update
17321Bug reportsSurvey takingpublic2022-03-14 11:35
ReporterMazi Assigned Togabrieljenik  
PriorityhighSeverityblock 
Status closedResolutionfixed 
Product Version4.5.x 
Summary17321: Array question are not split up on mobile devices when using vanilla theme
Description

Array questions are split up into several single choice question on smaller mobile devices. This works fine for the fruity theme at LS 4.x but not when using the vanilla theme.
Custom templates which inherit from vanilla show the same buggy behavior which makes it impossible to run surveys on mobile devices.

Steps To Reproduce

Create an array question.
Assign the vanilla theme.
Run the survey on a mobile device.
-> Question is not split up.

TagsNo tags attached.
Bug heat14
Complete LimeSurvey version number (& build)5.2.10+220118
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL
Server OS (if known)
Webserver software & version (if known)
PHP Version7.3

Relationships

related to 08426 new Feature requests Unable to update an existing template by upload without update survey settings 
related to 14605 acknowledged Bug reports Adding an option or a css file on an existing template didn't update survey 
related to 12037 new Feature requests Better separation in feature in template-default package 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2021-05-22 14:30

developer   ~64514

On 4.6.3 with firefox : mobile view : seems to work.

I check on a real phone browser (after update ùmy online test)

Mazi

Mazi

2021-05-22 14:39

updater   ~64515

Last edited: 2022-02-01 14:37

@DenisChenu, I checked with Chrome using mobile simulation. Test link: https://demo.limesurvey.org/index.php?r=survey/index&sid=619922&newtest=Y&lang=en

DenisChenu

DenisChenu

2021-05-22 18:18

developer   ~64516

Last edited: 2022-02-01 14:37

Same with firefox on your link

DenisChenu

DenisChenu

2021-05-22 18:25

developer   ~64517

Last edited: 2022-02-01 14:37

But not on : https://master.sondages.pro/619922?newtest=Y&lang=en
It's an update issue : reset vanilla theme : its'OK now.

Explanation :

3.X css : https://github.com/LimeSurvey/LimeSurvey/blob/7220965bf32581024d43a6328b4fa7c43bd6d21a/themes/survey/vanilla/config.xml#L49-L53
master CSS : https://github.com/LimeSurvey/LimeSurvey/blob/c3736063160f821c72ba87a1cea52abc804e9a24/themes/survey/vanilla/config.xml#L42-L47

Then : when you update from 3.X to 4.X : if you don't reset config : css/noTablesOnMobile.css is not loaded.

I attach to related issue now way to update onky , need to reset whole theme options on all survey to add one option or one css is a big big issue for all theme devlopper (and the reason why i'm at skelvanilla 9.X version)

It's one of the reason why i must remove css/noTablesOnMobile.css from 4.X version for sklelvanilla : it broke my system …

ollehar

ollehar

2021-05-25 10:53

administrator   ~64523

Last edited: 2022-02-01 14:37

So, not a bug...?

DenisChenu

DenisChenu

2021-05-25 11:38

developer   ~64524

Last edited: 2022-02-01 14:37

Still an issue : when update form 3.X to 4.X : all table are broken until reset whole theme option on all surveys …

ollehar

ollehar

2021-05-25 11:42

administrator   ~64525

Last edited: 2022-02-01 14:37

How do you reset theme options, even? oO

ollehar

ollehar

2021-05-25 11:43

administrator   ~64526

Last edited: 2022-02-01 14:37

Also, I'm not sure why there are so many related issues...?

DenisChenu

DenisChenu

2021-05-25 11:50

developer   ~64527

Last edited: 2022-02-01 14:37

You'r right : still related but there are a lack of "update without reset" option.

Mazi

Mazi

2021-05-25 12:25

updater   ~64529

Last edited: 2022-02-01 14:37

I can confirm that resetting the vanilla theme and the custom theme fixed the problem.

Still, there needs to be a solution to prevent such manual edits when doing an update!

DenisChenu

DenisChenu

2021-05-25 12:28

developer   ~64530

Last edited: 2022-02-01 14:37

Still, there needs to be a solution to prevent such manual edits when doing an update!

And :

  1. Set a specific logo fort one survey ( or one hundred, or one thousand)
  2. Update to 4.X
  3. Need to reset theme
  4. All specific logo disappear …
ollehar

ollehar

2021-05-25 12:32

administrator   ~64531

Last edited: 2022-02-01 14:37

I asked Gabriel to have a look at it this week.

gabrieljenik

gabrieljenik

2021-05-27 01:22

manager   ~64583

Last edited: 2022-02-01 14:37

Hi All!

Just to be clear and making sure we are on the same page, what do you call "resetting the theme"?

DenisChenu

DenisChenu

2021-05-27 08:14

developer   ~64585

Last edited: 2022-02-01 14:37

gabrieljenik

gabrieljenik

2021-05-27 16:16

manager   ~64599

Last edited: 2022-02-01 14:37

We couldn't reproduce the issue, although obviosuly you can :)
OK, may I ask you how you had your files_css option for one of your extended themes?

As to solve this, as you did, resetting vanilla would be OK, as it would pickup the definition from the manifest, which after the upgrade has the noTables css. Question would be, why did you had to reset the extended theme as well?

On upgrade db version 428, a new css is added to the vanilla and bootswatch theme: noTablesOnMobile.css.
That seems not to have run in your environment.
This I understand is the key to the problem.

image.png (109,288 bytes)
Mazi

Mazi

2021-05-27 16:36

updater   ~64601

Last edited: 2022-02-01 14:37

files_css at config.xml looks like this:
<css>
<add>css/base.css</add>
<add>css/ajaxify.css</add>
<add>css/theme.css</add>
<add>css/custom.css</add>
</css>

Obviously, the old Ajax files can be removed.

We resetted our own theme just in case. I wasn't sure if only resetting vanilla does the trick.

I think in this case the customer updated from 2.73 to 4.x manually.

DenisChenu

DenisChenu

2021-05-27 16:45

developer   ~64602

Last edited: 2022-02-01 14:37

I didn't test :
on 3.X extend vanilla
update
reset extended vanilla : in my opinion this extended is out of date ?

gabrieljenik

gabrieljenik

2021-05-27 17:06

manager   ~64603

Last edited: 2022-02-01 14:37

I think in this case the customer updated from 2.73 to 4.x manually.

Manually? What do you mean? The upgrade script didn't run?

Mazi

Mazi

2021-05-27 18:06

updater   ~64605

Last edited: 2022-02-01 14:37

I am pretty sure the update script ran. Manually = Copy-over the 4.x files to the old installation, that should trigger the updater and force DB updates as well.

gabrieljenik

gabrieljenik

2021-05-27 18:49

manager   ~64607

Last edited: 2022-02-01 14:37

Very very strange...
And this happened on one installation ?
Or is it reproducible?

Dennis, you reproduced it? Sorry, not quite sure by what I read.

Mazi

Mazi

2021-05-28 09:01

updater   ~64612

Last edited: 2022-02-01 14:37

So far the customer updated one of their 3-4 systems, but more are about to follow. Maybe we can arrange a group chat with the customer when doing the upate so you can follow what is done and what the effect is. Will that help?

gabrieljenik

gabrieljenik

2021-05-28 14:35

manager   ~64636

Last edited: 2022-02-01 14:37

Hi Mazi,

I think the best is to take a snapshot of the DB after upgrade, and before hitting reset.
That will tell if the upgrade script 428 ran as expected.

Thanks!

DenisChenu

DenisChenu

2021-05-28 14:41

developer   ~64637

Last edited: 2022-02-01 14:37

Dennis, you reproduced it? Sorry, not quite sure by what I read.

No : i test on my working for a lot of time 4.X only.

And after check on cdemo where it's broken :)

Else : we are sure at 100% upgarde process happen else : DB is broken and all survey is broken.

gabrieljenik

gabrieljenik

2021-05-28 15:43

manager   ~64650

Last edited: 2022-02-01 14:37

OK, so, let's stick to the plan we aid with Mazi.
Right after another upgrade, take a snapshot and then see if the error happens again.

Mazi

Mazi

2021-05-30 18:30

updater   ~64659

Last edited: 2022-02-01 14:37

@gabrieljenik, a short update after I had a chat with the customer: This system was NOT updated but set up from scratch. Then they imported an old template and created a child theme.

gabrieljenik

gabrieljenik

2021-05-31 14:22

manager   ~64668

Last edited: 2022-02-01 14:37

OK, although the situation is unfortunate, I don't see much we can do here. Right?
ideas?

gabrieljenik

gabrieljenik

2021-06-16 14:46

manager   ~64926

Last edited: 2022-02-01 14:37

Waiting for updates. Nothing be done yet.

galads

galads

2021-08-30 12:27

reporter   ~66172

Last edited: 2022-02-01 14:37

Since there is nothing to be done, I am closing this issue. Please feel free to open it again if the issue still exists.

tpartner

tpartner

2022-02-01 14:40

partner   ~68167

noTablesOnMobile.css is not loaded in version 5.2.8.

Mazi

Mazi

2022-02-01 15:17

updater   ~68170

@gabrieljenik, problem is back at 5.2.10+220118.

ollehar

ollehar

2022-02-01 16:24

administrator   ~68173

Damn

gabrieljenik

gabrieljenik

2022-02-01 21:15

manager   ~68178

Can we review the steps for reproducing it?

Steps we did:
In LS3, made a theme extending vanilla.
Created a survey with that theme, holding an Array question.
Upgraded to master, and it works fine.

Mazi

Mazi

2022-02-02 09:52

updater   ~68183

@gabrieljenik, see yesterday's team meeting chat at Discord.

Me and Tony and @galads could reproduce it with the latest 5.x version, using the vanilla theme and a simple array question.

gabrieljenik

gabrieljenik

2022-02-02 13:43

manager   ~68184

We were able to reproduce it, but only on new installations, not for the ones upgraded from LS3.
Will submit a patch

gabrieljenik

gabrieljenik

2022-02-02 14:12

manager   ~68185

https://github.com/LimeSurvey/LimeSurvey/pull/2226

This is for new installations.
Let us review about old installations, not LS3.

gabrieljenik

gabrieljenik

2022-02-02 17:24

manager   ~68187

Added a DB update for v4 and v5 existing installations

gabrieljenik

gabrieljenik

2022-03-08 16:44

manager   ~68599

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33340

LimeBot

LimeBot

2022-03-14 11:35

administrator   ~68659

Fixed in Release 5.3.5+220314

Related Changesets

LimeSurvey: master aefa6164

2022-03-08 17:44

gabrieljenik

Committer: GitHub


Details Diff
Fixed issue 17321: Array question are not split up on mobile devices when using vanilla theme Affected Issues
17321
mod - application/config/version.php Diff File
mod - application/core/LsDefaultDataSets.php Diff File
add - application/helpers/update/updates/Update_485.php Diff File

Issue History

Date Modified Username Field Change
2021-05-22 14:16 Mazi New Issue
2021-05-22 14:17 ollehar Sync to Zoho Project => |Yes|
2021-05-22 14:30 DenisChenu Note Added: 64514
2021-05-22 14:30 DenisChenu File Added: Capture d’écran_2021-05-22_14-29-57.png
2021-05-22 14:39 Mazi Note Added: 64515
2021-05-22 18:18 DenisChenu Note Added: 64516
2021-05-22 18:25 DenisChenu Note Added: 64517
2021-05-22 18:26 DenisChenu Relationship added related to 08426
2021-05-22 18:27 DenisChenu Relationship added related to 14605
2021-05-22 18:32 DenisChenu Relationship added related to 12037
2021-05-23 22:38 ollehar Priority none => normal
2021-05-23 22:38 ollehar Sync to Zoho Project Yes => |Yes|
2021-05-25 10:53 ollehar Note Added: 64523
2021-05-25 11:38 DenisChenu Note Added: 64524
2021-05-25 11:42 ollehar Note Added: 64525
2021-05-25 11:43 ollehar Note Added: 64526
2021-05-25 11:44 ollehar Assigned To => gabrieljenik
2021-05-25 11:44 ollehar Status new => assigned
2021-05-25 11:50 DenisChenu Note Added: 64527
2021-05-25 12:25 Mazi Note Added: 64529
2021-05-25 12:28 DenisChenu Note Added: 64530
2021-05-25 12:32 ollehar Note Added: 64531
2021-05-27 01:22 gabrieljenik Note Added: 64583
2021-05-27 08:14 DenisChenu Note Added: 64585
2021-05-27 08:14 DenisChenu File Added: Capture d’écran_2021-05-27_08-13-21.png
2021-05-27 16:16 gabrieljenik Note Added: 64599
2021-05-27 16:16 gabrieljenik File Added: image.png
2021-05-27 16:36 Mazi Note Added: 64601
2021-05-27 16:45 DenisChenu Note Added: 64602
2021-05-27 17:06 gabrieljenik Note Added: 64603
2021-05-27 18:06 Mazi Note Added: 64605
2021-05-27 18:49 gabrieljenik Note Added: 64607
2021-05-28 09:01 Mazi Note Added: 64612
2021-05-28 14:35 gabrieljenik Note Added: 64636
2021-05-28 14:35 gabrieljenik Status assigned => feedback
2021-05-28 14:41 DenisChenu Note Added: 64637
2021-05-28 15:43 gabrieljenik Note Added: 64650
2021-05-30 18:30 Mazi Note Added: 64659
2021-05-30 18:30 Mazi Status feedback => assigned
2021-05-31 14:22 gabrieljenik Note Added: 64668
2021-05-31 14:22 gabrieljenik Status assigned => ready for code review
2021-06-16 14:46 gabrieljenik Status ready for code review => feedback
2021-06-16 14:46 gabrieljenik Note Added: 64926
2021-08-30 12:27 galads Status feedback => closed
2021-08-30 12:27 galads Resolution open => fixed
2021-08-30 12:27 galads Note Added: 66172
2021-08-30 12:27 galads Bug heat 8 => 10
2022-02-01 14:37 Mazi Status closed => feedback
2022-02-01 14:37 Mazi Resolution fixed => reopened
2022-02-01 14:37 Mazi Complete LimeSurvey version number (& build) 4.6.2 => 5.2.10+220118
2022-02-01 14:38 galads Status feedback => assigned
2022-02-01 14:38 galads Zoho Project Synchronization Yes => |Yes|
2022-02-01 14:40 tpartner Note Added: 68167
2022-02-01 14:40 tpartner Bug heat 10 => 12
2022-02-01 15:17 Mazi Note Added: 68170
2022-02-01 16:24 ollehar Note Added: 68173
2022-02-01 16:24 ollehar Priority normal => high
2022-02-01 16:24 ollehar Zoho Project Synchronization Yes => |Yes|
2022-02-01 21:15 gabrieljenik Note Added: 68178
2022-02-02 09:52 Mazi Note Added: 68183
2022-02-02 13:43 gabrieljenik Note Added: 68184
2022-02-02 14:12 gabrieljenik Note Added: 68185
2022-02-02 17:24 gabrieljenik Note Added: 68187
2022-03-08 16:44 gabrieljenik Changeset attached => LimeSurvey master aefa6164
2022-03-08 16:44 gabrieljenik Note Added: 68599
2022-03-08 16:44 gabrieljenik Resolution reopened => fixed
2022-03-14 11:35 LimeBot Zoho Project Synchronization Yes => |Yes|
2022-03-14 11:35 LimeBot Note Added: 68659
2022-03-14 11:35 LimeBot Status assigned => closed
2022-03-14 11:35 LimeBot Bug heat 12 => 14