moodle 3.6.2 to 3.9+ generalexeptionmessage

moodle 3.6.2 to 3.9+ generalexeptionmessage

by Otaku Dude -
Number of replies: 4

Hiya all,

We wanted to test out 3.9 so our IT dept set up a new virtual server for the db and one for the code and moodledata. I put the new 3.9 code and copied over moodledata folder from one of our other moodles and dumped and restored its db on the other new server. When i navigate to this site now I get a generalexptionmessage with he following output:

Debug info:
Error code: generalexceptionmessage
$a contents: Call to undefined function json_decode()
Stack trace:
  • line 535 of /lib/classes/component.php: Error thrown
  • line 436 of /lib/classes/component.php: call to core_component::fetch_component_source()
  • line 395 of /lib/classes/component.php: call to core_component::fetch_subsystems()
  • line 371 of /lib/classes/component.php: call to core_component::fill_all_caches()
  • line 307 of /lib/classes/component.php: call to core_component::get_cache_content()
  • line 126 of /lib/classes/component.php: call to core_component::init()
  • line ? of unknownfile: call to core_component::classloader()
  • line 597 of /lib/setup.php: call to spl_autoload_call()
  • line 902 of /config.php: call to require_once()
  • line 30 of /index.php: call to require_once()

I'm not sure what this all means,

Thank you in advance,

Nige.


Average of ratings: -
In reply to Otaku Dude

Re: moodle 3.6.2 to 3.9+ generalexeptionmessage

by Matthias Giger -
Picture of Particularly helpful Moodlers
Check your PHP version first, changing it to a newer version might help.
In reply to Matthias Giger

Re: moodle 3.6.2 to 3.9+ generalexeptionmessage

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
json_decode has been part of PHP for a long time.

However, it's possible to disable functions in php.ini (disable_functions =). I wonder if that's it.
In reply to Howard Miller

Re: moodle 3.6.2 to 3.9+ generalexeptionmessage

by Otaku Dude -
Hi all,

Thanks for the replies. I had to install both json and then mysqldn extensions. I had assumed they were part of PHP.

Thank you,

Nige.
Average of ratings: Useful (1)
In reply to Otaku Dude

Re: moodle 3.6.2 to 3.9+ generalexeptionmessage

by David Rojas -

good afternoon I have the same problem, could you find the solution? I have the json and mysqldn plugin installed correctly on my server. The glitch occurs when users apply a questionnaire

help!!!