Twig: Undefined offset: 0

Hello,

since f2e5f40 I get An exception has been thrown during the rendering of a template ("Notice: Undefined offset: 0"). which makes it impossible to display any template. The problem comes from the modification made in lib/Twig/Profiler/NodeVisitor/Profiler.php.

I don’t have a solution nor an idea as to why it crashes, I hope someone can fix this quickly.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 41 (10 by maintainers)

Commits related to this issue

Most upvoted comments

1.35.2 and 2.4.6 are out and fixes this issue.

Same problem here, have to downgrade 2.4.5 to 2.4.4

I have a symfony 3.4 application, ran composer update this morning where twig updated from 2.4.4 to 2.4.5 and now I’m facing the same issue.

After I downgraded my twig to 2.4.4 the error is gone.

can you give the stack trace of the exception ?