Open clayme2019 opened 4 years ago
Current PHP version 7.2
please
help me please
Have the same problem
Having the same problem.
Cause: there's a reference to a non-existent template:
[2020-02-02 00:30:18] request.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "macros/actions.html.twig" (looked into: /opt/kimai/templates, /opt/kimai/vendor/symfony/twig-bridge/Resources/views/Form) in "@ReadOnlyAccess/index.html.twig" at line 5." at /opt/kimai/vendor/twig/twig/src/Loader/FilesystemLoader.php line 250 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"macros/actions.html.twig\" (looked into: /opt/kimai/templates, /opt/kimai/vendor/symfony/twig-bridge/Resources/views/Form) in \"@ReadOnlyAccess/index.html.twig\" at line 5. at /opt/kimai/vendor/twig/twig/src/Loader/FilesystemLoader.php:250)"} []
[2020-02-02 00:30:18] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} []
So a solution:
plugins/ReadOnlyAccessBundle/Resources/views/index.html.twig
{% import "macros/actions.html.twig" as actions %}
cd kimai/
bin/console cache:clear
bin/console cache:warmup
Then you get the page back.
I created a pull request: https://github.com/fungus75/ReadOnlyAccessBundle/pull/5
If somebody is in hurry can clone from my fork with this fix: https://github.com/rafaelgou/ReadOnlyAccessBundle
There's another one: if the readonly-user clicks on the "Show Recorded Times" page:
So, you have to delete the same line in the file Resources/views/showCustomerTimes.html.twig
I installed it correctly, but when I click the button
what could i have done wrong?