Forums

Permission error on pass-through php file (3 posts)

  1. joemerchant2
    Member
    Posted 8 months ago #

    Creating a plugin and most of the functionality works. However, there is a time when I have a permission problem.

    I click on my custom "create" button on a plugin admin page. That button (form) then calls a php file which processes the information and then should redirect to a new page. The problem is that whenever I click my "create" button, I get the "you do not have permission to access this page" error. This happens even if I just type in the url.

    I even made a temp copy of my pass-through php file that only echo's "hello." I still get the permission error.

    Help!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    This is commonly caused by an issue with the nonce validation.

    See http://ottopress.com/2009/wordpress-settings-api-tutorial/

  3. joemerchant2
    Member
    Posted 8 months ago #

    I don't use nonce's at that point. Something I was going to add in later.

Reply

You must log in to post.

About this Topic

Tags