clivebeckett / grav-plugin-admin-addon-media-metadata

This plugin is an addon for the Grav CMS Admin plugin and lets you add and edit metadata for media files
MIT License
8 stars 6 forks source link

Flex-Objects broken when this Plugin is Enabled #30

Open chellmann opened 6 months ago

chellmann commented 6 months ago

When this Plugin is Enabled, Flex-Objects can't be edited via Admin-Panel. Following Error ist presented when trying to access Flex-Object Page:

TypeError
Grav\Framework\Flex\Flex::getDirectory(): Argument #1 ($type) must be of type string, null given, called in /XXXX/user/plugins/admin-addon-media-metadata/admin-addon-media-metadata.php on line 385

Admin Addon Media Metadata v1.2.3 Flex Objects v1.3.6 Grav v1.7.45 - Admin v1.10.45

Disabling the Media-Metadata Plugin solves the issue

bitstarr commented 6 months ago

I'm not able to reproduce this. Can you tell me more about the Flex Objects you are working with?

chellmann commented 6 months ago

OK, this might be a fun one. I have a simple Flex-Object Collection without custom route. When i add a custom route and menu entry the error is gone / there is no need to call the overview page for flex objects.