- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Ranking questions do not apear
- Ljubo
- Topic Author
- Offline
- New Member
Less
More
4 years 3 months ago #191622
by Ljubo
Ranking questions do not apear was created by Ljubo
Hello,
I hope to ask the question in the right place because I cannot conclude if it is a "bug" or I did something wrong on my instance.
So the error happens solely on the type of question "ranking", regardless of the "theme" used, and the error message reads:
Undefined offset: 8038 in /home/.../application/helpers/expressions/em_manager_helper.php on line 6276
PHP warning
array_filter() expects parameter 1 to be array, null given
The first part of the code that appears in the error message:
I'm using the Limesurvey version 3.19.1+191009.
Thank you in advance!
Ljubo
I hope to ask the question in the right place because I cannot conclude if it is a "bug" or I did something wrong on my instance.
So the error happens solely on the type of question "ranking", regardless of the "theme" used, and the error message reads:
Undefined offset: 8038 in /home/.../application/helpers/expressions/em_manager_helper.php on line 6276
PHP warning
array_filter() expects parameter 1 to be array, null given
The first part of the code that appears in the error message:
I'm using the Limesurvey version 3.19.1+191009.
Thank you in advance!
Ljubo
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 3 months ago #191623
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking questions do not apear
Hi, Ljubo,
please send a sample (lss export) that only contains this question and the one that defines the array filter.
Joffm
please send a sample (lss export) that only contains this question and the one that defines the array filter.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Ljubo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
4 years 3 months ago #191624
by Ljubo
Replied by Ljubo on topic Ranking questions do not apear
Joffm, thank you very much for your reply ...
Attached is a survey. As for your second note, I didn't do the filtering (at least not on purpose)! I don't know if you meant to make one example with filtering, regardless.
Greeting,
Ljubo
Attached is a survey. As for your second note, I didn't do the filtering (at least not on purpose)! I don't know if you meant to make one example with filtering, regardless.
Greeting,
Ljubo
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 3 months ago #191625
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking questions do not apear
Hi,
I tested in three versions (3.15.5, 3.18.0, 3.20.1, I do not have 3.19.1) without any issue.
Well, I did not have your added css classes.
But if you have a look to the change logs there is this.
Changes from 3.19.1 (build 191009) to 3.19.2 (build 191017) October 17, 2019
-Fixed issue #15368: Filtered ranking didn't appear if in same page than the filter (Denis Chenu)
This seems to be a bit different from your problem, but the best is to update and try again.
Anyway, your error message is in the part "array_filter".
Joffm
I tested in three versions (3.15.5, 3.18.0, 3.20.1, I do not have 3.19.1) without any issue.
Well, I did not have your added css classes.
But if you have a look to the change logs there is this.
Changes from 3.19.1 (build 191009) to 3.19.2 (build 191017) October 17, 2019
-Fixed issue #15368: Filtered ranking didn't appear if in same page than the filter (Denis Chenu)
This seems to be a bit different from your problem, but the best is to update and try again.
Anyway, your error message is in the part "array_filter".
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Ljubo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
4 years 3 months ago #191629
by Ljubo
Replied by Ljubo on topic Ranking questions do not apear
OK, but I have a small problem here - I'm not an IT expert and the update version automatically offers me Instalatron on c-Panel. Currently it only offers this version that I have. I don't know how to push it, so obviously I'll have to wait. I downloaded the .zip of the latest version to the desktop and will try to manually switch it, for example answer.twig or something ... Do you have any advice in this way?
Joffm, thank you so much anyway!
Joffm, thank you so much anyway!
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 3 months ago #191630
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking questions do not apear
No idea about c-panel.
But what happens when you test it in the demo installation here (Resources/Demo)?
Joffm
But what happens when you test it in the demo installation here (Resources/Demo)?
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Ljubo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
4 years 3 months ago #191631
by Ljubo
Replied by Ljubo on topic Ranking questions do not apear
Yes, in that environment, things work. I'll try to upgrade somehow.
Thanks
Ljubo
Thanks
Ljubo
The topic has been locked.
- Ljubo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
4 years 3 months ago #191632
by Ljubo
Replied by Ljubo on topic Ranking questions do not apear
Maybe Denis Chenu, who was doing the changes, can help me with advice on "manual" updating?
Ljubo
Ljubo
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
4 years 3 months ago #191633
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Ranking questions do not apear
I am sure Denis will help you updating, for a fee. However, you have other options: You can use the comfort update available from within LS (paid) or you follow the update instructions in the manual. It is not too complicated.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- Ljubo
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
4 years 3 months ago #191640
by Ljubo
Replied by Ljubo on topic Ranking questions do not apear
This time I was able to solve the problem myself. Obviously it was a BUG. I replaced some of the files that I judged to be important (all concerning the "EM helper), using the ones from the .zip of the latest version, and was able to raise ranking questions. I guess that will be enough until it comes regular updates through "Installatron."
Thanks to all for your help and suggestions.
Greeting,
Ljubo
Thanks to all for your help and suggestions.
Greeting,
Ljubo
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
4 years 3 months ago #191643
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Ranking questions do not apear
To be honest, I would NOT want to depend on Installatron for updates.
LS has a good update feature, but you have to pay for it (ComfortUpdate). If you use LS regulary, I think it is a good investment. If you are capable to pick the files out of the ZIP file that you think are responsible, you are probably also able to replace all files with the new files (except for the files you adapted like themes, etc.). So you could just do the updates manually.
All these automatic installation tools like Installatron do not care about the different software tools and they generally do not offer current updates. So i would highly recommend to do the updates yourself, either through ComfortUpdate, or manually yourself. It is basically the same process you already did, just with more files. Pretty easy. We all have done it for years, before ComfortUpdate came out.
LS has a good update feature, but you have to pay for it (ComfortUpdate). If you use LS regulary, I think it is a good investment. If you are capable to pick the files out of the ZIP file that you think are responsible, you are probably also able to replace all files with the new files (except for the files you adapted like themes, etc.). So you could just do the updates manually.
All these automatic installation tools like Installatron do not care about the different software tools and they generally do not offer current updates. So i would highly recommend to do the updates yourself, either through ComfortUpdate, or manually yourself. It is basically the same process you already did, just with more files. Pretty easy. We all have done it for years, before ComfortUpdate came out.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 3 months ago #191661
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 Ranking questions do not apear
It's PHP warning : then appear ONLY with debug > 0 : WHY you set debug up to 0 on your version ?
The fix : github.com/LimeSurvey/LimeSurvey/commit/...4b9caea9d461e4ea80c9
The fix : github.com/LimeSurvey/LimeSurvey/commit/...4b9caea9d461e4ea80c9
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.