events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

by Syed Ali -
Number of replies: 2

Upgraded from 3.5 to 3.9.

Now getting following error.

Coding error detected, it must be fixed by a programmer: events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

Average of ratings: -
In reply to Syed Ali

Re: events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

by Ken Task -
Picture of Particularly helpful Moodlers

Mind describing how you are upgrading?

Are you following:

https://docs.moodle.org/39/en/Upgrading

If not a 3rd party plugin issue, 'has been depreciated' sometimes happens when one is trying to upgrade by overwriting core code rather than following the upgrade doc.

Also ... did you research all 3rd party plugins ... not core code ... to see if they have a compatible 3.9.x version before you attempt upgrading?

'SoS', Ken


Average of ratings: Useful (1)
In reply to Syed Ali

Re: events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Very likely that you have an old plugin that is not compatible with 3.9