Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error acessing FlexObjects plugin configuration from Admin #108

Open
NicoHood opened this issue Feb 14, 2021 · 9 comments
Open

Error acessing FlexObjects plugin configuration from Admin #108

NicoHood opened this issue Feb 14, 2021 · 9 comments
Assignees
Labels
bug Something isn't working solved Resolved question

Comments

@NicoHood
Copy link
Contributor

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.

  • Flex 1.0.2
  • Admin 1.10.3
  • Grav 1.7.5
@mahagr
Copy link
Contributor

mahagr commented Feb 16, 2021

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

@NicoHood
Copy link
Contributor Author

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
Copy link
Contributor

mahagr commented Feb 17, 2021

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

@NicoHood
Copy link
Contributor Author

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
Copy link
Contributor

mahagr commented Feb 17, 2021

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

I will need to check it out.

@mahagr mahagr added bug Something isn't working and removed cannot replicate labels Feb 17, 2021
@mahagr mahagr self-assigned this Feb 17, 2021
@mahagr
Copy link
Contributor

mahagr commented Feb 22, 2021

@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
Copy link
Contributor

mahagr commented Mar 18, 2021

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

@mahagr mahagr closed this as completed May 27, 2021
@mahagr mahagr added the solved Resolved question label May 27, 2021
@NicoHood
Copy link
Contributor Author

NicoHood commented Jun 3, 2021

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 added a commit to NicoHood/grav-plugin-todo that referenced this issue Jun 3, 2021
NicoHood added a commit to NicoHood/grav-plugin-seo that referenced this issue Jun 3, 2021
@NicoHood
Copy link
Contributor Author

NicoHood commented Jul 7, 2021

Please reopen this issue

@mahagr mahagr reopened this Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved Resolved question
Projects
None yet
Development

No branches or pull requests

2 participants