givanz / VvvebJs

Drag and drop page builder library written in vanilla javascript without dependencies or build tools.
https://www.vvveb.com/vvvebjs/editor.html
Apache License 2.0
7.07k stars 1.62k forks source link

Correct permissions for VvvebJs folder? #234

Open abalter opened 2 years ago

abalter commented 2 years ago

I have VvvebJs running. I was getting a permission in the dialog box when I tried to create a new page. I followed the steps in https://github.com/givanz/VvvebJs/issues/49#issuecomment-594493319, and afterwards, I no longer get the error in the dialog box. A page loads with only the text

Error saving file /var/www/html/VvvebJs/ Possible causes are missing write permission or incorrect file path!

prabhat87 commented 2 years ago

hi @abalter

please share some project technical details eg: framework, server, etc...

riveryong commented 2 years ago

you should change the right of folders chmod 766

givanz commented 2 years ago

From the error message it looks like after the code change the filename is missing and only the folder /var/www/html/VvvebJs/ is present.

Please use the latest code without changes, probably this is caused by missing write permissions in the /demo or /my-pages folders, by default the new page dialog has my-pages folder as default for the folder where the new file will be saved, if my-pages folder is not present you need to create it.