Joomdle 2.x Installation

[SOLVED] Error message in Moodle plugin installation

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 8 months ago - 2 years 8 months ago #1 by Pierrick Le Brun
Hello,

This is on a brand new install of Joomdle 2.0.4 with Joomla 4.2.6 and Moodle 4.1 and PHP 8.1
REST protocol is activated in Moodle

I chose :
Connection method: cURL
Web services protocol: REST

But Each time I try saving the configuration, I get the following message:
Code:
Coding error detected, it must be fixed by a programmer: Capability 'webservice/xmlrpc:use' was not found! This has to be fixed in code.

Any ideas what could cause this problem ?

Thanks !!
Last edit: 2 years 8 months ago by Pierrick Le Brun. Reason: Added PHP version

Please Log in or Create an account to join the conversation.

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 8 months ago #2 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Error message in Moodle plugin installation
And here is the debug message from Moodle :
Code:
Coding error detected, it must be fixed by a programmer: Capability 'webservice/xmlrpc:use' was not found! This has to be fixed in code. More information about this error Debug info: Error code: codingerror Stack trace: line 1389 of /lib/accesslib.php: coding_exception thrown line 117 of /auth/joomdle/db/install.php: call to assign_capability() line 53 of /auth/joomdle/classes/admin_setting_configtext_initial_config.php: call to joomdle_moodle_config->add_user_capability() line 8933 of /lib/adminlib.php: call to auth_joomdle_admin_setting_configtext_initial_config->write_setting() line 26 of /admin/upgradesettings.php: call to admin_write_settings()

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Error message in Moodle plugin installation
Hi.

Thanks for the bug report. It seems Moodle 4.1 remove xmlrpc capability, so I'll need to release a new package.
If you want to move forward, you can make a simple change yourself.
File: moodle/auth/joomdle/db/install.php
Remove / comment out line 117:
assign_capability('webservice/xmlrpc:use', CAP_ALLOW, $roleid, $context->id, true);

Please Log in or Create an account to join the conversation.

  • Pierrick Le Brun
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 8 months ago #4 by Pierrick Le Brun
Replied by Pierrick Le Brun on topic Error message in Moodle plugin installation
Yes, all is well now. Thank you very much !!

Please Log in or Create an account to join the conversation.