local plugin getting the error: The event name or namespace is invalid

Re: local plugin getting the error: The event name or namespace is invalid

by Suraj Kumar -
Number of replies: 0
Hello Ankit.

I have made a local plugin - local_programmanagement
I want to log every action related to program management.

I have my file structure like this -
local/programmanagement/classes/event/prepayment_cycle_added.php
local/programmanagement/classes/event/prepayment_cycle_modified.php
Also, I had created
local/programmanagement/db/events.php - where I had added both the events into the $observers variable.

Surprisingly, prepayment_cycle_added is showing into the list of Event
But, the second - prepayment_cycle_modified is not showing in this list. I have crossed checked again by upgrading the version as well as purging the moodle cache.

Any  hint/help would be highly appreciable.