askvortsov In console the error says "Failed to load resource: the server responded with a status of 403 ()" /api/drafts/5:1
FriendsOfFlarum Drafts
sakibarifin which version of drafts are you using? What permissions does the user have? Can you try clearing your browser cache? Does this happen for multiple users?
- Edited
askvortsov I updated to the latest version. The problem appears to be with the autosave. The account is the admin. {"errors":[{"status":"405","code":"method_not_allowed"}]}
- Edited
I got the response error and anyone same?
You're gonna need to provide a bit more context for us to be able to fix this: when does this error pop up? What kind of users does it affect? What other background info could be relevant here?
askvortsov
Thank you for replying!
I answer to your question.
when does this error pop up?
when anyone opens post menu, I mean input
What kind of users does it affect?
Everyone
What other background info could be relevant here?
I don't know the background, there's no information except this
Error caught by sentry:
TypeError: Cannot use 'in' operator to search for 'discussion' in undefined
at equalRelationships(webpack://@fof/drafts/./src/forum/index.js:62:20)
at changed(webpack://@fof/drafts/./src/forum/index.js:86:22)
at ? (webpack://@fof/drafts/./src/forum/index.js:165:26)
0.1.11
- Fix issue where drafts options would be displayed in user settings, even if they did not have permissions to use drafts FriendsOfFlarum/drafts33
Updating
composer require fof/drafts
php flarum cache:clear
For some reason, the draft will save once, then future ones bring up a permission_denied
error.
Debug Output
fof/drafts: 0.1.11
Flarum 0.1.0-beta.13
PHP: 7.3.19
- Edited
Working great on my forum. However small enhancement idea: Only save the draft when something has changed in the recent. If the message hasn't been changed, there are still useless requests being fired to the server.
Additionally, when the message is being discarded, the draft could be deleted as well.
Kulga I have had the same issue.