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

Changing calendar configuration can break week / day view #1834

Closed
MatthiasKnauff opened this issue Jul 20, 2020 · 11 comments · Fixed by #1895
Closed

Changing calendar configuration can break week / day view #1834

MatthiasKnauff opened this issue Jul 20, 2020 · 11 comments · Fixed by #1895
Labels
bug good first issue good issue for your first time contribution
Milestone

Comments

@MatthiasKnauff
Copy link

I installed the current version via FTP on a www.kontent.de web space, everything works fine immediately. Now after a few days I have the problem that neither the week or the day view opens in the calendar view. After a long time, the question "Wait or cancel" comes up in the browser.

BR Matthias

@kevinpapst
Copy link
Member

Check your browser console / network tab and look for errors.
Additionaly check Kimai / Doctor / Logs

@MatthiasKnauff
Copy link
Author

MatthiasKnauff commented Jul 20, 2020

The Doctor LOG

[2020-07-12 08:38:10] request.CRITICAL: Uncaught PHP Exception App\Repository\RepositoryException: "Timesheet entry already stopped" at /WWWROOT/274266/htdocs/src/Repository/TimesheetRepository.php line 157 {"exception":"[object] (App\\Repository\\RepositoryException(code: 0): Timesheet entry already stopped at /WWWROOT/274266/htdocs/src/Repository/TimesheetRepository.php:157)"} []
[2020-07-12 08:38:10] php.INFO: User Deprecated: The "Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent::getException()" method is deprecated since Symfony 4.4, use "getThrowable()" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent::getException()\" method is deprecated since Symfony 4.4, use \"getThrowable()\" instead. at /WWWROOT/274266/htdocs/vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php:57)"} []
[2020-07-12 08:38:10] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"secured_area","authenticator":"App\\Security\\TokenAuthenticator"} []
[2020-07-12 08:38:10] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"secured_area","authenticator":"App\\Security\\TokenAuthenticator"} []
[2020-07-12 08:38:10] security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"secured_area","authenticators":1} []
[2020-07-12 08:38:10] security.DEBUG: User was reloaded from a user provider. {"provider":"Symfony\\Component\\Security\\Core\\User\\ChainUserProvider","username":"m.knauff"} []
[2020-07-12 08:38:10] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\RememberMeToken"} []
[2020-07-12 08:38:10] request.INFO: Matched route "stop_timesheet". {"route":"stop_timesheet","route_parameters":{"_route":"stop_timesheet","_controller":"App\\API\\TimesheetController::stopAction","_format":"json","id":"88"},"request_uri":"https://kimai.gk3-architektur.de/public/api/timesheets/88/stop","method":"PATCH"} []

The Browser Konsole:

0.f7fae2b9.js:1 Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.
D @ 0.f7fae2b9.js:1
calendar.d2540934.js:1 Uncaught RangeError: Invalid string length
    at t.renderSlatRowHtml (calendar.d2540934.js:1)
    at t.renderSlats (calendar.d2540934.js:1)
    at t.renderDates (calendar.d2540934.js:1)
    at t.executeDateRender (calendar.d2540934.js:1)
    at calendar.d2540934.js:1
    at t.iterChildren (calendar.d2540934.js:1)
    at t.callChildren (calendar.d2540934.js:1)
    at t.executeDateRender (calendar.d2540934.js:1)
    at t.executeDateRender (calendar.d2540934.js:1)
    at Object.func (calendar.d2540934.js:1)
t.renderSlatRowHtml @ calendar.d2540934.js:1
t.renderSlats @ calendar.d2540934.js:1
t.renderDates @ calendar.d2540934.js:1
t.executeDateRender @ calendar.d2540934.js:1
(anonym) @ calendar.d2540934.js:1
t.iterChildren @ calendar.d2540934.js:1
t.callChildren @ calendar.d2540934.js:1
t.executeDateRender @ calendar.d2540934.js:1
t.executeDateRender @ calendar.d2540934.js:1
(anonym) @ calendar.d2540934.js:1
t.runTask @ calendar.d2540934.js:1
e.runRemaining @ calendar.d2540934.js:1
e.tryStart @ calendar.d2540934.js:1
e.resume @ calendar.d2540934.js:1
t.stopBatchRender @ calendar.d2540934.js:1
e.renderView @ calendar.d2540934.js:1
e.changeView @ calendar.d2540934.js:1
g @ calendar.d2540934.js:1
(anonym) @ calendar.d2540934.js:1
dispatch @ 1.c24a9c6f.js:1
v.handle @ 1.c24a9c6f.js:1

@kevinpapst
Copy link
Member

Did you change the calendar configuration in System settings (like times and days)?

@MatthiasKnauff
Copy link
Author

Yes I did

@MatthiasKnauff
Copy link
Author

Now I've put the default back in and it works.

image

@kevinpapst
Copy link
Member

Great! Did you take a screenshot of the broken config, so I can add some validation to prevent that in the future?

@MatthiasKnauff
Copy link
Author

image

Thank you!

@kevinpapst
Copy link
Member

Thanks for sharing 👍

Can you confirm that 06:00 instead of 6:00 will fix this problem?

@kevinpapst kevinpapst changed the title week or the day view opens in the calendar Changing calendar configuration can break week / day view Jul 20, 2020
@kevinpapst kevinpapst added bug good first issue good issue for your first time contribution and removed support labels Jul 20, 2020
@MatthiasKnauff
Copy link
Author

Du you mean 06:00 instead of 08:00? Yes.

"Can you confirm that 06:00 instead of 6:00 will fix this problem?"

@kevinpapst
Copy link
Member

I thought that the "Start des sichtbaren Zeiterbereichs" (configured as 6:00) might have been the problem.
But never mind, I will try that on my own system when working on a better validation.

@github-actions
Copy link

github-actions bot commented Oct 8, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug good first issue good issue for your first time contribution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants