Multiple Choice Images fails after 2 subquestions

More
2 weeks 2 days ago #210081 by justenoughlinux
I have used LimeSurvey a few times and never had an issue like this.

Limesurvey: Version 4.3.33+201228 ( I have also tried 4.3.27+201116 & 4.3.33 ) to make sure it wasn't and issue in a release.
MariaDB: 10.5
PHP: 5.7 with settings:
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360

I am self hosting on Ubuntu 18.04.

With this setup I have successfully done a few surveys but I have run into a weird bug.
I setup a single question group, add 1 question, and then I want to do 65 subquestions as images to create a "select your fav image" survey. I can upload 2 subquestions, save, view survey all is well. Add a third image, save, then I see a red warning banner that is empty but it disappear ( I have tried to catch it with my browsers debugging tool but cant gleam any information ). View the survey only the two first subquestions appear and the newly added subquestions are deleted besides the two original subquestions.

Has anyone run into this issue? I have found a few threads on here with similar issues but muuuuch larger subquestion groups.

Please let me know any other information that I could give.

Thanks in advance,

Stephen

Please Log in to join the conversation.

LimeSurvey Partners
More
2 weeks 1 day ago #210085 by tpartner
For starters you need minimum PHP 7.0 - manual.limesurvey.org/Installation_-_Lim...rvey_on_your_website

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
2 weeks 1 day ago #210120 by justenoughlinux
Alright I will start there.... Hmm i'm surprised I missed this. I will upgrade PHP and follow up later today.

Thanks for the quick response.

Please Log in to join the conversation.

