Welcome to the LimeSurvey Community Forum

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

Can't edit question after import - 500 error

More
3 years 1 month ago #212665 by dangc
Hello there!
I think this might be a bug, if I'm not missing something trivial I can file a bug.

I updated Limesurvey to version 4.4.10+210222 (from version 4.1.? - I think this should not be relevant). After the upgrade I imported a survey I use a lot that I have saved in .lss format. Import is ok but I cannot edit any question. When I open the edit question page (index.php/questionAdministration/view?surveyid=839658&gid=634&qid=3105&1614289115575) I get the following 500 Internal server error:

An exception has been thrown during the rendering of a template ("Question and its behaviors do not have a method or closure named "relevance".").

I think this is not really a template error but something that may have changed during version and is not being fixed during import.

My survey was pretty small so I just recreated it, but I think this may be a significant issue for longer surveys.

I attach my survey so you can test it yourself.

Best regards and thank you for your great job!
dan
The topic has been locked.
More
3 years 1 month ago #212670 by jelo
The LS4 release seems to be buggy.

When I import your survey, I sometimes trigger an error when clicking the edit question button first.

Uncaught TypeError: LS.questionEditor is undefined
onclick https://SNIP/index.php/questionAdministration/view?surveyid=839658&gid=77&qid=727:

When I change to different question and back, I can get the edit question screen. And I can change and save things in that question.

Next click I sometimes get a 500 in the browservconsole and nothing happend.

GET    https://SNIP/index.php/questionAdministration/view?surveyid=839658&gid=75&qid=725&1614441733047=
Status500
Internal Server Error

LS4 is still very buggy and unusable for conducting surveys in a predictable manner.

 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #212678 by DenisChenu
Replied by DenisChenu on topic Can't edit question after import - 500 error
Best solution seems to report the issue,

I try to fix integrity after import : same issue …

A quick fix : add
Code:
    /** Set defaut relevance **/
    public $relevance ="";

at this line
github.com/LimeSurvey/LimeSurvey/blob/ae...els/Question.php#L88

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.
More
3 years 1 month ago #212693 by dangc
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #212697 by DenisChenu
Replied by DenisChenu on topic Can't edit question after import - 500 error
I don't mean it's the fix to do, i give you a trick to allow edit your survey ;)

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 following user(s) said Thank You: dangc
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose