mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
94 stars 160 forks source link

get_extra_user_fields() has been removed (Moodle 4.3.3) #612

Closed lcassisi closed 8 months ago

lcassisi commented 8 months ago

Stopped working. Got this error:

Detectado un error de codificación, debe ser corregido por un programador: get_extra_user_fields() has been removed. Please use the \core_user\fields API instead.

mdjnelson commented 8 months ago

Can you provide some replication steps? Also a full stack trace would be nice, you can get that by turning debugging on - https://docs.moodle.org/403/en/Debugging.

mdjnelson commented 8 months ago

Are you sure this is still an issue? I think you made need to change the version you are using. I did a grep for get_extra_user_fields and could not find any.

lcassisi commented 8 months ago

I use mod_certificate but it's the same with mod_custom_cert. I've just uninstalled customcert, so this is the debug for mod_certificate when loading main page (/mod/certificate/view.php?id=684):

Detectado un error de codificación, debe ser corregido por un programador: get_extra_user_fields() has been removed. Please use the \core_user\fields API instead.

Más información sobre este error

Información de depuración: Error code: codingerror×Descartar esta notificación Trazado de la pila (stack): line 2774 of /lib/deprecatedlib.php: coding_exception thrown line 451 of /mod/certificate/locallib.php: call to get_extra_user_fields() line 106 of /mod/certificate/view.php: call to certificate_get_issues()

Let me know if this info is good for you. I have to leave now. Tomorrow could send you customcert debug if you need it.

mdjnelson commented 8 months ago

These are for issues with mod_customcert, not mod_certificate. I did a grep for get_extra_user_fields() and it's not used anywhere so I dont think this is an issue for those who have updated. If you find the issue on mod_customcert please tell me what branch you are on or version.

lcassisi commented 8 months ago

A new update appeared when I downloaded de las version in Moodle website plugins page. Now is working fine.

This is the file in plugins page https://moodle.org/plugins/mod_customcert - mod_customcert_moodle37_2019052005.zip (v3.7.5) That was te problem. Thank you.