Undefined function json_decode

Plus d'informations
il y a 5 ans 8 mois #78582 par omar01
omar01 a créé le sujet : Undefined function json_decode
I just downloaded version 2 went through the install steps; at the end of the installation I clicked on the 'Administration' button and got a blank page.

I have PHP 5.1.6 and MySQL 5.0.77 and the mbstring extension.

Found this in the web server error log:
PHP Fatal error: Call to undefined function json_decode() in .../limesurvey/application/helpers/common_helper.php on line 5425

Any help with fixing this would be appreciated. Thanks.

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 8 mois - il y a 5 ans 8 mois #78589 par DenisChenu
DenisChenu a répondu au sujet : Undefined function json_decode
Yep,

json_decose : PHP 5 >= 5.2.0
php.net/manual/fr/function.json-decode.php

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 .
Dernière édition: il y a 5 ans 8 mois par DenisChenu.

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 8 mois #78623 par Mazi
Mazi a répondu au sujet : Undefined function json_decode
I think Limesurvey 2 requires PHP 5.2 or 5.3. Please update your PHP version.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 2 semaines - il y a 5 ans 2 semaines #89131 par marcus01
marcus01 a répondu au sujet : Undefined function json_decode
This information about a later version of PHP was very useful. But I wasted a lot of time wondering what was wrong, since the official Release Notes
www.limesurvey.org/en/stable-release
clearly say that LimeSurvey 200+ requires "PHP 5.1.6 or higher".

So much for RTFM, when the FM is more F than M.
Dernière édition: il y a 5 ans 2 semaines par marcus01.

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 2 semaines #89138 par mdekker
mdekker a répondu au sujet : Undefined function json_decode
Our manual is a wiki and the project is run by volunteers so instead of complaining, you could get over to the wiki to add that information.

Thank you in advance.

---
Menno Dekker
Les utilisateur(s) suivant ont remercié: DenisChenu

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 2 semaines #89203 par marcus01
marcus01 a répondu au sujet : Undefined function json_decode
I was being snarky, but I was clearly talking about the Release Notes, not the wiki. You seem not to have addressed that at all - unless the official Release Notes are sourced from the wiki, which seems odd; how would general help-y people in the community know what version of PHP the app was coded against? Isn't that for the developers to say? Am I supposed to go edit the wiki with a note that says, "Ignore the Release Notes, the necessary PHP version appears to be something higher than specified, but I'm not sure which?"

When we users go to download code to install or upgrade LimeSurvey, the most important thing is the Release Notes, which are specifically called to our attention on the "Download" page and displayed clearly on the "Latest stable release" page. Here's a screenshot:



I took this explicit information in good faith and did follow the upgrade process detailed in the wiki. Eventually, after becoming thoroughly frustrated, I managed to get errors displayed and finally got to this page, where I find someone with the same problem and someone, apparently on the team, saying they "think" a later version is required. This may explain why the Release Notes are not right, since people on the team may not be sure themselves. This is scary.

The Release Notes for any project are necessary, fundamental documentation, presumably compiled by the project's core team. In this case, they appear to have been the direct cause of a failed upgrade. This is really not ok. I'm sorry if my saying so offends the sensitive but, while someone in my situation can always be more diplomatic (especially me, let's face it), actually distributing software with instructions that might see the software fail to run at all is pretty bad. If it were my project, I'd expect people to be pretty annoyed, and to see the project in a somewhat less favourable light.

Anyways, enough of this. Maybe I just suck and should be locked in a room with no network access, rocking backwards and forwards, wearing a jacket with inexplicably long sleeves, unable to be helped by confused psychologists who, sadly, might have been able to decipher my mumblings if only they'd done some programming training.

But it would be kind of nice, for other, less annoying hapless upgraders, assuming the PHP version issue is actually the issue, to actually find out which version of PHP this app should run on. Even a developer saying something like "well, the one on my dev box is PHP blah.blah, so that should work" would help. But I concur that I may have exhausted my ration of tolerance and will be left to suck it and see. I return now to the succour of darkness.
Pièces jointes :

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 2 semaines #89207 par c_schmitz
c_schmitz a répondu au sujet : Undefined function json_decode
First let me say that we are sorry for the inconvenience.

Well, in general the release notes and requirements are right. You can have json_encode, json_decode with version older than 5.2, too. You will just have to have the json PECL library installed on your system. (see pecl.php.net/package/json ).

Unfortunately until now nobody thought of adding this to the installer requirement check yet - but it will be added in the next version.

Best regards

Carsten Schmitz
LimeSurvey project leader

Connexion pour participer à la conversation.

Plus d'informations
il y a 5 ans 2 semaines - il y a 5 ans 2 semaines #89215 par c_schmitz
c_schmitz a répondu au sujet : Undefined function json_decode
Marcus, one more thing though. The note from Mazi is seven months old - LimeSurvey 2.0 was not released yet at the time - so Mazi did a wild guess there. Anyway, no reason to get so upset about this.

Best regards

Carsten Schmitz
LimeSurvey project leader
Dernière édition: il y a 5 ans 2 semaines par c_schmitz.

Connexion pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!