Open Claod44 opened 1 year ago
Found the part of the code where something wrong appens when apache + app_env = prod :
$response = new Response(
$this->twigEnvironment->render('@CHCookieConsent/cookie_consent.html.twig', [
'form' => $this->createCookieConsentForm()->createView(),
'theme' => $this->cookieConsentTheme,
'position' => $this->cookieConsentPosition,
'simplified' => $this->cookieConsentSimplified,
])
);
Something crashing in it.
Edit : only working when I set the twig.yml :
twig: cache: false
Fixed...
Autorisations problems on ( symfony project directory )/var/cache/prod
Need to set chown, chgrp to www-data user Then chmod 755, chmod 777
Now working. Twig wasn't able to write the cache.
Any updates of why this happen or if there is another solution? i cant use chown or chgrp on my host provider, this is the only bundle failing
Hello,
Everything is working in my localhost.
The bundle is enabled for "all" in bundles.php
But in my apache server it's only showing when turning into dev mode.
Prod render_esi is not including anything in my template... But when I dd('something'); in the asset controller, I have a 500 error in prod, so the request goes in it, I think it's trying to work but it fails somewhere. No luck trying to enable the profiler in prod...
Edit : Just tried to enable the prod mode on my localhost, the bundle loads just fine... It's not working on my apache server in prod mode only.
Edit : I changed the firewall rule and replaced the render_esi by a html link with href. I got a 500 error. Not sure but it may be the apache url rewriting that is not working as it should... OR because I need to set form_action to a $routeName
Edit Apache may not like the dot in the route name ? Any help please
Any idea please ? :/