- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple Choice Images fails after 2 subquestions
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
3 years 2 months ago #210081
by justenoughlinux
Multiple Choice Images fails after 2 subquestions was created 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
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
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
3 years 2 months ago #210085
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple Choice Images fails after 2 subquestions
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.
The topic has been locked.
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
3 years 2 months ago #210120
by justenoughlinux
Replied by justenoughlinux on topic Multiple Choice Images fails after 2 subquestions
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.
Thanks for the quick response.
The topic has been locked.
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
3 years 2 months ago #210123
by justenoughlinux
Replied by justenoughlinux on topic Multiple Choice Images fails after 2 subquestions
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
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
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
3 years 2 months ago #210124
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple Choice Images fails after 2 subquestions
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.
The topic has been locked.
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
3 years 2 months ago #210125
by justenoughlinux
Replied by justenoughlinux on topic Multiple Choice Images fails after 2 subquestions
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.
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:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
3 years 2 months ago - 3 years 2 months ago #210126
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple Choice Images fails after 2 subquestions
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.
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.
Last edit: 3 years 2 months ago by tpartner.
The following user(s) said Thank You: justenoughlinux
The topic has been locked.
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
3 years 2 months ago #210128
by justenoughlinux
Replied by justenoughlinux on topic Multiple Choice Images fails after 2 subquestions
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.
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.
The topic has been locked.
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
3 years 2 months ago #210129
by justenoughlinux
Replied by justenoughlinux on topic Multiple Choice Images fails after 2 subquestions
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.
Thank you so much to everyone who offered up help I am very appreciative.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 2 months ago #210133
by DenisChenu
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.
Replied by DenisChenu on topic Multiple Choice Images fails after 2 subquestions
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
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.
The topic has been locked.
- justenoughlinux
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
3 years 2 months ago - 3 years 2 months ago #210196
by justenoughlinux
Replied by justenoughlinux on topic Multiple Choice Images fails after 2 subquestions
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?
"
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: 3 years 2 months ago by justenoughlinux. Reason: Light bulb moment
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12789
- Thank you received: 3940
3 years 2 months ago #210203
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple Choice Images fails after 2 subquestions
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
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
The topic has been locked.