Quote:

a common mistake is to place functions/actions OVER the main function, which also results in a action not found.

you must place it AFTER the main function in order to make it work correctly




That shouldn't be a problem. Placing actions/functions over the main function is fine, you do it all the time when you use include.