Custom Header – Uploading Error – Permission
-
For the life of me, I can’t figure this out.
Bone stock installation. From scratch. Nothing special. All the keys are defined in the config file, and permissions are correct within the file structure.
When uploading a custom header, I get the error message “You do not have sufficient permissions to access this page.“. It doesn’t matter which browser etc… ModSecurity isn’t killing it, and I can reproduce on demand. I can even work around it by messing with the URL. More on that later.
Now – when I just go to the page normally, the URL shows:
/wp-admin/themes.php?page=custom-header
In the source code, I see the following in the form action:
<form enctype="multipart/form-data" id="upload-form" method="post" action="/wp-admin/themes.php?page=custom-header%3Fpage%3Dcustom-header&step=2">
And so consequently, once the file is specified and submitted, the URL displays:
/wp-admin/themes.php?page=custom-header%3Fpage%3Dcustom-header&step=2
And the error is displayed saying that I do not have sufficient permissions. In my mind, I’m thinking… What? Really? That’s either some really bad programming, or there is something going askew somewhere. Now, if I manually alter the initial page to:
/wp-admin/themes.php?page=custom-header&step=1
… meaning I added &step=1 to the end of it… the form action changes to:
<form enctype="multipart/form-data" id="upload-form" method="post" action="/wp-admin/themes.php?page=custom-header&step=2">
Now I can specify the image to upload as the custom header, hit upload, and success!
So my question is…. WTF? Is this normal? Is there a bug? Is it possible I have a configuration issue? Like I said, this thing is stock as stock can be. I even re-installed the DB/files, reapplied permissions, etc. So I be at loss mang.
- The topic ‘Custom Header – Uploading Error – Permission’ is closed to new replies.