fr0tt / benotes

An open source self hosted notes and bookmarks taking web app.
https://benotes.org
MIT License
718 stars 48 forks source link

Not able to create new post/collection #34

Closed AuthorShin closed 2 years ago

AuthorShin commented 2 years ago

Hello When I try to create a new collection nothing happens and when trying to crease new post I got the following error on the down right of the screen.

Error

Post could not be created.

Also trying to edit the default posts I got this error:

Error

Post could not be updated.

fr0tt commented 2 years ago

Not sure what is causing that. There should be a file called storage/logs/lumen-2022-06-11.log. Can you tell me its content ?

AuthorShin commented 2 years ago

Here you go man:

lumen-2022-06-09.log lumen-2022-06-11.log

fr0tt commented 2 years ago

Thanks, so the issue seems that your database is not writable which means it's a permission issue.

Try to fix it where you placed your volumes with sudo chown 1000:1000 database.sqlite && sudo chmod 774 database.sqlite.

AuthorShin commented 2 years ago

@fr0tt Thanks man, it worked :) Quick bug report:

  1. When creating a new collection, if you select a new icon and save it, it will still be the default one and you have to edit it and re-select the icon and save it in order to show up.
  2. After the creation of a new collection, it's not open. I mean it's not the focus and you have to switch between collections to finally have it selected.
  3. When editing a post, each time you have to select the collection from the top drop down menu in order to save the edited post properly and have it shown the new edit on the collection page.
  4. And when on the edit post page you click anywhere blank and under the first line you properly expect to see the Text edit cursor pointer like every editor anywhere else, but here you have to click on the first line.
fr0tt commented 2 years ago

Thanks for all your hard work !

I don't really understand your 3rd issue. I mean I do, but I can't reproduce it. Maybe I miss something ? When I edit/create a post in a collection it will automatically be saved in that collection. I don't change the collection in the drop-down menu underneath the title because it already shows the correct one.

AuthorShin commented 2 years ago

NP man, I will try to record a video for this one when got spare time.

fr0tt commented 2 years ago

The newest version should have fixed your problems. Let me know if you can confirm that and please explain your 3rd issue to me again - if it's still an issue.