Page 9 of 11

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Fri Jan 02, 2026 5:29 pm
by fraenkiman
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

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Fri Jan 02, 2026 6:12 pm
by macadoum
It's perfectly working now. Thank you Fraenkiman :D

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Fri Jan 02, 2026 7:10 pm
by Lubomír Ludvík
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/

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Fri Jan 02, 2026 8:13 pm
by Lubomír Ludvík
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/

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Fri Jan 02, 2026 10:41 pm
by fraenkiman
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

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sat Jan 03, 2026 12:00 am
by Lubomír Ludvík
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

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sat Jan 03, 2026 12:55 am
by fraenkiman
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

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sat Jan 03, 2026 3:50 pm
by fraenkiman
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

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sat Jan 03, 2026 4:09 pm
by Lubomír Ludvík
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>

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sat Jan 03, 2026 5:31 pm
by Lubomír Ludvík
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 1176 times
chrome.jpg
chrome.jpg (110.97 KiB) Viewed 1176 times
edge.jpg
edge.jpg (51.39 KiB) Viewed 1176 times