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

unexpected TimesheetService #13

Open
mediaformat opened this issue Jan 3, 2021 · 6 comments
Open

unexpected TimesheetService #13

mediaformat opened this issue Jan 3, 2021 · 6 comments

Comments

@mediaformat
Copy link

Tried to install, getting this error:
php.CRITICAL: Uncaught Error: syntax error, unexpected 'TimesheetService' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) {"exception":"[object] (ParseError(code: 0): syntax error, unexpected 'TimesheetService' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at /var/www/kimai2/var/plugins/ChromePluginBundle/Controller/ChromeController.php:44)"} []

it looks like my build is using
symfony/monolog-bundle v3.5.0

@tobybatch
Copy link
Owner

Hi what version of kimai are you running against? I'm currently re-writing the while extension as a raect app and kimai has had a few releases since then.

Do you fancy testing the new app? it's nearly ready for alpha.

@mediaformat
Copy link
Author

I'm running v1.11 stable

When trying kimai:reload I get the following:

php.CRITICAL: Uncaught Error: syntax error, unexpected 'EntityManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) {"exception":"[object] (ParseError(code: 0): syntax error, unexpected 'EntityManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at /var/www/kimai2/var/plugins/ChromePluginBundle/Controller/BaseController.php:26)"} []
[2021-01-04 12:53:10] php.INFO: User Deprecated: The "excluded_404s" option is deprecated in MonologBundle since version 3.4.0, you should rely on the "excluded_http_codes" option instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The "excluded_404s" option is deprecated in MonologBundle since version 3.4.0, you should rely on the "excluded_http_codes" option instead. at /var/www/kimai2/vendor/symfony/monolog-bundle/DependencyInjection/MonologExtension.php:388)"} []

@tobybatch
Copy link
Owner

Which branch are you on? Can you let me know which commit you are on (git rev-parse HEAD)?

On master that file does not exist.

@mediaformat
Copy link
Author

The 1st error was from Master, the 2nd was from 12_refactor_as_react_app
from this repo.

@tobybatch
Copy link
Owner

The second on will never work with the existing plugin, it's a total refactor. 😄

which version of PHP are you using? It needs to be php7.4 or above

@mediaformat
Copy link
Author

Unfortunately it might take a while before I can install php7.4
So the issue can probably be closed for now

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

2 participants