Welcome to the LimeSurvey Community Forum

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

Call to undefined function Twig\json_encode() error after PHP upgrade

  • adrianwi
  • adrianwi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 1 month ago - 1 year 1 month ago #250626 by adrianwi
I've been updating a FreeBSD jail running on TrueNAS for a few years and never had any issue manually updating the Limesurvey application.  I've just upgraded from 6.1.4 to 6.2.8, and it works fine.

I noticed the jail was running a fairly old version of PHP 7.4.32 so thought I'd update the packages to 8.1.  There isn't a JSON or openssl package as I believe these are now in the core PHP code?  Anyway, all of the other PHP packages were upgraded to 8.1.

When I try and start Limesurvey I now get an error:Internal Server ErrorCall to undefined function Twig\json_encode()An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.Thank you.Any ideas what this might be and how to resolve it?

Thanks
 
Last edit: 1 year 1 month ago by adrianwi. Reason: Wrong PHP version

Please Log in to join the conversation.

  • adrianwi
  • adrianwi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 weeks 10 hours ago - 3 weeks 9 hours ago #267579 by adrianwi
I know resurrecting an old thread probably isn't the best idea, but I'm still having this issue even though I've updated to mariadb105 and Limesurvey 6.6.6.

Updating PHP beyond 7.4 throws the error I listed above and it would be great to upgrade this to something a little more supported.

Thanks in advance
Last edit: 3 weeks 9 hours ago by adrianwi.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 weeks 6 days ago #267586 by DenisChenu

I know resurrecting an old thread probably isn't the best idea,
 
But WHY you do it if you know it's a bad idea ?
Just create a new topic !

Else : github.com/LimeSurvey/LimeSurvey/blob/5b...ig/internal.php#L310

It's you own theme/template ?

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.

  • adrianwi
  • adrianwi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 weeks 6 days ago - 2 weeks 6 days ago #267590 by adrianwi
Firstly, thanks for the reply! I only resurrected the old thread as I found that when searching the problem, and realised I'd already ask the same question a year ago.  Dind't seem much point asking the same question again in a different thread.

I'll take another look, but I don't think I've done anything with the default themes.  Ignore the security update as I'd upgraded my jail template last night after updating to 6.6.6, and PHP74 is no longer an option to install, so I needed to rollback a snapshot, which was taken post 6.6.6 upgrade!

I don't think I can upload a screenshot, but I have 4 survey themes: Bootswatch, Fruity, Fruity TwentyThreeBootstrap Vanilla;
and 1 admin theme: Sea Green Default;  and 36 question themes, but they all say core and I don't recall changing anything.


Thanks again

 
Last edit: 2 weeks 6 days ago by adrianwi.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose