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 "variable $files overwritten in foreach" in latte on version 2.4 #129

Open
MichalKalita opened this issue Jul 9, 2016 · 7 comments

Comments

@MichalKalita
Copy link

webloader 2.5.0
latte/latte 2.4.0

Error: WebLoader\Nette\Diagnostics\Panel
ErrorException: Variable $files overwritten in foreach on line 11 in /Library/WebServer/Documents/a8/a8reklama.cz/vendor/latte/latte/src/Latte/Engine.php(162) : eval()'d code:81
Stack trace:

0 [internal function]: Tracy\Bar->Tracy{closure}(1024, 'Variable $files...', '/Library/WebSer...', 81, Array)

1 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/latte/latte/src/Latte/Engine.php(162) : eval()'d code(81): trigger_error('Variable $files...')

2 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/latte/latte/src/Latte/Runtime/Template.php(156): Template5519eab23f->prepare()

3 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/latte/latte/src/Latte/Runtime/Template.php(323): Latte\Runtime\Template->render()

4 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/latte/latte/src/Latte/Engine.php(82): Latte\Runtime\Template->capture(Array)

5 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/janmarek/webloader/WebLoader/Nette/Diagnostics/Panel.php(136): Latte\Engine->renderToString('/Library/WebSer...', Array)

6 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/janmarek/webloader/WebLoader/Nette/Diagnostics/Panel.php(146): WebLoader\Nette\Diagnostics\Panel->getTable()

7 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/tracy/tracy/src/Tracy/Bar.php(135): WebLoader\Nette\Diagnostics\Panel->getPanel()

8 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/tracy/tracy/src/Tracy/Bar.php(81): Tracy\Bar->renderPanels()

9 /Library/WebServer/Documents/a8/a8reklama.cz/vendor/tracy/tracy/src/Tracy/Debugger.php(251): Tracy\Bar->render()

10 [internal function]: Tracy\Debugger::shutdownHandler()

11 {main}

@vymak
Copy link

vymak commented Jul 14, 2016

#130

@lukasojd
Copy link

+1

@lukasojd
Copy link

lukasojd commented Jan 9, 2017

+1 again

@revoke
Copy link

revoke commented Jan 13, 2017

Just only change name of variable $files on the lines 11 and 21 in file vendor/janmarek/webloader/Webloader/Nette/Diagnostics/panel.latte

@lukasojd
Copy link

@revoke Did you sent PR?

@lukasojd
Copy link

#116

@JohnyRicio
Copy link

Please release it. In 2.5 version I have still this isue.

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

5 participants