Skip to content

Conversation

AlaaL
Copy link

@AlaaL AlaaL commented Feb 6, 2025

On windows, when i try to open a project summary i get an exception, it turns out the applyform defenition is with small letter f and in the layout it's used in capital F.

The exception:
Is not possible to use $this->layout() in partials. Symfony\Component\Form\Exception\LogicException: No block "form" found while rendering the form. at Symfony.Component.Form.FormRenderer.renderBlock(FormRenderer.php:76) at Symfony.Bundle.FrameworkBundle.Templating.Helper.FormHelper.form(FormHelper.php:83) at Goteo.Util.Foil.Extension.Forms.form(Forms.php:48) at call_user_func_array(Unknown Source)
at Foil.Kernel.Command.execute(Command.php:168)
at Foil.Kernel.Command.doRun(Command.php:195)
at call_user_func_array(Unknown Source)
at Foil.Kernel.Command.doRunIsolated(Command.php:181) at call_user_func_array(Unknown Source)
at Foil.Kernel.Command.run(Command.php:104)
at call_user_func_array(Unknown Source)
at Foil.Template.Template.run(Template.php:164)
at call_user_func_array(Unknown Source)
at Foil.Template.Template.__call(Template.php:102) at require(layout.php:25)
at Foil.Template.Template.collect(Template.php:287) at Foil.Template.Template.render(Template.php:241) at Foil.Engine.doRender(Engine.php:307)
at Foil.Engine.render(Engine.php:211)
at Goteo.Application.View.render(View.php:86)
at Goteo.Core.Controller.viewResponse(Controller.php:37) at Goteo.Controller.Dashboard.ProjectDashboardController.summaryAction(ProjectDashboardController.php:228) at Symfony.Component.HttpKernel.HttpKernel.handleRaw(HttpKernel.php:158) at Symfony.Component.HttpKernel.HttpKernel.handle(HttpKernel.php:80) at Goteo.Application.App.run(App.php:157)
at require_once(index.php:62)
at (main)(router_dev.php:33)

🎩 What? Why?

Please describe your pull request.

📌 Related Issues

Link your PR to an issue

  • Related to #?
  • Fixes #?

Testing

Describe the best way to test or validate your PR.

📷 Screenshots

Please add screenshots of the changes you are proposing
Description

♥️ Thank you!

On windows, when i try to open a project summary i get an exception, it turns out the applyform defenition is with small letter f and in the layout it's used in capital F.

The exception: 
Is not possible to use $this->layout() in partials.
Symfony\Component\Form\Exception\LogicException: No block "form" found while rendering the form.
at Symfony.Component.Form.FormRenderer.renderBlock(FormRenderer.php:76)
at Symfony.Bundle.FrameworkBundle.Templating.Helper.FormHelper.form(FormHelper.php:83)
at Goteo.Util.Foil.Extension.Forms.form(Forms.php:48)
at call_user_func_array(Unknown Source)
at Foil.Kernel.Command.execute(Command.php:168)
at Foil.Kernel.Command.doRun(Command.php:195)
at call_user_func_array(Unknown Source)
at Foil.Kernel.Command.doRunIsolated(Command.php:181)
at call_user_func_array(Unknown Source)
at Foil.Kernel.Command.run(Command.php:104)
at call_user_func_array(Unknown Source)
at Foil.Template.Template.run(Template.php:164)
at call_user_func_array(Unknown Source)
at Foil.Template.Template.__call(Template.php:102)
at require(layout.php:25)
at Foil.Template.Template.collect(Template.php:287)
at Foil.Template.Template.render(Template.php:241)
at Foil.Engine.doRender(Engine.php:307)
at Foil.Engine.render(Engine.php:211)
at Goteo.Application.View.render(View.php:86)
at Goteo.Core.Controller.viewResponse(Controller.php:37)
at Goteo.Controller.Dashboard.ProjectDashboardController.summaryAction(ProjectDashboardController.php:228)
at Symfony.Component.HttpKernel.HttpKernel.handleRaw(HttpKernel.php:158)
at Symfony.Component.HttpKernel.HttpKernel.handle(HttpKernel.php:80)
at Goteo.Application.App.run(App.php:157)
at require_once(index.php:62)
at (main)(router_dev.php:33)
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

Successfully merging this pull request may close these issues.

1 participant