Ranking questions do not apear

More
2 weeks 20 hours ago #191622 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
Attachments:

Please Log in or Create an account to join the conversation.

More
2 weeks 19 hours ago #191623 by Joffm
Hi, Ljubo,

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

Please Log in or Create an account to join the conversation.

More
2 weeks 18 hours ago #191624 by Ljubo
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
Attachments:

Please Log in or Create an account to join the conversation.

More
2 weeks 18 hours ago #191625 by Joffm
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

Please Log in or Create an account to join the conversation.

More
2 weeks 17 hours ago #191629 by Ljubo
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!

Please Log in or Create an account to join the conversation.

More
2 weeks 17 hours ago #191630 by Joffm
No idea about c-panel.
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

Please Log in or Create an account to join the conversation.

More
2 weeks 16 hours ago #191631 by Ljubo
Yes, in that environment, things work. I'll try to upgrade somehow.
Thanks
Ljubo

Please Log in or Create an account to join the conversation.

More
2 weeks 16 hours ago #191632 by Ljubo
Maybe Denis Chenu, who was doing the changes, can help me with advice on "manual" updating?
Ljubo

Please Log in or Create an account to join the conversation.

More
2 weeks 13 hours ago #191633 by holch
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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #191640 by Ljubo
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

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #191643 by holch
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.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #191661 by DenisChenu
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

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #191675 by Ljubo
Dear Holch, this is all right and I think the annual Comfort Update price for LS is fair. However, my business is relatively small, and when all the payments on a monthly and annual basis add up, a lot of money falls out. So I have to "save" on something.

So far, I have not had any major problems managing LS. Even though I am a psychologist, I am interested in and i like to get more involved in that area. However, when I needed some help I was able to find a developer nearby (Denis, this is probably why debug is set > 0 - is that a potential problem?). What I might (and probably will once) give some money for is some specific solutions or maybe one beautifully edited theme. The only thing that bothers me is that it could cost a lot.
Anyway, your comment on Installatron made me think and try doing the Update myself in the future. But, I still don't feel 100% sure about this because I don't know which files I should not "run over."
Greeting,
Ljubo

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #191678 by holch
Ljubo, this is why I mentioned that you can always update manually. Until a couple of years ago, there was not comfort update and a lot of people managed to update. ComfortUpdate does what its name says, it makes updating more comfortable. But that's about it. The price is reasonable, but I can understand that costs can add up. Thus, there is still the manual update and it is no rocket science.

It is explained here: manual.limesurvey.org/upgrading_from_a_previous_version

As said, those external installers seem to be a good idea, but usually cause more problems than they solve. Actually, installing LS has become fairly easy with a relatively simple process. I do have Cpanel installed on my VPS as well, but I always try to install without these one click installation packages, because you never know what they actually do with the software (they might change it, etc).

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: Ljubo

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #191691 by DenisChenu

Ljubo wrote: Denis, this is probably why debug is set > 0 - is that a potential problem?

Yes, and you see why : with debug > 0 : you have more issue when updating … for example.

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 .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Ljubo

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!