-
Notifications
You must be signed in to change notification settings - Fork 10
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
Out of memory when extending blueprint with type:default #184
Comments
Having the same problem here. While searching for reasons why the configuration page of flex-objects does not open once Studioeditor is activated, I found this issue and bingo, perfectly valid blueprint files which extend default cause an error in flex-objects. If I change to defaultx everything runs smoothly. |
In my case the problem arises when the blueprint that extends default blueprint is name default as well. Simply renaming the blueprint to something else, e.g. plugin name resolves the issue. |
Another approach to fix the problem is to provide a full fledged default.yaml blueprint without extending it. Depends on what you need. |
Don't know if there's some documentation on how to inheritate blueprints, fact is, what I've stated before was a partial fix as the inheritance chain for blueprints got interrupted by this approach. Let's expose my findings for the inheritance chain for blueprints in a list:
The fix I exposed simply established a new common ancestor but this didn't make it to theme blueprints, bad, you could say no extend possible, let's not expose it in a biological way... What's necessary is to copy the blueprint folder structure from system / admin which means that you have to place your blueprints for pages inside of your plugin the following way:
If it's not pages, do it the same way for other inheritances... Now your default.yaml can extend without problems and will arrive perfectly at any theme blueprint which may override things again. One thing to mention so, don't include a title for the blueprint itself if you extend, anything else can be extended, overwritten, whatsoever, simply don't add This way you can keep extending changes at a minimum, that's what extending is all about :-). One more thing: if your blueprint folder structure follows the system blueprint folder structure there's no need to register your blueprints via hooks. GRAV does this automatically for you. Probably this was different some 8 years ago, things are changing. What's important, this should make it into the core documentation for GRAV, probably/hopefully it's already there...
|
I noticed that I was not able to open
/admin/plugins/flex-objects
in browser (just white page appears), the log showed error messages like the followingEven increasing the
memory_limit
did not change anything. I localized the problem to be a custom addon which defined a blueprint called default.yaml with this content (I removed the unimportant part)When I change the type to
defaulx
or something else everything works.I'm actually not having any idea what I'm talking about, and what exactly is going on here, maybe I shouldn't have defined the blueprint like that. But maybe you can decide if this is a user error on my side or if there is something broken.
The text was updated successfully, but these errors were encountered: