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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Do HTMLText entries have to end with "Content"?


Reply

373 Views

Avatar
HansR

2 February 2012 at 4:30pm Community Member, 140 Posts

I have a page class with several HTMLText fields, one of which didn't end with "Content". This worked fine on my local WAMP server, but when i uploaded it to the production server, I got a 404 error when saving that page (just like like what [url=http://www.silverstripe.org/general-questions/show/18852]this thread[/url] describes, even though the situation is different). I got the 404 error only when I tried to write more than one paragraph to the field in question. Long story short, when I renamed the field to end in "Content", the problem disappeared.

This begs the question, why? Is there something special about fields ending in "Content"? And why would my WAMP server be immune while the production server returns a 404 error? What's triggering the 404 error (which is clearly misleading, as the error isn't caused by a missing page, or bad URL)?

Hans