Flatpress Github release - Test with PHP 8.2 Alpha 1

This is the right place to report general bugs, make suggestions or ask for help.
laborix
Posts: 118
Joined: Sat Feb 16, 2019 3:51 pm

Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by laborix » Sat Jun 11, 2022 5:51 pm

Some PHP errors after running the current Github Flatpress (June 2022) on a Web server with PHP 8.2 Alpha 1 installed:

PHP Deprecated: Creation of dynamic property plugin_indexer::$enabledlist is deprecated in ...
PHP Deprecated: Creation of dynamic property Plugin_PrettyURLs::$mode is deprecated in ...
PHP Deprecated: Creation of dynamic property BPlusTree_Node::$storage is deprecated in ...
PHP Deprecated: Creation of dynamic property SBPlusWalker::$startnode is deprecated in ...
PHP Deprecated: Creation of dynamic property FPDB_Query::$comments is deprecated in ...
PHP Deprecated: Creation of dynamic property StringParser_BBCode::$_output is deprecated in ...
PHP Deprecated: Creation of dynamic property Smarty_Compiler::$_dvar_math_regexp is deprecated in ...

More than 573 lines are listed in the phperror.log file :(

It seems that the current Github Flatpress version produce a known PHP RFC: Deprecate dynamic properties situation.
see Details on: https://wiki.php.net/rfc/deprecate_dynamic_properties

regards

User avatar
Arvid
FlatPress Coder
Posts: 558
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by Arvid » Sat Jun 18, 2022 7:47 pm

MΓ«h - we're still working on the 8.1 changes, and already 8.2 brings new fun :cry:

Okay, then let's do it (but after the 8.1 stuff is done!) - I opened issue 115.

Thanks for reporting - you can be relied on as always :)

laborix
Posts: 118
Joined: Sat Feb 16, 2019 3:51 pm

Re: Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by laborix » Sun Jun 19, 2022 9:27 am

Arvid wrote: ↑Sat Jun 18, 2022 7:47 pm... Thanks for reporting - you can be relied on as always :) ...
Always a pleasure :)

bttr
Posts: 47
Joined: Tue Mar 22, 2022 9:20 pm
Location: Berlin, Germany
Contact:

Re: Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by bttr » Sun Jun 19, 2022 9:38 am

Arvid wrote: ↑Sat Jun 18, 2022 7:47 pm MΓ«h - we're still working on the 8.1 changes, and already 8.2 brings new fun :cry:
Yes. This fast "evolution" of programming languages breaking old code is not funny.

laborix
Posts: 118
Joined: Sat Feb 16, 2019 3:51 pm

Re: Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by laborix » Sun Jun 19, 2022 10:08 am

98% of this PHP Warnings can be solved by adding the appropriate Variable definition in the right places within the classes.

See example: /fp-inludes/core/core.fpdb.class.php
PHP Deprecated: Creation of dynamic property FPDB_Query::$comments is deprecated in ...

Code: Select all

...
class FPDB_Query { 
...
public $comments = NULL;
...
Nothing more.




laborix
Posts: 118
Joined: Sat Feb 16, 2019 3:51 pm

Re: Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by laborix » Sun Jan 21, 2024 4:42 pm

There's new work to do :)

The current test environment with "error_reporting = E_ALL":
Nginx 1.24, PHP 8.2.15 and FlatPress Github 1142

The FlatPress Github 1142 version with PrettyURLs produces the following PHP errors in the quick test under PHP 8.2.15:

Code: Select all

PHP Deprecated:  Creation of dynamic property Plugin_PrettyURLs::$baseurl is deprecated in .../fpgit1142/fp-plugins/prettyurls/plugin.prettyurls.php on line 253
PHP Deprecated:  Creation of dynamic property Plugin_PrettyURLs::$mode is deprecated in .../fpgit1142/fp-plugins/prettyurls/plugin.prettyurls.php on line 254
PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../fpgit1142/fp-plugins/prettyurls/plugin.prettyurls.php on line 302
PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../fpgit1142/fp-plugins/prettyurls/plugin.prettyurls.php on line 306
PHP Deprecated:  strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../fpgit1142/fp-plugins/prettyurls/plugin.prettyurls.php on line 309
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1142/fp-plugins/prettyurls/plugin.prettyurls.php on line 309
Otherwise, the quick test of the FlatPress Github 1142 version under PHP 8.2.15 with a quick test of the comment options (admin/external user) does not look bad :)

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

Re: Flatpress Github release - Test with PHP 8.2 Alpha 1

Post by fraenkiman » Sun Jan 21, 2024 7:18 pm

Hello Laborix,

thank you for testing and reporting. I have created an issue for this.

With 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

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests