Welcome to the LimeSurvey Community Forum

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

Error 500: round(): Argument #1 ($num) must be of type int|float, string given

  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago #244115 by roblej
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Versión 5.4.10+221107
Own server or LimeSurvey hosting: Server Debian 11, Varnish, MySQL 5.5, PHP 8
Survey theme/template:
==================
We have set up a new server with the configuration: Server Debian 11, Varnish, MySQL 5.5, PHP 8

We have imported the surveys that were working correctly in LimeSurvey 3.25.15+210223 and when entering the survey for the first time by clicking on the survey title link, the error occurs:

Error 500:
round(): Argument #1 ($num) must be of type int|float, string given

However, by clicking on the "general settings and texts" icon to the left of the title, you can enter and the survey can be administered correctly. This error is reproduced a few times until you log out and log in again and then it disappears.

It also occurs in user surveys, almost always at the end, on the last screen.

We have seen questions in forums about this error for other similar applications (moodle, wordpress, drupal, etc.) and it seems that all agree that they are incompatibilities of the application with PHP8, mainly due to lack of development.

Does anyone have experience with this error in LimeSurvey 5?

Thanks and best regards
 

Please Log in to join the conversation.

More
11 months 2 weeks ago #244116 by jelo

Your LimeSurvey version: LimeSurvey Community Edition Versión 5.4.10+221107
 
You're are using an outdated build of LimeSurvey 5,
Before investigating the issue I would recommend to update to a new LS5 build and check again.
What exact version of PHP 8 is used?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #244143 by DenisChenu
Aftre update to last 5

Please : report the issue, i'm sure it still exist in last version.

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.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #244144 by DenisChenu
PS : and deactivate debug mode

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.

Please Log in to join the conversation.

  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago #244146 by roblej
Thank you very much, jelo and Denis

Jelo: still waiting the answer of hosting provider about the exact versión of PHP

Denis: you mean this in config.php file?

'config'=>array(
'debug'=>0,
'debugsql'=>0,
)

thanks again

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #244147 by DenisChenu
Yes,

It's already on debug=>0 ?

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.

Please Log in to join the conversation.

  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago #244151 by roblej
Yes, it was already 0.

on the development server, we have upgraded to LimeSurvey 5.6.26+230613 via comfort update and we have verified that the degug mode settings were set to 0

PHP version is 8.0.20

should we put a lower PHP version? which version do you recommend?

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #244156 by DenisChenu
You can upload a sample lss file with this issue ?

8.0.20 (and 8.1) MUST work : issue to be reported.

Maybe test if you have issue with 7.4.

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.

Please Log in to join the conversation.

  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago - 11 months 2 weeks ago #244158 by roblej
Thank you very much for you answer. I would prefer not to make the survey public because it is a development for an institutional client, but I can send it to you by mail if you provide me with a means to do so, such as an email account.

You can send me your address to ikanosad20@gmail.com

But I already suspect that the problem has to do with the database limit. I uploaded the survey to my limesurvey.org account and got the same error.

The survey has these dimensions, although most of them are conditional questions depending on the user's profile:

Languages: 2
Groups of questions: 30
Questions: 639
Question attributes: 9466
Options: 134
Sub-questions: 2127
Last edit: 11 months 2 weeks ago by roblej.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago - 11 months 2 weeks ago #244161 by DenisChenu
Maybe you can test just using a copy of survey and remove all unrelated question ?

After : you can update he sentence to put some Lore Ipsum.

[edit]
PS : you have 2 separate issue here  Sub-questions: 2127  : yes DB limit
But still such issue are related to such other issue :  github.com/LimeSurvey/LimeSurvey/pull/3214
Using cont(null) in Expression Manager don't break with 7.4 but with 8.0

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.
Last edit: 11 months 2 weeks ago by DenisChenu.

Please Log in to join the conversation.

  • roblej
  • roblej's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 2 weeks ago - 11 months 1 week ago #244165 by roblej
 

Thanks again, Denis.

As you suggested, we have replaced the texts with lorem ipsum. We uploaded the complete survey file and a user's file already with the profile label. Only a certain number of items are shown to each profile.

We are taken a look to the "cont(null)" issue, because we do not realize clearly what do you mean.

Thanks a lot
Last edit: 11 months 1 week ago by roblej.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 2 weeks ago #244179 by DenisChenu

We are taken a look to the "cont(null)" issue, because we do not realize clearly what do you mean.
 
It's because PHP8 broke with this.
And with Expressin manager : we doln't check if the data are an array or not before using it.

It's a LimeSurvey issue, except move to 7.4 : no way to fix it currently.

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.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose