-
Notifications
You must be signed in to change notification settings - Fork 17
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
textlib_get_instance() can not be used any more, please use core_text::functioname() instead. #9
Comments
Hi, I have same problem, and solve it by modifying source code as below. In file $MOODLEROOT/local/ldap/locallib.php : Comment or delete lines (it appears in 2 functions) Replace line and every occurrence of "textlib::" by "core_text::" For information, not sure this development will be update |
Thanks BrunoMalaval for your suggestion. get_context_instance() is deprecated, please use context_xxxx::instance() instead. |
Hello, get_context_instance() is a Moodle function, and is deprecated now with new versions of Moodle. I take a look at the Moss plugin, it hasn't be update for several years. Modifying the code is not a good idea, because it's too old. You'll certainly need to rewrite all the plugin ... not a good idea I think this plugin is no more available until Moss development team produce a new version. Good luck and have a nice day |
Hello just use your script on Moodle 2.9.1 and get above error. Any Idea how to solve the problem? In Moodle 2.7 everythink workes fine !
Here ist the complete error message:
Default exception handler: Fehler in der Kodierung gefunden, den nur ein Programmierer korrigieren kann: textlib_get_instance() can not be used any more, please use core_text::functioname() instead. Debug:
Error code: codingerror
!!! Fehler in der Kodierung gefunden, den nur ein Programmierer korrigieren kann: textlib_get_instance() can not be used any more, please use core_text::functioname() instead. !!!
The text was updated successfully, but these errors were encountered: