Problems after installation

Problems after installation

by Pedro Azevedo -
Number of replies: 4

Hi after on of the administrators installed the HotPot our moodle begin to show some problems.


When we click in Site Admin menu a popup with json error appear:


JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
File: http://moodle.../theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js Line: 37340
The stacktrace is attached.

In Report > Log we got the error:
Parse error: syntax error, unexpected '[' in /moodle/mod/hotpot/lib.php on line 2340

Average of ratings: Useful (1)
In reply to Pedro Azevedo

Re: Problems after installation

by Pedro Azevedo -

Sorry forgot to add some info:

Moodle: 2.6.4 (Build: 20140714)

PHP 5.3

Average of ratings: Useful (1)
In reply to Pedro Azevedo

Re: Problems after installation

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hello Pedro,
It seems that the PHP code in the latest version of that file, "mod/hotpot/lib.php", was not compatible with PHP 5.3. Sorry about that blush

I have fixed the code now and confirmed that it runs OK on Moodle 2.6 + PHP 5.3.

Please arrange for the HotPot module on your Moodle site to be updated at the next convenient opportunity.

Many thanks for bringing this issue to my attention approve
Gordon

In reply to Gordon Bateson

Re: Problems after installation

by Pedro Azevedo -

Thanks for the kindly and quick support.

Sorry for bother you again, but to apply the fix should I extract the 'mod_hotpot_moodle35_2018062622.zip' and paste the hotpot folder into moodle/mod folder?