Fatal error: Call to a member function trigger_event() on a non-object in

Missing global ;)