Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moodle 4.3: get_all_user_name_fields() is deprecated #174

Open
Ewa55 opened this issue Jan 26, 2024 · 1 comment
Open

Moodle 4.3: get_all_user_name_fields() is deprecated #174

Ewa55 opened this issue Jan 26, 2024 · 1 comment

Comments

@Ewa55
Copy link

Ewa55 commented Jan 26, 2024

Hi,
I tested the plugin on Moodle 4.3, but the following problem already appears in Moodle 4.1

Default exception handler: Coding error detected, it must be fixed by a programmer: get_all_user_name_fields() is deprecated. Please use the \core_user\fields API instead Debug:
Error code: codingerror

  • line 2795 of /lib/deprecatedlib.php: coding_exception thrown
  • line 101 of /local/datacleaner/cli/lib.php: call to get_all_user_name_fields()
  • line 91 of /local/datacleaner/cli/clean.php: call to safety_checks()

!!! Coding error detected, it must be fixed by a programmer: get_all_user_name_fields() is deprecated. Please use the \core_user\fields API instead !!!
!!

@Ewa55
Copy link
Author

Ewa55 commented Jan 26, 2024

the solution is:
\core_user\fields::get_name_fields()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant