Everything works fine here, moving to another section and removing the activity.
You can test in my dev site http://www.dev-moodle.ml
the debug messages is point to moodle's core files, not to my plugin file (my file is under the folder mod/simplecertificate).
i think could be some installation error