Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

500: Internal Server Error array_key_exists(): Argument #2 ($array)

  • melisa.kurtt
  • melisa.kurtt's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 2 weeks ago #268245 by melisa.kurtt
Hi,
We're having a problem with one of our surveys. Most of the respondents who tried to start the survey got the "500: Internal Server Error  array_key_exists(): Argument #2 ($array) must be of type array, null given." error. Some of the respondents were successful to start the survey, but at the end of it they got the  "500: Internal Server Error: Attempt to assign property 'scenario' on null."  How can I fix this problem? My php version is 8.3.8 and LS version is community 6.2.11. 
Thanks.
 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 2 weeks ago #268251 by holch
First of all LS 6.2.11 is quite "old" already (has been released somewhen in 2023, so it is over 12 months old) and there have been quite a few releases (with bug fixes and security patches) since. The current version is LS 6.8.2, so you can see that there must have been quite a few things going on since 6.2.11.

So before trying to start to check if this is a bug, I highly recommend to upgrade to the latest version and see if this still persists. In my opinion, it doesn't make sense to try to fix a bug that might actually already be fixed in new versions.

Should this persist after the updating to the latest version, then we should check systematically, when and where this error appears exactly.

Once you did the update and the error persists, it is important to provide as much information as possible (e.g. server enviroment this is running on, vor example Linux vs Windows server, etc.)

here a link to the same error in LS5 a while ago:
forums.limesurvey.org/forum/design-issue...ts-argument-2-$array

No real solution so far. But it doesn't seem to be a Limesurvey specific error, because if you post the error string, it seems to have impact on many other platforms as well (Drupal, Prestashop, etc), which leads me to the conclusion, that it might have more to do with the server configuration, than with the actually websoftware. But I am no expert on this. Let's see what for example Denis has to say about this.

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.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 month 2 weeks ago #268308 by DenisChenu

 My php version is 8.3.8 and LS version is community 6.2.11. 

 
Update !
And if it's not fixed : report issue.

PHP8.3 can still have some issues.

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.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose