Hi,
On Moodle 2.6. Error: get_list_of_languages() can not be used any more, please use get_string_manager()->get_list_of_translations() instead.
Does anyone have a simple resolution for editing code?
Thanks,
lost in code Robert
Hi Robert, Moodle 2.6 isn't supported anymore, I'd highly reccomend you upgrade to a supported version. It will be much easier for the community to give you useful advice as it's unlikely we'll have a 2.6 installation around to refer to.
As for the error itself, I'm not familiar with it but it sounds self-explanatory. Find get_list_of_languages()
in your code and replace it with get_string_manager()->get_list_of_translations()
. If you post more detail about your code and what you're trying to do, someone might be able to offer more help.
According to the upgrade instructions, you will need to go 2.6 to 2.7, then 2.7 to 3.2, then 3.2 to 3.7: https://docs.moodle.org/37/en/Upgrading#Check_the_requirements https://docs.moodle.org/32/en/Upgrading#Check_the_requirements
Visvanath,
I was afraid that was the problem, the mystery is solved, thank-you. Now I must take it off the domain and do a fresh install of Moodle Release 3.7. as turned PHP back down to 5.6 trying to repair for up-grade w/o success. We used Moodle since 2008 teaching golf cart safety. I wish to thank the Moodle developers and contributors for assisting in saving lives and serious injuries to so many around the world. I had to investigate far too many preventable fatalities and serious injuries involving the very young and old. The sadness and guilt in families who lost children had been unbearable to some. I will get the new site functioning as soon as possible.
Best regards,
Robert