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

[Engine Twig PHP] - pattern rendering broken in ^6.0.0 #1508

Open
eWert-Online opened this issue Jun 3, 2024 · 2 comments
Open

[Engine Twig PHP] - pattern rendering broken in ^6.0.0 #1508

eWert-Online opened this issue Jun 3, 2024 · 2 comments

Comments

@eWert-Online
Copy link
Contributor

I am using Pattern Lab Node v6.1.0 on Mac, with Node v20.11.1, using a Vanilla Edition.

Expected Behavior

Twig Templates get rendered without any error messages.

Actual Behavior

An PHP Error is thrown:

Undefined array key "data" in pattern_twig/node_modules/@basalt/twig-renderer/dist/server--async.php on line 115 when trying to render 00-meta/_foot.twig

Steps to Reproduce

Create a patternlab with a lot of patterns.
At some point, the number of patterns will exceed the max_post_size of the @basalt/twig-renderer.


I have analyzed the error a bit. It seems the body payload of the 00-meta/_foot.twig template is too large to be handled by the php @basalt/twig-renderer.
I have opened an issue in their repository as well and will try to submit a fix there. knapsack-cloud/twig-renderer#139

If the @basalt/twig-renderer will not accept the fix, is there a way to reduce the body payload in the _foot.twig template?

@mfranzke
Copy link
Contributor

mfranzke commented Jun 6, 2024

@eWert-Online thanks for reporting this. Could it be related to #1505 (and even also get solved by the solution provided in that other issue) ?

@eWert-Online
Copy link
Contributor Author

@mfranzke
Yes, it sounds like the same problem.
I wouldn't call downgrading a solution though. Its more a workaround until a real fix is available.

Do you see an option to reduce the size of the _footer template, where this error originates from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants