Forum
Can't add page, get Forbidden on form submit
On an established site trying to add a page (just a link, actually) on the Add a New Page screen and upon Submit there is a 403 Forbidden error. Strange, because the URL of the page is the same as the Add a New Page form, which displayed fine, just adding a query string.
Updated to 2.8.6 but still get the same result.
/admin/core/apps/content/page/add/ has 644 permissions and the same owner as every other page.
Brain fried. Not sure what else to try.
What sort of environment is this in?
Is this local, or a hosting server? Do you have any unusually restrictive configuration?
It's a hosting server, and it's a garden variety shared hosting plan. I've put quite a few Perch sites on the same host, and the site in question has been in service with Perch for over a year. Something must have changed on the server, but I'm at a loss as to what to investigate or try next. It's especially vexing that the "add page" Perch form would load fine with no data, but then show a 403 Forbidden error on save. Isn't is the exact same file that's reloading on Submit?
The difference is the HTTP GET vs POST.
Does the page have a lot of content, or anything in the content that might look suspicious or spammy?
It's the standard Perch "add a page" form in the control panel. /admin/core/apps/content/page/add/
Trying to add a "link only" page with title "Ultimate Plant-Based Nutrition Resource Guide" and url "https://resources.plantricianproject.org"
I think you'll need to speak to your host. It sounds like strangely configured mod_security rules.
Okay, thanks, I wouldn't have thought of that. It does seem a little spammy :-) I'll ask the host.