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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Do HTMLText entries have to end with "Content"?


Go to End


639 Views

Avatar
HansR

Community Member, 141 Posts

2 February 2012 at 4:30pm

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 this thread 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