mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 19:10:06 +03:00
Javascript error causing UI not to load #258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LouisVallat on GitHub (Dec 1, 2022).
Hello,
I've been using Planka for a few years now and I'd like to use it on a more regular basis,
Unfortunately, this morning my planka instance is borked. The UI is not loading and the only debug messages I have in the console are these two errors:
I used it yesterday on my phone without issue, added a project and a card and then nothing this morning... It's kind of disappointing and sad to see my instance unusable without any apparent reason, especially because I'm trying to use it professionally.
I'm planning on resetting my instance, but I'll keep the old broken one around so I can help you debug this issue if needed.
Have a nice day 😄
@meltyshev commented on GitHub (Dec 1, 2022):
Hi, thanks for reporting this! Already trying to figure out what's wrong...
@meltyshev commented on GitHub (Dec 1, 2022):
I'm trying to reproduce it somehow, but so far without success. Theoretically it is clear where the error is, but it is not clear how it can be.
What version of Planka are you using? Is it possible for you to provide server responses (without confidential data, of course)?
@azuledu commented on GitHub (Dec 14, 2022):
Same problem here, both in Firefox or Chrome.
I am using the docker-compose.yml master version of Planka.
Planka.log file is void and Docker logs says nothing interesting, I think:
@meltyshev commented on GitHub (Dec 14, 2022):
The problem is on the frontend, most likely a bug somewhere that some data is not loaded correctly. Maybe it occurred after some action, maybe something was deleted?
@azuledu commented on GitHub (Dec 16, 2022):
I think the database gets corrupted in some way. Corrupted with a normal use from the UI.
This is my database, in case you find something interesting.
I used Planka only during half an hour.
User: demo@demo.demo
Pass: demo demo
Thanks.
@meltyshev commented on GitHub (Dec 16, 2022):
@azuledu Thank you so much for providing the dump, it helped a lot to find the error 🙏
My bad, I missed one condition, and during the initial loading, an empty board used to be created in the ORM on the front-end. But for some reason (probably when an ID ends in 0), this board was created with the ID of the last loaded board, so it just overwrote it with empty values. Addressing an empty field is what caused the error.
@azuledu commented on GitHub (Dec 16, 2022):
Cool!
Pleased to help.
Thanks for your work.
@azuledu commented on GitHub (Dec 16, 2022):
uhmmm... I suppose I need to fix my database manually to make my Planka installation work again.
Any advice? Any idea?
@meltyshev commented on GitHub (Dec 16, 2022):
Nope, the error was only on the front-end, so everything should just work.
The image with the new version will be ready in about 2 hours.
@azuledu commented on GitHub (Dec 16, 2022):
ah!, ok. I thought that the last image already contained the fix. I wait, no problem.
@LouisVallat commented on GitHub (Dec 16, 2022):
I still have the borked instance, I'll try to update a copy and see if it starts back with my data with your new fix, please let us know when the fixed version is out 😄
@meltyshev commented on GitHub (Dec 16, 2022):
The image with version 1.8.9 is ready 🙂
@LouisVallat commented on GitHub (Dec 16, 2022):
Yup! Just applied the update, and it just worked!
Thank you for the fix, I'm glad it was as easy as it was 😄
Thank you again for that prompt reaction, I love this project please continue 💯
@azuledu commented on GitHub (Dec 17, 2022):
It works like a charm!
Thanks