Closed nebulade closed 3 months ago
Hi all,
We have seen this a couple times now and it has been difficult to reproduce.
One Option we know of is that the PATCH method might be disabled on some server environments. Please check if your server allows GET, POST, DELETE & PATCH methods.
Please let me know if you find any other errors or issues that could help debug this.
Unfortunately PATCH
does work as far as I can tell. The apache config is quite basic in our case https://git.cloudron.io/cloudron/leantime-app/-/blob/main/apache/leantime.conf?ref_type=heads
I also get patch errors on apache (mod php8.2)
XHRPATCH
https://domain.name/hx/projects/checklist/update-subtask/
[HTTP/2 404 65ms]
Hey guys think I figured this one out, I was able to reporoduce this by uninstalling php-fpm module, then apache config doesnt know how to nadle the PATCH request to the system appropriatly. The PHP-FPM Requirement is definatly a need here. For those experienceing the same thing please confirm you have php-fpm installed and the apache host files are proxing across it.
I was able to test with php7.4 php8.0 php8.1 and php8.2 and confirmed this was the case :)
Happy coding all :)
Ok, I can confirm that this is a monolith apache. I'll switch to fpm. Thanks!
Ok, I can confirm that this is a monolith apache. I'll switch to fpm. Thanks!
No problem :)
What set up are you using
Describe the bug When attempting to start a timer for timetracking, the browser issues a
PATCH /hx/timesheets/stopwatch/start-timer/
which results in a 404 response.Coming from https://github.com/Leantime/leantime/blob/master/app/Domain/Tickets/Templates/partials/timerLink.blade.php#L14 and assuming it should hit the REST handler at https://github.com/Leantime/leantime/blob/master/app/Domain/Timesheets/Hxcontrollers/Stopwatch.php#L78
For a start I don't quite know the frameworks involved here, so my assumption might be wrong.
The app is running on apache and otherwise routes are fine.
I have set
LEAN_DEBUG = 1
but there is nothing in the error logs or otherwise to be seen in the app, maybe I have missed some other env variable to add more debug output? Is there any good place to start debugging this further?Leantime Version v2.4.8
Server Apache
PHP / MySQL Version PHP 8.1.2 MySQL 8