Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

403 after submitting a form with HTML Text

Go to End



Community Member, 6 Posts

19 May 2011 at 8:56am

Has anyone had issues with saving a custom data object with HTML text? I've written some pretty basic code for a dataobject and a holder (Page) for that object and whenever I try saving the dataobject with more than one HTML paragraph tag? When adding or updating my dataobject in a popup or the modelAdmin, i get a 403 response in firebug and rerouted to the 404 page for the site. If the dataobject's HTML field is left blank, has one HTML paragraph, or multiple paragraphs in plain text the form saves correctly.

I've tried returning true in the canEdit and canCreate functions, renaming fields, changing physical file permissions (i don't recommend broke my site completely), using the TextareaField, HTMLEditorField, SimpleTinyMCEField....all of these yield the same results.

And to complicate the search for the problem more, I downloaded my entire remote site, set up a local dev site, imported the remote database and everything works correctly.

This tells me it's most likely a server configuration issue. Anybody have any clues as to where to start looking for the problem? My remote server is running (CentOS) Apache 2 and PHP 5.2.13 and my local site is (Mac OS X 10.6) Apache 2 and PHP 5.3.4.