1

What is corect way to use kint in views-view-unformatted.html.twig

I do:

{{ kint(rows) }}

but I get this error.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20794259 bytes) in /home/inatcent/public_html/core/lib/Drupal/Core/Render/Renderer.php on line 448

And for {{ kint(row) }} I get null what is ok. But I want more staff. :)

  • Fatal error: Allowed memory size of 134217728 bytes exhausted you need to increase your php memory_limit. – No Sssweat Jun 17 '16 at 8:21
3

Option 1: Try to increase your php memory limit above the 250 MB.

Option 2: Don't try to debug all the rows at once.

{{ for row in rows }}
  {{ kint(row) }}
{{ endfor }}

P.S.

The reason {{ row }} was null, was because that variable does not exist in the template unless declared like in my example above.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.