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

EE4 Grid error: Call to a member function accepts_content_type() on boolean

News and General

gylfisteinn's avatar
gylfisteinn
39 posts
7 years ago
gylfisteinn's avatar gylfisteinn

Hi, I just upgraded to EE 4.0.9 from EE 3.5.15 and from the newest EE2. I had a few Matrix and Playa fields and ran the converter to Grid/Relationship while on EE2.

Now I can’t edit or add fields in EE4. I get this error when clicking “New Field”:

Fatal error: Call to a member function accepts_content_type() on boolean in /var/www/virtual/{WEBSITE}/htdocs/manager/ee/EllisLab/Addons/grid/libraries/Grid_lib.php on line 665

Has anyone run into this?

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Did you run all the updates successfully? (In line with your other thread)

If so, check your exp_fieldtypes table for add-ons that are no longer installed. It’s possible that someone removed the files but didn’t uninstall the add-on, or that the add-on did not clean up after itself.

       
gylfisteinn's avatar
gylfisteinn
39 posts
6 years ago
gylfisteinn's avatar gylfisteinn

Hi, missed your reply last year but was running into the same error on another site. The exp_fieldtypes table was the key. Structure was missing from there. Thanks.

       
DorothyDorothy's avatar
DorothyDorothy
3 posts
5 years ago
DorothyDorothy's avatar DorothyDorothy

I have the same issue. I upgraded a site from EE 4.3.4 to EE 5. At first I didn’t notice the problem. It is only when I go into channel manager and try to edit a channel that I see the error:

>Fatal error: Uncaught Error: Call to a member function accepts_content_type() on bool in /<local file path>/deploy/sys/ee/EllisLab/Addons/grid/libraries/Grid_lib.php on line 681 > ( ! ) Error: Call to a member function accepts_content_type() on bool in /<local file path>/deploy/sys/ee/EllisLab/Addons/grid/libraries/Grid_lib.php on line 681

I can’t see anything unusual in exp_fieldtypes

Where else should I look? Thanks, Dorothy

       
bree's avatar
bree
9 posts
5 years ago
bree's avatar bree

FYI If it is helpful to anyone else, i got this error upgrading from EE2 because the grid field type was uninstalled since the site was not using grid. without noticing, i ran the playa matrix importer and it did not give any errors and successfully created the fields in the entries. I did not see the issue until i tried to get into mange the channel fields.
So, before my next attempt to upgrade i installed all the fields that were not being used that EE comes with and ran the upgrade again successfully.

       
Tyssen's avatar
Tyssen
756 posts
5 years ago
Tyssen's avatar Tyssen

I’ve just been brought in to work on an EE site which is now at v5.3.2 and is experiencing the same problem.

All the addons that are listed in the exp_fieldtypes table exist in either the ee or user addons folders.

So like Dorothy asked, where else should I be looking?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

Look in exp_fieldtypes (I sort it by type)- then go to the cp, field manager. Open the ‘type’ filter dropdown.

Compare the two. Is there a discrepancy? I’d bet there is- and if so, that’s the problem child.

       
Tyssen's avatar
Tyssen
756 posts
5 years ago
Tyssen's avatar Tyssen

Thanks Robin, that solved it for me. file_grid was missing from exp_fieldtypes. ?

       

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.