Installing latest Moodle

Installing latest Moodle

Arto Lampila -
Number of replies: 5

Through installation everything seems to go fine, but after giving the database information all i get is a blank white screen. No errorreport whatsoever. Any ideas what might be the problem / how to fix it?

Վարկանիշների միջին թիվը. -
In reply to Arto Lampila

Re: Installing latest Moodle

Arto Lampila -

After managing to get some debugtools on i get the following message:

Fatal error: Call to undefined function json_encode() in /var/www/html/moodle/lib/outputcomponents.php on line 1583

In reply to Arto Lampila

Re: Installing latest Moodle

Howard Miller -
Core developers Նկարը Documentation writers Նկարը Particularly helpful Moodlers Նկարը Peer reviewers Նկարը Plugin developers Նկարը
Almost certainly your PHP is too old. Moodle 2 requires 5.2.8 or newer (5.3.X is better if you have a choice)
In reply to Howard Miller

Re: Installing latest Moodle

Arto Lampila -

according to <?phpinfo();?> I have 5.2.8

In reply to Arto Lampila

Re: Installing latest Moodle

Arto Lampila -

After checking the php configuration of the webservice Im using and the recommended values from the moodle site I found 2 differences

magic_quotes_qpc on (recommended: off)

session.bug_compat_warn on (recommended off)

are these two critical? anything I can do about it since I have no direct access to php.ini?

In reply to Arto Lampila

Re: Installing latest Moodle

Howard Miller -
Core developers Նկարը Documentation writers Նկարը Particularly helpful Moodlers Նկարը Peer reviewers Նկարը Plugin developers Նկարը
No, not critical.

On the original point you are going to have to ask your host why that json function isn't available. It should be, so I think there must be something odd about your buiild of PHP.

from the PHP docs:

"If you're not seeing the json functions on 5.2.0 or newer, make sure php wasn't compiled with --disable-json"