Github Flatpress 757 - PHP 8.1.12 - Fatal error

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 757 - PHP 8.1.12 - Fatal error

Post by laborix » Wed Oct 26, 2022 4:05 pm

A test on a Windows server with Apache 2.4.54 server (fcgid mode) with PHP 8.1.12. Rebuild the Index with a full backup of Flatpress attachs, entries and images.

Code: Select all

HP Fatal error:  Cannot backup old index. STOP. in .../fpgit757/admin/panels/maintain/admin.maintain.php on line 148
I am relatively sure that this worked under PHP 8.1.10 with the Flatpress Github 756. Unfortunately I don't have the possibility to recreate this, but it should be fixed.

Again, for reference:
This is an Apache 2.4.54 server (fcgid mode).

regards

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

Re: Github Flatpress 757 - PHP 8.1.12 - Fatal error

Post by laborix » Thu Oct 27, 2022 5:24 am

The problem with the Fatal Error can be reproduced as follows:

1. log in to FlatPress
2. administration area - maintain
3. purge theme and templates cache
4. rebuild index

and the Fatal Error described above appears ;)

But the whole thing works if you use one of the following two solutions:

Manually delete the complete content of the FlatPress cache folder using an FTP program.

or:

Do not delete the FlatPress cache via "Purge theme and templates cache" before the rebuild.

1. log in to FlatPress
2. administration area - maintain
3. rebuild index

I leave it open whether this is an urgent error that needs to be fixed.

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

Re: Github Flatpress 757 - PHP 8.1.12 - Fatal error

Post by Arvid » Sun Oct 30, 2022 12:21 pm

I was able to reproduce this behaviour. Oddly, if you run into the error, you can just refresh the "lowres" page to make it work :shock:
Couldn't find the cause on first sight; I opened issue 162.

Thanks for reporting!
πŸ“ Project blogβ€ƒβ€ƒπŸ“– Docsβ€ƒβ€ƒπŸ¦ Twitterβ€ƒβ€ƒπŸ˜ Mastodonβ€ƒβ€ƒπŸ“œ Forum RSS feedβ€ƒβ€ƒπŸ“œ Project blog RSS feed  ❀️ Donate


Save the date: FlatPress Community Meetup in πŸ‡©πŸ‡ͺ Berlin on March 23rd! Announcement, Forum Topic

πŸ”₯ How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 πŸ”₯

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

Re: Github Flatpress 757 - PHP 8.1.12 - Fatal error

Post by Arvid » Sun Dec 18, 2022 11:54 am

Found the cause: Since the index dir has an open handle pointing to it when the cache needs to be created, it can't be renamed. When reloading the page, the cache already exists, and the renaming of the index dir will work.
I added a helpful error message.

All the best,
Arvid
πŸ“ Project blogβ€ƒβ€ƒπŸ“– Docsβ€ƒβ€ƒπŸ¦ Twitterβ€ƒβ€ƒπŸ˜ Mastodonβ€ƒβ€ƒπŸ“œ Forum RSS feedβ€ƒβ€ƒπŸ“œ Project blog RSS feed  ❀️ Donate


Save the date: FlatPress Community Meetup in πŸ‡©πŸ‡ͺ Berlin on March 23rd! Announcement, Forum Topic

πŸ”₯ How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 πŸ”₯

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests