PHP 8.3 and 8.4

General information and announcements regarding the FlatPress project
User avatar
fraenkiman
Posts: 294
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: PHP 8.3 and 8.4

Post by fraenkiman » Mon Jan 20, 2025 12:34 am

Here is another revised file. The previous file had an incorrect condition.
core.language_2.zip
(4.41 KiB) Downloaded 23 times
If everything goes smoothly, you should only find this output in the PHP log:

Code: Select all

[20-Jan-2025 00:31:55 UTC] Debugging: langconf loaded: Array
(
    [id] => Deutsch (DE)
    [locale] => de-de
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => de_DE
    [localecountry_b] => de-DE
    [localeshort] => de
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[20-Jan-2025 00:31:55 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
: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
Torsten
Posts: 5
Joined: Fri Apr 09, 2021 6:53 pm

Re: PHP 8.3 and 8.4

Post by Torsten » Tue Jan 21, 2025 1:50 am

fraenkiman wrote: Fri Jan 17, 2025 11:06 am Hello Torsten,

I was hoping for a release on the 20th anniversary (around February 15, 2026). There is currently no release canidate. You are welcome to test the current master branch (Changelog) under PHP8.4.

With best regards
Frank
Hi Frank,

I installed FlatPress 1.4 “Notturno” Release Candidate 1 (fresh install), and it runs fine under PHP 8.4.
However, the plug-in DateChanger does not work; the posts always get the current date of publishing. But that's actually an issue for a separate thread.

Kind regards,
Torsten
On Error GoTo Bed

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

Re: PHP 8.3 and 8.4

Post by fraenkiman » Tue Jan 21, 2025 10:03 am

Hello Torsten,

I am pleased that FP 1.4 Notturno RC1 is working perfectly for you. I have sent you a PN about the DateChanger plugin.

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

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

Re: PHP 8.3 and 8.4

Post by laborix » Wed Jan 22, 2025 5:32 pm

fraenkiman wrote: Sun Jan 19, 2025 9:36 pm...Good that you have several test environments. May I take advantage of that?...
There are tons of tutorials on all three operating systems in a virtual box and how to set them up. So you can quickly install them yourself with “click&click”, you just have to want to. A developer should actually have it on their hard disk anyway.

Regardless of this, here is the PHP Error_log after importing core.language.php into FlatPress 1.4-dev Github 1833.

Code: Select all

[22-Jan-2025 17:22:54 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:22:54 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:22:54 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:22:54 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:23:30 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:23:30 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:23:36 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:23:36 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:23:52 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:23:52 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:24:02 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:24:02 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:24:05 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:24:05 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
[22-Jan-2025 17:24:09 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[22-Jan-2025 17:24:09 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
best regards

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

Re: PHP 8.3 and 8.4

Post by fraenkiman » Wed Jan 22, 2025 9:22 pm

Hi Laborix,

The PHP logs look good now! At least no key is missing anymore. This gives us a working basis. Good teamwork! Have you ever set other FlatPress languages?
laborix wrote: Wed Jan 22, 2025 5:32 pm A developer should actually have it on their hard disk anyway.
Everyone as he can :D. I myself am not a developer :-P. I work professionally as a hardware tester. This is just a nightly hobby, in my kitchen, with an 18 year old Thinkpad, after the little one and the wife have fallen asleep.

If you feel like testing an expansion stage of the function, take this file.
core.language_set_locale.zip
(5.16 KiB) Downloaded 19 times
If the web server allows it, it not only sets LC_TIME, but also sets other system environment variables, depending on which language is set in FlatPress. If the web server lacks these variables, Smarty uses English as the default for some of its functions. This is visible in FlatPress 1.3.1, demo on softaculous.com. Although you can change the FP language, the months in the advanced blog search are displayed in English.

Best regards and thanks for testing.
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

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

Re: PHP 8.3 and 8.4

Post by laborix » Fri Jan 24, 2025 1:26 pm

fraenkiman wrote: Wed Jan 22, 2025 9:22 pm... an 18 year old Thinkpad ...
I used an old T490 "refurbed" for testing :D
fraenkiman wrote: Wed Jan 22, 2025 9:22 pm... If you feel like testing an expansion stage of the function ...
I will wait with testing until the core.language.php is added to the FlatPress Github version or a working alternative solution is available.

I'm not quite sure if the FlatPress 1.4-dev (Github 1844) really works online without errors. Many providers use the PHP setting “Display_error = off”, they show up in the log files, but not visually on the screen. Many end customers have no possibility to look into the PHP error_log.

best regards

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

Re: PHP 8.3 and 8.4

Post by fraenkiman » Fri Jan 24, 2025 8:22 pm

Good evening Laborix,
laborix wrote: Fri Jan 24, 2025 1:26 pm I will wait with testing until the core.language.php is added to the FlatPress Github version or a working alternative solution is available.
I have already added the core.language_set_locale.zip to the FlatPress repo 1844 on GitHub. Previously tested under PHP 7.2 without cache mechanisms and PHP 8.4 with cache mechanisms. In the set_locale I have also taken into account that the hoster may not allow the setting of system environment variables. In this case, English is the Smarty standard anyway. The better hosters, which have international customers, allow the variables to be set; at least LC_TIME, which is common practice.

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

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

Re: PHP 8.3 and 8.4

Post by laborix » Sat Jan 25, 2025 8:11 am

Good morning Frank,

I take a look at the Github 1844 this morning and compared it with the previous core.language.php version. Very interesting solution ;)

Regardless of this, while a penetration test of FlatPress 1.4-dev Github 1844, the PHP error log is filled, filled and filled again, filled ... :shock: with the following lines:

Code: Select all

[25-Jan-2025 08:05:25 UTC] Debugging: langconf loaded: Array
(
    [id] => English (US)
    [locale] => en-us
    [charsets] => Array
        (
            [0] => utf-8
            [1] => iso-8859-15
        )

    [localecountry_a] => en_US
    [localecountry_b] => en-US
    [localeshort] => en
    [localecharset_a] => .UTF-8
    [localecharset_b] => .utf8
    [localecharset_c] => .ISO-8859-15
    [localecharset_d] => .iso885915
)

[25-Jan-2025 08:05:25 UTC] Debugging: Charset comparison. Defined: Array
(
    [0] => utf-8
    [1] => iso-8859-15
)
. Current: utf-8
You should take the debug info out again and only use the trigger_error() output, after a test of 50% we are at more than 1,000 lines :shock:

Have a nice Weekend

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

Re: PHP 8.3 and 8.4

Post by laborix » Sat Jan 25, 2025 9:22 am

Good morning again,

please forget the note with the debug info (see my posting this morning Sa Jan 25, 2025 9:11 am), I had an update and then a faulty configuration of the penetration software :roll:
I'll try to fix it this weekend and then send some more info on FlatPress 1.4-dev Github 1844,

Sorry for the wrong posting

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

Re: PHP 8.3 and 8.4

Post by laborix » Sun Jan 26, 2025 8:09 am

So, after a few minor difficulties :roll: , the whole system is up and running again.
Here are the results after several hours of penetration testing of FlatPress 1.4-dev Github 1844

Code: Select all

PHP Warning:  Undefined array key "y" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 88
PHP Warning:  Undefined array key "m" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 88
PHP Warning:  Undefined array key "d" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 88
PHP Warning:  Undefined array key "y" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 88
PHP Warning:  Undefined array key "m" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 88
PHP Warning:  Undefined array key "d" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 88

PHP Warning:  Undefined array key "m" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 215
PHP Warning:  Undefined array key "d" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 215
PHP Warning:  Undefined array key "m" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 215
PHP Warning:  Undefined array key "d" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 215
PHP Warning:  Undefined array key "d" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 215
PHP Warning:  Undefined array key "d" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 216
PHP Warning:  Undefined array key "" in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 216
PHP Warning:  Trying to access array offset on null in .../fpgit1844/fp-plugins/prettyurls/plugin.prettyurls.php on line 216

PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/fp-includes/core/core.date.php on line 94
PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/fp-includes/core/core.date.php on line 94

PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/login.php on line 8
PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/login.php on line 8

PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/contact.php on line 25
PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/contact.php on line 25
PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit1844/contact.php on line 25

PHP Warning:  Undefined array key "404error" in .../fpgit1844/comments.php on line 66
PHP Warning:  Trying to access array offset on null in .../fpgit1844/comments.php on line 66

PHP Warning:  Undefined array key "aaspam" in .../fpgit1844/fp-plugins/accessibleantispam/plugin.accessibleantispam.php on line 39
PHP Warning:  Undefined array key "aaspam" in .../fpgit1844/fp-plugins/accessibleantispam/plugin.accessibleantispam.php on line 39
PHP Warning:  Undefined array key "aaspam" in .../fpgit1844/fp-plugins/accessibleantispam/plugin.accessibleantispam.php on line 39
The listed errors appear in the PHP error_log, i.e. on the server side. You can see the attack techniques and vulnerabilities in the penetration software, but no visual errors. Anyway, the FlatPress Git 1844 performs better than the current WP 6.x version.

best regards

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests