We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Grid Field in a Channel Form

Development and Programming

brandondmc's avatar
brandondmc
2 posts
8 years ago
brandondmc's avatar brandondmc

I’m trying to create a channel form with a grid field that contains a text field and 3 relationship fields. I’m using a tag pair for the grid field, but if there’s anything in the tag pair, I get a PHP error:

Fatal error: Cannot use object of type EllisLab\ExpressionEngine\Model\Channel\ChannelEntry as array in …ee/legacy/libraries/Grid_parser.php on line 144

I get the error even if there’s a carriage return in the tag pair. Test code is below. Any help is greatly appreciated.

{exp:channel:form channel="summer_registration" id="camp_form" class="standard"}
<label>Email:</label>{field:email_address}   <!-- this works -->


<label>Student Name:</label>
{summer_camps}{summer_camps:student_name}{/summer_camps} <!-- anything inside this tag throws error -->


{/exp:channel:form}
       
directordash's avatar
directordash
3 posts
7 years ago
directordash's avatar directordash

I’m having the exact same problem – did you ever manage to identify a fix?

       
brandondmc's avatar
brandondmc
2 posts
7 years ago
brandondmc's avatar brandondmc

No, I did not. I posted on a couple of forums and had no response.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.