Use the following rules to decide which functions and callbacks can be used together:
If you are using any new or replacement functions, do not use obsolete functions.
If you are using obsolete functions, use the obsolete error callback function types.
If you are using replacement or new functions, use the version 11.1 error callback function types.
You can use unchanged functions with all other types of functions.