Fixed the warnings, this was due to the editor not expecting the index (id = 0).
Fixed the permission error. This occurred when a user didn't have full permissions to change everything about a wiki article. The save action was checking all the possible permissions for all features, rather than just permissions for what the user modified.