cursiveinc / moodle-tinymce_cursive

The Cursive plugin for Moodle extends TinyMCE to create a new layer of data (key event logs) which can be used in many ways (feedback, scoring, authentication) and can be connected to Cursive's ML server.
Other
2 stars 4 forks source link

Plugin cannot be properly installed in Moodle 4.1 #60

Closed sumaiyamannan closed 1 week ago

sumaiyamannan commented 1 week ago

Hi, The plugin fail to install properly on Moodle 4.1

plugin branch: main PHP 7.4 Postgres 12

The below error was displayed but the plugin was partially installed, for instance the capability didnt work post installation. It is referring to a class which is not available in this Moodle's version.

Default exception handler: Exception - Class 'core_external\util' not found Debug: 
Error code: generalexceptionmessage
* line 74 of /lib/editor/tiny/plugins/cursive/db/install.php: Error thrown
* line 38 of /lib/editor/tiny/plugins/cursive/db/install.php: call to create_token_for_user()
* line 767 of /lib/upgradelib.php: call to xmldb_tiny_cursive_install()
* line 1953 of /lib/upgradelib.php: call to upgrade_plugins()
* line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()

!!! Exception - Class 'core_external\util' not found !!!
!! 
Error code: generalexceptionmessage !!
!! Stack trace: * line 74 of /lib/editor/tiny/plugins/cursive/db/install.php: Error thrown
* line 38 of /lib/editor/tiny/plugins/cursive/db/install.php: call to create_token_for_user()
* line 767 of /lib/upgradelib.php: call to xmldb_tiny_cursive_install()
* line 1953 of /lib/upgradelib.php: call to upgrade_plugins()
* line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()

Regards, Sumaiya

nawazsharif commented 1 week ago

@sumaiyamannan Please use this branch for moodle 4.1 https://github.com/cursiveinc/moodle-tinymce_cursive/tree/moodle-4.1

sumaiyamannan commented 1 week ago

Hi @nawazsharif

It still does not work. I am getting this error now

Default exception handler: Invalid user Debug: 
Error code: invaliduser
* line 556 of /lib/classes/user.php: moodle_exception thrown
* line 1056 of /lib/externallib.php: call to core_user::require_active_user()
* line 74 of /lib/editor/tiny/plugins/cursive/db/install.php: call to external_generate_token_for_current_user()
* line 37 of /lib/editor/tiny/plugins/cursive/db/install.php: call to create_token_for_user()
* line 767 of /lib/upgradelib.php: call to xmldb_tiny_cursive_install()
* line 1953 of /lib/upgradelib.php: call to upgrade_plugins()
* line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()

!!! Invalid user !!!
!! 
Error code: invaliduser !!
!! Stack trace: * line 556 of /lib/classes/user.php: moodle_exception thrown
* line 1056 of /lib/externallib.php: call to core_user::require_active_user()
* line 74 of /lib/editor/tiny/plugins/cursive/db/install.php: call to external_generate_token_for_current_user()
* line 37 of /lib/editor/tiny/plugins/cursive/db/install.php: call to create_token_for_user()
* line 767 of /lib/upgradelib.php: call to xmldb_tiny_cursive_install()
* line 1953 of /lib/upgradelib.php: call to upgrade_plugins()
* line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()

Regards, Sumaiya

sumaiyamannan commented 1 week ago

This issue should be reopened and fixed please