Github FlatPress 744 - First Test on PHP 8.1 - some Errors

For devs and testers: Tests of current development versions, technical details of the code.
Post Reply
laborix
Posts: 118
Joined: Sat Feb 16, 2019 3:51 pm

Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by laborix » Sun Oct 09, 2022 7:02 am

First quick & dirty test on Apache 2.4 and PHP 8.1.
Installation runs through and you can log in. The transfer of more than 400 blog entries from FlatPress 1.0.3 also ran without problems.

However, there are some errors.
Search - PHP Error:

Code: Select all

Deprecated: Function strftime() is deprecated in .../fpgit744/fp-includes/smarty-4.2.1/libs/plugins/function.html_select_date.php on line 319
And the Apache log shows the following errors:

Code: Select all

PHP Notice:  Only variables should be assigned by reference in .../fpgit744/fp-includes/core/core.draft.php on line 180
PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in .../fpgit744/fp-includes/core/core.language.php on line 10
Greetings

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

Re: Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by Arvid » Sun Oct 09, 2022 1:11 pm

Fixed with 1b9022c, thx :)

My PHP 8.1 apache totally hangs itself when opening the entry overview in the Admin Area - do you experience this as well? :shock:

George
Posts: 46
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

Re: Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by George » Sun Oct 09, 2022 1:17 pm

installation went fine, added lots of posts and statics
https://hooley.no-ip.co.uk/
PHP Version 8.1.8
Nginx


audio video plugin crashes everything
ill go though more plugins as soon as i get time
Proudly using flatpress https://www.mypoppy.uk/blog

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

Re: Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by laborix » Sun Oct 09, 2022 2:12 pm

Arvid wrote: ↑Sun Oct 09, 2022 1:11 pm... My PHP 8.1 apache totally hangs itself when opening the entry overview in the Admin Area ...
Ok, same endless loop :roll:
Following error in the PHP_Error.log (hundreds of the same entries):

Code: Select all

PHP Notice:  Only variables should be assigned by reference in .../fpgit744/fp-includes/core/core.draft.php on line 180
In my imported entries there are a few draft entries, I used this as internal ToDo notes at old times :lol: I will test again after installing the new Github 747 version and post the results ...

Edit: Github 747 errors:

Search - Errors again:

Code: Select all

Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in .../fpgit744/fp-includes/core/core.date.php:158 Stack trace: #0
...
.../fpgit744/search.php(9): search_display() #17 {main} thrown in .../fpgit744/fp-includes/core/core.date.php on line 158
Admin Interface - Entries List

Code: Select all

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 65028096 bytes) in .../fpgit744/fp-content/cache/2ea559ebb4cb14120f492e15f27d1a8f^45b56d451334d455d19f37231165ec82f21d6616_0.admin.entrylist.php on line 62

Line 62 in cache file:

-> echo $_block_plugin2(array(), ob_get_clean(), $_smarty_tpl, $_block_repeat);

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

Re: Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by laborix » Sun Oct 09, 2022 3:49 pm

Reinstalled the Github 747 and tested something more, next Error Plugin Gallery captions:

If I select in the Admin Interface - Uploader the submenu "Gallery captions" then you get:

Code: Select all

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "plugin:plugin:gallerycaptionsadmin.plug" on line 4 "{include file=shared:errorlist.tpl}" - Unexpected ":", expected one of: "}" <-- thrown in .../fpgit747/fp-includes/smarty-4.2.1/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 4
Greetings

George
Posts: 46
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

Re: Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by George » Mon Oct 10, 2022 7:26 am

most other themes require work , emoticon plugin works perfectly :)
the audio video plugin needs work , i worked around this by using the following code in my posts

Code: Select all

<video width="440" height="380" controls><br />
  <source src="/your directory/your video.mp4" type="video/mp4"><br />
   </video>
https://hooley.no-ip.co.uk/
PHP Version 8.1.8
Nginx
Proudly using flatpress https://www.mypoppy.uk/blog

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

Re: Github FlatPress 744 - First Test on PHP 8.1 - some Errors

Post by Arvid » Tue Oct 11, 2022 12:25 pm

Fixed the endless loop that occured in the entry overview with drafts.
laborix wrote: ↑Sun Oct 09, 2022 2:12 pm

Code: Select all

Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in .../fpgit744/fp-includes/core/core.date.php:158 Stack trace: #0
...
.../fpgit744/search.php(9): search_display() #17 {main} thrown in .../fpgit744/fp-includes/core/core.date.php on line 158
You'll need to activate the PHP extension intl in your php.ini. This is required for the strftime() workaround.

laborix wrote: ↑Sun Oct 09, 2022 3:49 pm

Code: Select all

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "plugin:plugin:gallerycaptionsadmin.plug" on line 4 "{include file=shared:errorlist.tpl}" - Unexpected ":", expected one of: "}" <-- thrown in .../fpgit747/fp-includes/smarty-4.2.1/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 4
Fixed this as well. Smarty 4 sure is a lot more picky about correct quotation^^

George wrote: ↑Mon Oct 10, 2022 7:26 am the audio video plugin needs work
Please check out version 1.0.2 :)

Thank you all very much for testing, that really helps me a lot!
All the best,
Arvid

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests