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

Getting error when outputting grid field in template

Developer Preview

Electric Putty's avatar
Electric Putty
88 posts
12 years ago
Electric Putty's avatar Electric Putty

I created a very basic grid field (3 cols: text, rte, date)

My template code looks like this:

{exp:channel:entries channel="grid_test"}
{g_field}
      {g_field:simple_text}<br />
      {g_field:rich_text}<br />
      {g_field:date}<hr />
{/g_field}
{/exp:channel:entries}

When I load the frontend I get the following errors:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Api_channel_fields::$field_type

Filename: libraries/Api.php

Line Number: 294

A PHP Error was encountered

Severity: Notice

Message: Undefined index:

Filename: libraries/Grid_parser.php

Line Number: 599
       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Very strange, I’m unable to reproduce. If you view the grid_columns table, do any of them have a blank value for “col_type”? For some reason, it looks like the fieldtype isn’t getting instantiated properly when trying to replace the tag. I think I’ve seen it happen one other time in a bug report but don’t see how it happens.

Does this install happen to be on a remote server where I could have access, poke around and debug?

       
Electric Putty's avatar
Electric Putty
88 posts
12 years ago
Electric Putty's avatar Electric Putty

Hi Kevin,

I have sent you a private message with URLs and log in details.

Best, Malcolm

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Sorry I think I have PMs disabled, do you mind sending it again to my email address? [email protected]

Thanks a lot, this will be a big help!

       
Electric Putty's avatar
Electric Putty
88 posts
12 years ago
Electric Putty's avatar Electric Putty

Have emailed you now.

Thanks, Malcolm

       
Brad Parscale's avatar
Brad Parscale
196 posts
12 years ago
Brad Parscale's avatar Brad Parscale

Hello,

Same for me. I can’t get Grid to work even with the most basic setup. Every grid I make ends with this error on the templates.

Brad

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Sorry, Brad! I worked with Malcolm and figured out the issue, a couple files need patching. The next dev preview release should have this and many other issues fixed, I’m hoping we can get that out soon.

       

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.