elearningsoftware / moodle-mod_journal

The Moodle journal module for moodle 2.0+
https://moodle.org/plugins/view.php?plugin=mod_journal
16 stars 34 forks source link

Error in externallib.php #81

Closed ptramonti closed 1 year ago

ptramonti commented 1 year ago

Hi, If I go to the Moodle API Documentation I get the error:

Warning: require_once($CFG->libdir/externallib.php): failed to open stream: No such file or directory in /shares/bl-moodle/prod/www_root/dol/mod/journal/externallib.php on line 27

Fatal error: require_once(): Failed opening required '$CFG->libdir/externallib.php' (include_path='/shares/bl-moodle/prod/www_root/dol/lib/pear:.:/usr/share/php') in /shares/bl-moodle/prod/www_root/dol/mod/journal/externallib.php on line 27

You have to go to the mod/journal/externallib.php on line 27 and change: require_once('$CFG->libdir/externallib.php'); with: require_once("$CFG->libdir/externallib.php");

Ciao Paolo

adrian-sarmas commented 1 year ago

This has been fixed in the latest update on master branch.