bozoh / moodle-mod_simplecertificate

It's NOT RECOMMENDED to install version below 2.2.6 (MOODLE_31), due a security issues See more in README
17 stars 44 forks source link

Failed opening required '.../Horde/Support/Uuid.php' with Moodle 4.4 #267

Open leonstr opened 3 months ago

leonstr commented 3 months ago

Describe the bug When attempting to view the certificate with mod_simplecertificate 2024051101 and Moodle 4.4 the following error occurs:

Exception - Failed opening required '[dirroot]/lib/horde/framework/Horde/Support/Uuid.php' (include_path='[dirroot]/lib/pear:.:/usr/share/pear:/usr/share/php')

More information about this error Debug info: Error code: generalexceptionmessage Stack trace:

line 847 of /mod/simplecertificate/locallib.php: Error thrown
line 619 of /mod/simplecertificate/locallib.php: call to simplecertificate->get_issue_uuid()
line 1969 of /mod/simplecertificate/locallib.php: call to simplecertificate->get_issue()
line 122 of /mod/simplecertificate/view.php: call to simplecertificate->view_default()

See also this forum reply.

Moodle Version(s) Moodle version 4.4+ (Build: 20240516).

To Reproduce Steps to reproduce the behavior:

  1. Create a course.
  2. Add a mod_simplecertificate instance.
  3. From the course page click on the mod_simplecertificate instance.
  4. Click the Get certificate button.

Expected behavior The certificate is displayed.

Screenshots

simplecerterror

Desktop (please complete the following information):

leonstr commented 3 months ago

This appears to be because mod_simplecertificate depends on Horde which was removed in Moodle 4.4 (MDL-80207).

matestaweb commented 3 months ago

Hola, se ha solucionado este error?

bozoh commented 2 months ago

Since there is no more support to UUID, why not change the alg. which generate the certificate code to nanoid

ivosnabl commented 1 month ago

Please upgrade plugin, we strongly need compatibility to Moodle 4.4!!!

jheenan commented 1 month ago

We are also experiencing this issue on our Moodle 4.4s

davidherney commented 1 month ago

Hi...

I have created a branch with compatibility with Moodle 4.4+. Please test it and give me your feedback: https://github.com/bozoh/moodle-mod_simplecertificate/tree/tk_moodle404_compatibility

Saludos

ivosnabl commented 1 month ago

It works in first test, thank you!