Page 1 of 1

Blank Page when editing a Page

Posted: Sun Jan 17, 2021 6:32 pm
by Achim
Hi.
New to Bludit, the installation went fine. Everything works and is in place except
editing a page.
I can successfully create a page, I can delete a page, but when I try to edit, I see a blank page where the editor and content should be.
That happens with default Themes as well as with modified Themes.
No hints in the logs.
Whats realy strange is that I can create and delete.

[edit] Server running FreeBSD 12.1, Caddy2.21 with php_fastcgi, PHP7.4.14, Bludit 3.13.1

The (maybe) only "special" on this setup is the use of Caddy as a Webserver.
Any ideas?

Thank you
Achim

Re: Blank Page when editing a Page

Posted: Sun Jan 17, 2021 7:09 pm
by Edi
Does the browser console show any errors?

Is there a firewall installed on the server?

Re: Blank Page when editing a Page

Posted: Sun Jan 17, 2021 7:16 pm
by Achim
Edi wrote: Sun Jan 17, 2021 7:09 pm Does the browser console show any errors?

Is there a firewall installed on the server?
Thanks for the answer.
No Firewall.
I just tried php -S ip adress:8000
Same problem. Pages are visible, can be created and deleted, but not edited.

Re: Blank Page when editing a Page

Posted: Sun Jan 17, 2021 7:20 pm
by Edi
And: Does the browser console show any errors?

Re: Blank Page when editing a Page

Posted: Sun Jan 17, 2021 7:30 pm
by Achim
Here we go.
Your Hint regarding the Browser Console was the right path.
Console Errors pointed me to the missing php74-filter extension.
Maybe the need of "session" (which i already installed) and "filter" should be mentioned in the manual.

Anyway, thanks for your help.
And maybe, this helps other newbies as well.

Thanks again
Achim

Re: Blank Page when editing a Page

Posted: Sun Jan 17, 2021 10:10 pm
by Edi
Great!

Is this specific to Caddy?

Re: Blank Page when editing a Page

Posted: Mon Jan 18, 2021 9:56 am
by diego
Hi,
I was checking and the filter module is enabled by default.

https://www.php.net/manual/en/filter.installation.php

Maybe in your installation is disabled ?

Re: Blank Page when editing a Page

Posted: Tue Jan 26, 2021 12:53 am
by Achim
Edi wrote: Sun Jan 17, 2021 10:10 pm Great!

Is this specific to Caddy?
I don't think so.
Caddy runs php without problems. Its not more than compiling php with fastcgi, puting
php_fastcgi 127.0.0.1:9000
into the Caddy config and maybe edit user:group in php-fpm.d (on FreeBSD its /usr/local/etc/php-fpm.d/www.conf
Restart and check <?php phpinfo(); ?>
Everything should work.

Re: Blank Page when editing a Page

Posted: Tue Jan 26, 2021 1:08 am
by Achim
diego wrote: Mon Jan 18, 2021 9:56 am Hi,
I was checking and the filter module is enabled by default.

https://www.php.net/manual/en/filter.installation.php

Maybe in your installation is disabled ?
Diego, it was not disabled, the module was simply not installed.
Maybe its a bit specific compared to some Linux Distris or Hosting Companies.
On an clean fresh FreeBSD, you install php7.4 with FPM/CGI as an selectable option from (in my case) ports.
Its just php74, without any Modules/Extensions. Clean as usual on FreeBSD.
Now, you install the Modules from ports. One by one.
If a Module is missing because its not mentioned in the bludit Manual, php wont work proper with bludit.
Thats why I suggest to mention the two Modules (session and filter) in the Bludit Manual.
Achim