View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
16008Bug reportsSurvey editingpublic2021-03-06 17:26
Reportercdalexndr Assigned Toollehar  
PrioritynoneSeverityfeature 
Status closedResolutionreopened 
Product Version4.4.0-RC3 
Summary16008: Blank error on changing answer
Description
  1. Create a question with default question type
  2. Save the question
  3. Enter another view (edit question group) and back to question editor
  4. Change question type to "Bootstrap buttons Type: L"
  5. Bottom "Answer options" add an answer
  6. Save question
  7. Change the answer value
  8. Save question
  9. Top overlay red popup (error) with no text
  10. Exit view and re-enter question editor
  11. Notice answer did not changed
Additional Information

Version: 4.1.10_200311

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)4.1.10
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Users monitoring this issue

There are no users monitoring this issue.

Activities

cdalexndr

cdalexndr

2020-03-19 15:49

reporter   ~56675

After this error, whenever I try to save the question, same blank error appears

cdalexndr

cdalexndr

2020-03-20 10:53

reporter   ~56689

Also reproductible on 3.22.8_200309.
Dropped database and recreated but the issue is still reproductible.
Docker image "martialblog/limesurvey:3.22.8_200309-fpm-alpine" and postgres docker image "postgres:11.5-alpine"

cdalexndr

cdalexndr

2020-03-20 10:56

reporter   ~56690

After this error, editing question and saving the question results in same error and the view shows the updated changes, but actually the changes are discarded.
If I click "Preview Survey", the question is in the initial state before the error.

cdalexndr

cdalexndr

2020-03-20 17:06

reporter   ~56719

Uploaded a video with this issue: https://vimeo.com/399196405

cdalexndr

cdalexndr

2020-03-20 17:07

reporter   ~56720

Note that because of this error I'm unable to use LimeSurvey.

ollehar

ollehar

2020-03-23 18:43

administrator   ~56739

Postgres? Then it's probably fixed, please wait for the coming release and try again.

cdalexndr

cdalexndr

2020-03-23 20:10

reporter   ~56743

Yes, i'm using postgres 11.5

ollehar

ollehar

2020-03-24 11:42

administrator   ~56754

Please update to the latest version and try again. Thank you.

cdalexndr

cdalexndr

2020-03-26 10:27

reporter   ~56783

Issue still occurs using 4.1.12_200324

cdalexndr

cdalexndr

2020-03-26 10:30

reporter   ~56784

This issue should have highest priority as it doesn't allow me to create a survey, thus I cannot use this software.
I cannot update issue to change priority.

ollehar

ollehar

2020-03-26 10:43

administrator   ~56785

Still using LS from docker?

cdalexndr

cdalexndr

2020-03-26 11:25

reporter   ~56787

Yes, image: martialblog/limesurvey:4.1.12_200324-fpm-alpine

ollehar

ollehar

2020-03-26 12:20

administrator   ~56788

Since you're the only one with this problem, I'd either

1) Ask martialblog about the problem, or
2) Run without docker

ollehar

ollehar

2020-03-26 12:20

administrator   ~56789

Also try the forum for more help.

cdalexndr

cdalexndr

2020-03-26 12:43

reporter   ~56791

Docker is a must for production use.
Limesurvey seems a nice project but I cannot use it.
Instead, I've resolved to using SurveyJs frontend and some backend code for my use case.

ollehar

ollehar

2020-03-26 13:15

administrator   ~56793

There are multiple ways one can use docker. For example, you can put the source code on the server and PHP inside docker.

Glad you found a solution. ;)

ollehar

ollehar

2020-03-26 13:15

administrator   ~56794

Won't fix docker problems.

cdalexndr

cdalexndr

2020-03-27 16:41

reporter   ~56815

Another Mantis problem... Other user that replicated this issue cannot add a note or reopen this one.
He now must open a duplicate issue that will reference this one, adding complexity and separating bug tracking details.
https://github.com/martialblog/docker-limesurvey/issues/28

ollehar

ollehar

2020-03-27 16:51

administrator   ~56817

I recently fixed the "blank error". The error will now contain an error message, but it doesn't fix the underlying issue.

ollehar

ollehar

2020-03-27 16:52

administrator   ~56818

@cdorin Can you have a look at this, see if you can reproduce? I think I encountered it during quota testing (not related to quota, but still).

martialblog

martialblog

2020-04-01 11:46

reporter   ~56865

Hi,

just wanted to add my findings here as well. Hope it helps:

  • This only happends with Postgres. I tested a MySQL installation and everything works as expected, no error.
  • The Popup Error is attached
  • The error in the application log is this:

