Page 1 of 2

Strange behavior

Posted: Wed Dec 09, 2020 10:44 am
by SavaStefan
Hello,
I'm new to bludit and I love it. However, I encountered a small problem.

I installed it on windows 10 with xampp php 7 and everything worked fine. I finished the website and content and uploaded it to a linux web host. Everything works there with the exception of adding and editing of content.

If I add new content without photos it gets added. If I insert photos in the content it doesn't add and all the form gets reset. If I try to edit an existing post the changes are not saved. I chmod 755 everything and still the problem persists.

Any ideas ?

Thanks

Re: Strange behavior

Posted: Wed Dec 09, 2020 10:49 am
by Edi
Which version of PHP is installed on the Linux server?

Is there an error entry in the log file?

Re: Strange behavior

Posted: Wed Dec 09, 2020 10:50 am
by SavaStefan
Hello,
It,s 7.4

Re: Strange behavior

Posted: Wed Dec 09, 2020 10:52 am
by Edi
And what says the error log?

Re: Strange behavior

Posted: Wed Dec 09, 2020 10:52 am
by SavaStefan
And here's the log after trying to edit a post

[09-Dec-2020 10:50:04 Europe/Bucharest] /home/artliqrl/public_html/artlensoptic/bl-content/workspaces/simple-stats/*.log
[09-Dec-2020 11:51:25 Europe/Bucharest] /home/artliqrl/public_html/artlensoptic/bl-content/workspaces/simple-stats/*.log
[09-Dec-2020 11:51:29 Europe/Bucharest] /home/artliqrl/public_html/artlensoptic/bl-content/uploads/pages/b1e800e506cf9a41af48f044c1d043e9/thumbnails/*.*
[09-Dec-2020 11:51:31 Europe/Bucharest] /home/artliqrl/public_html/artlensoptic/bl-content/uploads/pages/b1e800e506cf9a41af48f044c1d043e9/thumbnails/*.*

Re: Strange behavior

Posted: Wed Dec 09, 2020 3:35 pm
by diego
Hi,
the logs are not errors, it's just a few logs from the application.

Looks like is more a problem of some javascript, which Bludit version have you installed ?

Can you check with your browser, right click in the page, then go to the inspector, and check the console errors ?

Re: Strange behavior

Posted: Wed Dec 09, 2020 4:14 pm
by SavaStefan
diego wrote: Wed Dec 09, 2020 3:35 pm Hi,
the logs are not errors, it's just a few logs from the application.

Looks like is more a problem of some javascript, which Bludit version have you installed ?

Can you check with your browser, right click in the page, then go to the inspector, and check the console errors ?
The errors look like this:

/admin/edit-content/contact 403
/admin/ajax/save-as-draft 403

But if I enter the urls manually I can see that they load. For example

{"status":1,"message":"Save as draft fail. UUID not defined."} when opening save-as-draft

Any ideas ?

Re: Strange behavior

Posted: Wed Dec 09, 2020 10:07 pm
by Edi
Error 403 could be a firewall problem of the server.

Re: Strange behavior

Posted: Thu Dec 10, 2020 10:20 am
by SavaStefan
yep, it was because of mod_security. I asked the host to disable it and now it works.

Any idea on how to make it work with mod_security enabled ?

Re: Strange behavior

Posted: Thu Dec 10, 2020 10:43 am
by Edi
Perhaps you can define an exception.