More
2 weeks 1 day ago #210123 by justenoughlinux
Alright upgraded PHP to 7.2:
php7.2-fpm php7.2-common php7.2-sqlite3 php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-imap php7.2-ldap php7.2-zip
rebooted server, checked that PHP 7.2 was active, still same problem :(

Please Log in to join the conversation.

More
2 weeks 1 day ago #210124 by tpartner
Can you attach a survey export (.lss file) containing only the problematic question?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
2 weeks 1 day ago #210125 by justenoughlinux
Alright I have re-deployed my server ground up, with php 7.2 from the get go. Attached is the .lss file for the survey and my precheck as I brought the server up.
I still have the same issue, survey saves green accepted banner with no subquestions, add two subquestions saves no issues, add 3 or more and it fails with a blank red banner and only the original 2 subquestions are there.
Attachments:

Please Log in to join the conversation.

More
2 weeks 1 day ago - 2 weeks 1 day ago #210126 by tpartner
I can save sub-questions as expected in both 4.3.33 and 4.4.0-RC2.

Try updating to 4.4.0-RC2.

If the problem persists, set 'debug'=>2 in /application/config/config.php and see if anything shows while saving the question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 2 weeks 1 day ago by tpartner.
The following user(s) said Thank You: justenoughlinux

Please Log in to join the conversation.

More
2 weeks 1 day ago #210128 by justenoughlinux
Still same issue. Here is my log:

PHP Error [500]

Question has been stored, but an error happened: Object creation failed, couldn't save. ERRORS: Array ( [title] => Array ( [0] => Subquestion codes may only contain alphanumeric characters. ) ) (/var/www/html/limesurvey/application/controllers/QuestionEditorController.php:339)

#0 /var/www/html/limesurvey/framework/base/CErrorHandler.php(131): CErrorHandler->handleException()
#1 /var/www/html/limesurvey/framework/base/CApplication.php(750): CErrorHandler->handle()
#2 unknown(0): LSYii_Application->handleException()

After reading this error message I feel like it is because I am using spaces in my naming. I am making a "Beer of the Year" vote and if I dont change the "titles" to the real names of the beers the public stats don't reflect what beer is winning for the public.

Please Log in to join the conversation.

More
2 weeks 1 day ago #210129 by justenoughlinux
Problem is resolved *face palm* user error. I was adding spaces in my title names. I will find a different way to label all my subquestions... Maybe scrap the space and NameThingsLikeThis to avoid this issue going forward.

Thank you so much to everyone who offered up help I am very appreciative.

Please Log in to join the conversation.

More
2 weeks 23 hours ago #210133 by DenisChenu
Hi @justenoughlinux : it still issue : we must disable via HTML system and show a better screen when error happen.


See the issue about Question : bugs.limesurvey.org/view.php?id=16144

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.

Please Log in to join the conversation.

More
1 week 4 days ago - 1 week 4 days ago #210196 by justenoughlinux
Alright now I am getting a new error still related to this subquestion *hangs head in defeat*

"
php error 500
Undefined index: questionI10N (/var/www/html/limesurvey/application/controllers/QuestionEditorController.php:286) limesurvey
"

I have a total of 69 subquestions, fresh install and I create sample question/group. I use this question and group to create "Beer of the Year" . First save, no subquestions and it saves as expected I can adjust settings no issues. Begin to add subquestions and BAM! red banner with the error above, and the following text:

"
#0 /var/www/html/limesurvey/framework/base/CApplication.php(834): CErrorHandler->handle()
#1 /var/www/html/limesurvey/application/controllers/QuestionEditorController.php(286): LSYii_Application->handleError()
#2 unknown(0): QuestionEditorController->actionSaveQuestionData()
#3 /var/www/html/limesurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#4 /var/www/html/limesurvey/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal()
#5 /var/www/html/limesurvey/framework/web/CController.php(308): CInlineAction->runWithParams()
#6 /var/www/html/limesurvey/framework/web/CController.php(286): QuestionEditorController->runAction()
#7 /var/www/html/limesurvey/framework/web/CController.php(265): QuestionEditorController->runActionWithFilters()
#8 /var/www/html/limesurvey/application/controllers/LSBaseController.php(199): QuestionEditorController->run()
#9 /var/www/html/limesurvey/framework/web/CWebApplication.php(282): QuestionEditorController->run()
#10 /var/www/html/limesurvey/framework/web/CWebApplication.php(141): LSYii_Application->runController()
#11 /var/www/html/limesurvey/framework/base/CApplication.php(185): LSYii_Application->processRequest()
#12 /var/www/html/limesurvey/index.php(182): LSYii_Application->run()
"

I feel like this is getting way harder than it should be. Am I missing something obvious? I scanned the docs again and can't see where I went wrong.

Attached is my question that is having the issue.

The only thing that comes to mind is that I am editing the "title" for each subquestion so in the public stats people can actually see what beer is winning not just the "q01, q02, q03...." since that title is useless to outsiders. If this is the root cause to all of my headaches, how can I show the actual name in the stats for public view?
Attachments:
Last edit: 1 week 4 days ago by justenoughlinux. Reason: Light bulb moment

Please Log in to join the conversation.

More
1 week 4 days ago #210203 by Joffm
Hi,
this seems to be really strange.
In Version 4.3.33+201228 I imported your question and used these images
<figure class="image"><img src="/upload/surveys/456823/images/Hamburg-Ballett_18.jpg" style="height:150px"></figure>

and got this without problem.
Well, displayed as 12 columns (otherwise too high to show)


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 week 4 days ago - 1 week 4 days ago #210205 by tpartner
What do you mean by "title"? In your attachment, I only see sub-question codes Sq01, SQ02...and no sub-question text.

If you need this survey launched, I would install version 3.25.7 - community.limesurvey.org/downloads/

Unfortunately, you cannot import version 4 surveys into version 3.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 1 week 4 days ago by tpartner.

Please Log in to join the conversation.

More
1 week 4 days ago #210206 by justenoughlinux
That is one of the issues when I change the all the title text and click save I get the error from my above post, refresh the page and it turns all the titles back to "Sq01, SQ02..." and shrinks my subquestions back to 51 questions.

"If you need this survey launched, I would install version 3.25.7": Not a problem I can just use ansible to deploy a new server with the downgraded version... Honestly I have setup, rolled back, and hand typed this thing out almost a dozen times. Whats one more time haha >.<

I will try to go back to 3.25.7 and go through the ringer again.

Please Log in to join the conversation.

More
1 week 4 days ago #210214 by holch

I feel like this is getting way harder than it should be. Am I missing something obvious? I scanned the docs again and can't see where I went wrong.

It shouldn't and it usually isn't. I have a feeling that it has to do with your specific server setup.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now