Cannot change language on front page

Cannot change language on front page

by Jos Smits -
Number of replies: 0

Hi,

We have a fresh Moodle installation on a remote server and we're having a small problem. As an admin, it is possible to set a certain language for the Moodle environment. That works fine. But on the main page, it should be possible to select a different language from the pull-down menu.

Using that menu, the site is reloaded and the chosen language setting is correctly added to the URL (?lang=en for example). However, the site is still being loaded in the language set by the admin.

Using debug mode, there's a lot of error reports like these:

Notice: moodle_setlocale(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>object</b> of the object you are trying to operate on was loaded _before_ the session was started in (...)/moodle/lib/moodlelib.php on line 2836

The error seems to appear on every code line containing the global variable $SESSION. My guess is that this is due to some incorrect security setting.

Does anyone have experience with this kind of problem?

We're just getting started with Moodle and it's our first VLE, so we haven't got any experience yet. Also, there's no PHP guru here to help us out.
In our Moodle installation, only 5 language packs have been copied to the server (de, en, es, fr and nl).

Can anyone help me out?

Average of ratings: -