From 12a460fb42e96eaa790236170e866710b86183a4 Mon Sep 17 00:00:00 2001 From: Alaa Allham Date: Thu, 6 Feb 2025 13:02:56 +0300 Subject: [PATCH] On windows project page not opening because case sensitivity 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) --- Resources/templates/responsive/dashboard/project/layout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/templates/responsive/dashboard/project/layout.php b/Resources/templates/responsive/dashboard/project/layout.php index 6c95774fae..cbda359ad3 100644 --- a/Resources/templates/responsive/dashboard/project/layout.php +++ b/Resources/templates/responsive/dashboard/project/layout.php @@ -22,7 +22,7 @@
\n", $this->errors) ?>
- form_form($this->raw('applyForm'), [], true); ?> + form_form($this->raw('applyform'), [], true); ?>