output a DeprecationWarning if get_page_modes has been overridden