When I create a media bundle with Image as provider, I get the following error message in the server log:

Got error 'PHP message: PHP Fatal error: Class Drupal\\media_entity_image\\Plugin\\MediaEntity\\Type\\Image contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Drupal\\media_entity\\MediaTypeBase::createSourceFieldStorage, Drupal\\media_entity\\MediaTypeBase::createSourceField) in /var/www/.../modules/media_entity_image/src/Plugin/MediaEntity/Type/Image.php on line 24

Fields and display of existent media bundles can be edited, but trying to edit the bundle itself results in a WSOD.
Besides, media can be called in full page state as well as referenced through media fields, but only for users with the permission to administer media entities. Other users get an Access denied even if they have the permission to view media. I don't know if both is related.

Can someone help? Thanks.

Media entity image 8.x-1.2+4-dev
Media entity 8.x-1.6+3-dev
Drupal 8.2.0

Comments

kla2t created an issue. See original summary.

marcoscano’s picture

Status: Active » Fixed
Issue tags: +D8Media

Right now the -dev versions of media_entity and media_entity_image are out of sync. If you want to use the current -dev version of media_entity, you need to use the patch in #2832130-15: Provide default source_field when creating new media entity image bundles for media_entity_image. Otherwise the stable versions of both modules should work just fine together.

Closing the ticket for now, please reopen if you have a different issue.

kla2t’s picture

Thank you, Marcos. The stable releases do fix the PHP issue.
Yet, the permissions problem persists. I might post a new issue for this one.

Status: Fixed » Closed (fixed)

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