2020/03/28 04:13:01 [warning] [application] Failed to set unsafe attribute "aid" of "Answer".
2020/03/28 04:13:01 [warning] [application] Failed to set unsafe attribute "en" of "Answer".
2020/03/28 04:13:01 [error] [exception.LSJsonException.500] LSJsonException: Question has been stored, but an error happened:
in /var/www/html/application/controllers/admin/questionedit.php:297
Stack trace:
#0 [internal function]: questionedit->saveQuestionData(762155)
#1 /var/www/html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(questionedit), Array)
#2 /var/www/html/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(Object(questionedit), Object(ReflectionMethod), Array)
#3 /var/www/html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(Array)
#4 /var/www/html/framework/web/CController.php(286): CController->runAction(Object(questionedit))
#5 /var/www/html/framework/web/CController.php(265): CController->runActionWithFilters(Object(questionedit), Array)
#6 /var/www/html/application/controllers/AdminController.php(172): CController->run('questioneditor')
#7 /var/www/html/framework/web/CWebApplication.php(282): AdminController->run('questioneditor')
#8 /var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController('admin/questione...')
#9 /var/www/html/framework/base/CApplication.php(185): CWebApplication->processRequest()
#10 /var/www/html/index.php(182): CApplication->run()
#11 {main}
REQUEST_URI=/index.php/admin/questioneditor/sa/saveQuestionData/gid/1/sid/762155
HTTP_REFERER=http://localhost:8888/index.php/admin/questioneditor/sa/view/surveyid/762155/gid/1/qid/1

2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "code" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "description" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "group" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "subquestions" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "hasdefaultvalues" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "assessable" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "answerscales" of "QuestionType".
2020/03/28 04:13:02 [warning] [application] Failed to set unsafe attribute "class" of "QuestionType".

My Setup:

  • LS 4.1.12+200324

root@server:~# apache2 -V
Server version: Apache/2.4.38 (Debian)

root@server:~# psql --version
psql (PostgreSQL) 11.7 (Debian 11.7-0+deb10u1)

root@server:~# php --version
PHP 7.3.14-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )

ollehar

ollehar

2020-04-01 11:48

administrator   ~56866

Thank you! I've applied a fix that creates a proper error message, but it's not tested and merged yet. We'll have to wait for next Monday release, then test again. (Or you can apply the fix manually if you like.)

ollehar

ollehar

2021-03-05 17:29

administrator   ~62802

Please check if this bug still exists in the latest patch release. Thank you.

martialblog

martialblog

2021-03-06 11:03

reporter   ~62812

Hi,

yeah looks good now. I tested both 3.25.15+210223 and 4.4.10+210222 with Postgres and there is no error.

good job! Can be closed.

Cheers, Markus

Issue History

Date Modified Username Field Change
2020-03-19 15:43 cdalexndr New Issue
2020-03-19 15:48 ollehar Project Feature requests => Bug reports
2020-03-19 15:49 cdalexndr Note Added: 56675
2020-03-20 10:53 cdalexndr Note Added: 56689
2020-03-20 10:56 cdalexndr Note Added: 56690
2020-03-20 17:06 cdalexndr Note Added: 56719
2020-03-20 17:07 cdalexndr Note Added: 56720
2020-03-23 18:43 ollehar Note Added: 56739
2020-03-23 18:43 ollehar Status new => feedback
2020-03-23 18:43 ollehar Complete LimeSurvey version number (& build) => 4.1.10
2020-03-23 20:10 cdalexndr Note Added: 56743
2020-03-23 20:10 cdalexndr Status feedback => new
2020-03-24 11:42 ollehar Note Added: 56754
2020-03-24 11:43 ollehar Status new => feedback
2020-03-26 10:27 cdalexndr Note Added: 56783
2020-03-26 10:27 cdalexndr Status feedback => new
2020-03-26 10:30 cdalexndr Note Added: 56784
2020-03-26 10:43 ollehar Note Added: 56785
2020-03-26 11:25 cdalexndr Note Added: 56787
2020-03-26 12:20 ollehar Note Added: 56788
2020-03-26 12:20 ollehar Note Added: 56789
2020-03-26 12:43 cdalexndr Note Added: 56791
2020-03-26 13:15 ollehar Note Added: 56793
2020-03-26 13:15 ollehar Assigned To => ollehar
2020-03-26 13:15 ollehar Status new => closed
2020-03-26 13:15 ollehar Resolution open => won't fix
2020-03-26 13:15 ollehar Note Added: 56794
2020-03-27 16:41 cdalexndr Note Added: 56815
2020-03-27 16:51 ollehar Note Added: 56817
2020-03-27 16:52 ollehar Status closed => feedback
2020-03-27 16:52 ollehar Resolution won't fix => reopened
2020-03-27 16:52 ollehar Note Added: 56818
2020-03-27 16:52 ollehar Status feedback => new
2020-04-01 11:46 martialblog File Added: 77740269-3c810780-7013-11ea-83b2-537e6d90a2c1.png
2020-04-01 11:46 martialblog Note Added: 56865
2020-04-01 11:48 ollehar Note Added: 56866
2021-02-22 11:47 ollehar Product Version => 4.4.0-RC3
2021-03-05 17:29 ollehar Status new => feedback
2021-03-05 17:29 ollehar Note Added: 62802
2021-03-06 11:03 martialblog Note Added: 62812
2021-03-06 17:26 ollehar Status feedback => closed