• Hi all,

    I just fell upon this issue while developping a new plugin. It’s the first time I see this :

    when I send a form I have on one of my admin pages for this plugin, I get this error : Cannot load my-plugin-page , my-plugin-page being the name of the page I’m trying access, which is actually the same where the form was sent from.

    After some investigation it appears that if ( has_action($hook) ) in the get_plugin_page_hook function (in wp-admin/includes/plugin.php) returns false.

    I’m rather sceptical as I can properly access the page from my admin menu link

    After further testing, I discovered the problem may be caused by an element in my form : <input type=”hidden” name=”post_type” value=”my-value” />
    as I no longer have the issue after removing it.
    So I guess my problem can be considered ‘resolved’ as I don’t need this data anyway…

    But, I’d really like to understand
    Why would a $_POST element named ‘post_type’ break the access to my plugin admin page ?
    What does one thing have to do with the other ?
    Is this normal behavior ?

    If someone could give me insight here, it would be greatly appreciated, thank you 😉

The topic ‘plugin admin page hook has no action ?’ is closed to new replies.