rabser / moodle-auth_googleoauth2

Oauth2 authentication plugin for Moodle (for Moodle 3.2 and earlier)
GNU General Public License v3.0
79 stars 78 forks source link

level must be specified in init() method of each method #101

Closed simonevr closed 9 years ago

simonevr commented 9 years ago

Hi, I use moodle oauth with gmail and moodle 2.6.

After the gmail autentication when i return to moodle, i've this error:

"level must be specified in init() method of each method"

can you help me?

simonevr commented 9 years ago

Debug info: Error code: codingerror Stack trace:

line 427 of /lib/classes/event/base.php: coding_exception thrown
line 489 of /lib/classes/event/base.php: call to core\event\base->validate_before_trigger()
line 407 of /auth/googleoauth2/auth.php: call to core\event\base->trigger()
line 89 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()
mouneyrac commented 9 years ago

Thanks for the report Simone. What is your plugin branch? Are you using 2.6 and not master?

simonevr commented 9 years ago

Hi mouneyra, i use moodle 2.6.4+ and plugin: vim googleauth2/version.php $plugin->version = 2014060700; $plugin->requires = 2013102500; // Requires Moodle 2.6 or later $plugin->release = '1.5 (Build: 2013110100)'; $plugin->maturity = MATURITY_STABLE; // this version's maturity level

mouneyrac commented 9 years ago

you can use the branch for 2.6, that may work better: https://github.com/mouneyrac/moodle-auth_googleoauth2/tree/STABLE_26

$plugin->version = 2014111902; // only increment with +1 $plugin->requires = 2013102500; // Requires Moodle 2.6 or later $plugin->release = '1.5 (Build: 2014111902) STABLE_26'; $plugin->maturity = MATURITY_STABLE; // this version's maturity level

where did you get your plugin?

simonevr commented 9 years ago

Thank you, now it's ok !!!

I get your plugin http://mouneyrac.github.io/moodle-auth_googleoauth2/ more and less in early November, but only i've time for testing.

Exist the stable version for 2.7?

mouneyrac commented 9 years ago

Yes the master branch works on 2.7 :)

Otherwise there is also this place to download all versions: https://moodle.org/plugins/view.php?plugin=auth_googleoauth2

If you like the plugin and use it, don't forget the many way to encourage the maintenance: