I am planning the update to Drupal 8.8 and have been following a guide from this blog post.

I am finding that the database update does not work with Group 8.x-1.0-rc4 installed; failing with the following error.

Error: Call to a member function getDefinitions() on null in Drupal\group\Entity\Views\GroupContentViewsData->getViewsData() (line 79 of /Users/paul/Sites/schoolupdate/public_html/web/modules/contrib/group/src/Entity/Views/GroupContentViewsData.php) #0 /Users/paul/Sites/schoolupdate/public_html/web/core/modules/views/views.views.inc(178): Drupal\group\Entity\Views\GroupContentViewsData->getViewsData()

I found that I needed to install the current dev of Group for the update to succeed.

This was only a test for my production site and I'd being interested to know whether I could gone about in a different way to avoid the error.

Any suggestions much appreciated.

Comments

MrPaulDriver created an issue. See original summary.

larowlan’s picture

I also got this

larowlan’s picture

I've put some musing about the cause of this in the 8.8 beta testing issue

larowlan’s picture

Actually the issue here is that GroupViewsData defines an entityManager property so the magic __get doesn't fire

larowlan’s picture

berdir’s picture

Note that this has been fixed in dev already in #3061353: Replace deprecated EntityManager and add EntityFieldManager in GroupContentViewsData, the other issue will only be committable once group decides to require 8.8.

phjou’s picture

I just found that error too.
Since it's fixed and Drupal 8.8 is released, it would be nice to create a new release to avoid that people spent time on that.

dww’s picture

Note: I opened #3100998: Create a 8.x-1.0-rc5 release as an explicit task about when to ship the rc5 release.

Thanks,
-Derek

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.