trilbymedia / grav-plugin-flex-objects

Powerful and supremely flexible object support for Grav
MIT License
41 stars 10 forks source link

Error acessing FlexObjects plugin configuration from Admin #108

Open NicoHood opened 3 years ago

NicoHood commented 3 years ago

When trying to access http://localhost:8000/de/admin/plugins/flex-objects (The Flex Plugin overview from admin panel) I get the following error:

An exception has been thrown during the rendering of a template ("Cannot load blueprint blueprints://flex-objects/pages.yaml: Loop detected while extending blueprint file '/<removed>/user/themes/quark/blueprints/default.yaml'").

This does only happen with the flex plugin, no other plugin.

mahagr commented 3 years ago

Unfortunately, I cannot reproduce this one. Must be related to your page template somehow, have you customized it?

NicoHood commented 3 years ago

I am using the template from quark theme: https://github.com/getgrav/grav-theme-quark/blob/develop/blueprints/default.yaml

This is also causing the issue. So it will be broken for many users, as it is the default theme.

mahagr commented 3 years ago

I'm using Quark as well and there are no issues for me.

NicoHood commented 3 years ago

You can reproduce this plugin by adding my grav seo plugin at the latest commit.

The bug occurs because of:

    public $features = [
        'blueprints' => 0, // Use priority 0
    ];

Even if the plugin is disabled, the error occurs (ouch!)

mahagr commented 3 years ago

Must be this: https://github.com/NicoHood/grav-plugin-seo/blob/master/blueprints/default.yaml#L1

I will need to check it out.

mahagr commented 3 years ago

@NicoHood I think I found the issue. If you move the page blueprints (or all files/folders) into blueprints/pages in the plugin, everything will work.

That said, I think this is a bug and should be fixed.

mahagr commented 3 years ago

PS: Disabled plugins will not do anything anymore. They are fully disabled and shouldn't cause errors like this anymore.

NicoHood commented 3 years ago

Were did the bug got fixed? In grav 1.7.16 this issue still exists! And the quark theme also did not get fixed yet:

https://github.com/getgrav/grav-theme-quark/blob/develop/blueprints/default.yaml

NicoHood commented 3 years ago

Please reopen this issue