Strange behavior

SavaStefan
Jr. Bludit
Posts: 8
Joined: Wed Dec 09, 2020 10:40 am

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
User avatar
Edi
Site Admin
Posts: 2229
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Which version of PHP is installed on the Linux server?

Is there an error entry in the log file?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
SavaStefan
Jr. Bludit
Posts: 8
Joined: Wed Dec 09, 2020 10:40 am

Hello,
It,s 7.4
User avatar
Edi
Site Admin
Posts: 2229
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

And what says the error log?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
SavaStefan
Jr. Bludit
Posts: 8
Joined: Wed Dec 09, 2020 10:40 am

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/*.*
User avatar
diego
Site Admin
Posts: 751
Joined: Sat May 16, 2015 2:53 pm
Contact:

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 ?
SavaStefan
Jr. Bludit
Posts: 8
Joined: Wed Dec 09, 2020 10:40 am

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 ?
User avatar
Edi
Site Admin
Posts: 2229
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Error 403 could be a firewall problem of the server.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
SavaStefan
Jr. Bludit
Posts: 8
Joined: Wed Dec 09, 2020 10:40 am

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 ?
User avatar
Edi
Site Admin
Posts: 2229
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Perhaps you can define an exception.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply