Warm-up: FlatPress 1.5 - Community Test

For devs and testers: Tests of current development versions, technical details of the code.
User avatar
fraenkiman
FlatPress Coder
Posts: 478
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Fri Jan 02, 2026 5:29 pm

Hello macadoum,

PrettyURLs recognizes that an .htaccess file is present, but cannot verify its contents.
Add a few entries to your .htaccess file (https://i.postimg.cc/fkRHtCK3/Screensho ... lugins.png) so that PrettyURLs work as expected:

Code: Select all

php_value display_errors On
php_value mbstring.http_input auto
php_value date.timezone Europe/Paris

AddType application/x-httpd-php .php
Options -Indexes

<IfModule mod_headers.c>
	Header unset X-Powered-By
</IfModule>

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /

	RewriteRule ^\.htaccess$ - [F]

	RewriteRule ^sitemap\.xml$ /sitemap.php [L]
	RewriteRule ^sitemap$ /sitemap.php [L]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d

	RewriteRule . /index.php [L]
</IfModule>
Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
macadoum
Posts: 51
Joined: Sat Jan 20, 2024 10:32 pm

Re: Warm-up: FlatPress 1.5 - Community Test

Post by macadoum » Fri Jan 02, 2026 6:12 pm

It's perfectly working now. Thank you Fraenkiman :D
My test installation of FlatPress : https://macadoum.free.nf/ :D

Lubomír Ludvík
Posts: 80
Joined: Wed Feb 20, 2019 7:44 pm
Location: Rouchovany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by Lubomír Ludvík » Fri Jan 02, 2026 7:10 pm

When logout from admin panel get error:
Warning: setcookie () expect parameter 3 to be integer, array given in ../fp_includes/core/core.cookie.php 188

Testing on PHP 8.2.29 https://solarcz.eu/

Lubomír Ludvík
Posts: 80
Joined: Wed Feb 20, 2019 7:44 pm
Location: Rouchovany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by Lubomír Ludvík » Fri Jan 02, 2026 8:13 pm

In FlatPress 1.5, links in src do not work in BlockParser_Widgets
for example:

Code: Select all

[html]<iframe width=”800” height=”500” src=”https://solarcz.eu/rss.html” frameborder=”0”></iframe>[/html]
[html]<a href=”http://apod.nasa.gov/apod/astropix.html” title=”n.a.”><img src=”https://apod.nasa.gov/apod/calendar/today.jpg” alt=”n.a.” title=”n.a.”></a>[/html]
Testing on PHP 8.2.29 https://solarcz.eu/

User avatar
fraenkiman
FlatPress Coder
Posts: 478
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Fri Jan 02, 2026 10:41 pm

Hello Lubomír,

The FlatPress Protect plugin prevents the integration of external sources in order to prevent framing/clickjacking.

If you still want to integrate content from external sources via iFrame, you must change line 50 in the file fp-plugins/fpprotect/plugin.fpprotect.php as follows:

Code: Select all

		'frame-ancestors  \'self\' https:; ' . //

Line 75 for HTTP connections (not recommended!!!):

Code: Select all

	header('Content-Security-Policy: frame-ancestors  \'self\' http:; ' . //
Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Lubomír Ludvík
Posts: 80
Joined: Wed Feb 20, 2019 7:44 pm
Location: Rouchovany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by Lubomír Ludvík » Sat Jan 03, 2026 12:00 am

Thanks for the answer, and could you add the option to the FlatPress Protect settings:
Allow FlatPress to use content from external sources via iFrame

User avatar
fraenkiman
FlatPress Coder
Posts: 478
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Sat Jan 03, 2026 12:55 am

Lubomír Ludvík wrote: Fri Jan 02, 2026 7:10 pm When logout from admin panel get error:
Warning: setcookie () expect parameter 3 to be integer, array given in ../fp_includes/core/core.cookie.php 188

Testing on PHP 8.2.29 https://solarcz.eu/
This is strange because on PHP 8.2.29, this specific warning ("expects parameter 3 to be integer, array given") should not occur at all, because setcookie() has supported an options array as the third parameter since PHP 7.3.
https://eusonlito.github.io/php-changes ... anges.html

A slight suspicion: The web request PHP version is not the one you would expect (e.g., CLI shows 8.2.29, but FPM/vHost is still running on 7.2).

Taken into account in #774

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
fraenkiman
FlatPress Coder
Posts: 478
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by fraenkiman » Sat Jan 03, 2026 3:50 pm

Lubomír Ludvík wrote: Sat Jan 03, 2026 12:00 am Thanks for the answer, and could you add the option to the FlatPress Protect settings:
Allow FlatPress to use content from external sources via iFrame
That qualifies you to throw a coin into the coffee fund, as I have to adapt 18 files and my Selenium IDE test (Click monkey) for this ;-)

Done with #775.

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Lubomír Ludvík
Posts: 80
Joined: Wed Feb 20, 2019 7:44 pm
Location: Rouchovany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by Lubomír Ludvík » Sat Jan 03, 2026 4:09 pm

FlatPress Protect:
Unfortunately, the plugin also does not have access to its subdirectory: /fp-plugins/rsswidget/rss/rss.html
I can't load the file, still "404 Not Found".

It won't help .htaccess
<Files "rss.html">
Allow from all
Satisfy Any
</Files>

Lubomír Ludvík
Posts: 80
Joined: Wed Feb 20, 2019 7:44 pm
Location: Rouchovany
Contact:

Re: Warm-up: FlatPress 1.5 - Community Test

Post by Lubomír Ludvík » Sat Jan 03, 2026 5:31 pm

I have the latest versions of Google Chrome and Microsoft Edge.
In Chrome, you can't drag and drop widgets in the widget administration.
In Edge, widgets don't appear.

https://solarcz.eu/ on on PHP 8.2.29
chrome aktualni.jpg
chrome aktualni.jpg (30.73 KiB) Viewed 354 times
chrome.jpg
chrome.jpg (110.97 KiB) Viewed 354 times
edge.jpg
edge.jpg (51.39 KiB) Viewed 354 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest