xAPI-vle / moodle-logstore_xapi

A Moodle plugin to send xAPI statements to an LRS using events in the Moodle logstore.
GNU General Public License v3.0
75 stars 85 forks source link

Call to undefined method LogExpander\Controller #780

Closed Choogster1 closed 1 year ago

Choogster1 commented 3 years ago

I'm trying to get a plugin working which uses the moodle-logstore_xapi indirectly, so in this case, I was wondering if anybody can shed some light on errors I'm getting. The plugin in question is this: https://github.com/leo-learning/moodle-logstore-elasticsearch. It redirects logs from the logstore to elasticsearch.

When I try to save the configuration of the plugin I get the following error message:

Exception - Class 'LogExpander\Controller' not found.

I'm wondering if thats because the plugin can't connect to elasticsearch, or some other reason. It's impossible to know exactly from the Moodle error, so perhaps somebody here can shed some light?

Choogster1 commented 3 years ago

I've solved the issue. The plugin uses version 2 of logstore_xapi, as in later versions you seem to have moved from including the lib folder which the elasticsearch plugin refers to. I would be interested in how to do about addressing the following in new versions of the plugin?

        "XREmitter\\": "../xapi/lib/emitter/src/",
        "LogExpander\\": "../xapi/lib/expander/src/",
        "MXTranslator\\": "../xapi/lib/translator/src/"

Thanks!