question type:Date can not use

More
4 days 16 hours ago #177984 by ming123ABC
ming123ABC created the topic: question type:Date can not use
Hi everyones

i uses question type:Date in my survey

but i try to view question before actives survey

it showes

:Internal Server Error
Unknown "json_encode" function. Did you mean "json_decode"?
An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

my version : 3.4.0+180219

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

More
4 days 12 hours ago #177989 by DenisChenu
DenisChenu replied the topic: question type:Date can not use

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

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

More
4 days 12 hours ago #177993 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
php:5.5.36

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

More
4 days 11 hours ago #177995 by tpartner
tpartner replied the topic: question type:Date can not use

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LouisGac

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

More
4 days 11 hours ago #177996 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
Thx,I will check it

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

More
4 days 5 hours ago #178021 by holch
holch replied the topic: question type:Date can not use

php:5.5.36


Isn't 5.5.36 > 5.5.9??

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
4 days 3 hours ago #178027 by tpartner
tpartner replied the topic: question type:Date can not use
No, the last time I checked, .36 is less than .9 :)

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

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

More
4 days 3 hours ago - 4 days 3 hours ago #178028 by holch
holch replied the topic: question type:Date can not use
yeah, but i don't think these are decimals, are they? Since when are there two levels of decimals?

What I want to say, in my understanding, PHP Version 5.5.36 is newer than 5.5.9. Because they start with 0 and then go up with the number, not down.

PHP sees this very similar to me:

5.5.38 - Released: 21 Jul 2016
5.5.9 - Released: 6 Feb 2014

I guess your comment was sarcasm. ;-)

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
Last Edit: 4 days 3 hours ago by holch.
The following user(s) said Thank You: DenisChenu

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

More
4 days 3 hours ago #178032 by tpartner
tpartner replied the topic: question type:Date can not use
Okay, a numbering system that makes no sense.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

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

More
4 days 3 hours ago #178033 by holch
holch replied the topic: question type:Date can not use
Of course it makes sense. It makes total sense.

Version number starts with a low number and goes up. Then there is a second level of subnumbers that goes up and they even have a second sub level. Makes total sense to me. It is the same for LS as well.

1.0.0 < 1.0.1 < 1.1.0 < 2.0.0 < 5.5.9 < 5.5.38

As far as I know, this is how most version numbering systems for software work, isn't it?

By the way the "." as decimal separator is not as common as you think. In many countries it is a "," and the dot indicates thousands.

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: DenisChenu

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

More
1 day 18 hours ago #178080 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
Thx everyone helps

Would i need to po more system data such as database version ...and so on?

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

More
1 day 11 hours ago #178082 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
SQL:Microsoft SQL Server 2008

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

More
18 hours 55 minutes ago #178146 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
I list my error code

LimeSurvey 3.5.0\application\views\survey\questions\answer\date\selector\answer.twig(52)

{% set aJsonOption = json_encode({
53 'format' : dateformatdetailsjs,
54 'minDate' : mindate[0] == '{' ? '1900-01-01' : mindate,
55 'maxDate' : maxdate[0] == '{' ? '2037-12-31' : maxdate,
56 'sideBySide' : true
57 })
58 %}

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

More
17 hours 34 minutes ago #178147 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
I check my php data

1.mbstring
Multibyte Support:enabled
Multibyte string engine :libmbfl
HTTP input encoding translation:disabled
libmbfl version:1.3.2


2.json
json support:enabled
json version:1.2.1


Would i enable HTTP input encoding translation?

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

More
12 hours 31 minutes ago #178150 by ming123ABC
ming123ABC replied the topic: question type:Date can not use
Hi everyone

I use internet to find answers today

PHP web shows that i should install json model

Should i try this?

php.net/manual/zh/json.installation.php

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!