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:
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.
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
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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!
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.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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
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.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.