I managed to make an entry type that won't let me create any entries.
The site is for a rock band, and the entry type in question is called "Shows". It contains five fields:
- Venue
- Lineup
- Date
- Time
- Body
Date and Time are Date/Time fields, Lineup and Body are standard text fields. Venue is the field that I think is causing the trouble.
Venue is an Entries field that lets you select one from several venues, which are entries in a separate section (a Structure) called Venues.
When I enter data for a show, I'm able to select from the list of venues. When I try to save the Show, however, I get an error:
Recoverable error: Object of class Craft\ElementCriteriaModel could not be converted to string.
The most meaningful looking highlighted line in the debug output is:
echo $this->getAttribute((isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "venue", array());
All these pages are in the admin section, not in my templates, thus they are pages I can't edit, so I don't know what I can do to fix this error. Is it possible that I have created an entry type that Craft can't handle? There doesn't seem to be anything that unusual about the Venue entry type.
Have I done something obviously wrong? If not, how do I debug this?
craft/app
folder to ensure you don't have any missing or corrupt files./craft/storage/runtime/compiled_templates/
. Can I force Craft to recompile templates somehow?runtime
folder. Not sure if that'll make a difference though.