Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#21 2020-12-31 12:48:01
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,994
- Website
Re: Testers needed: PHP 8 compatibility
Follow-up. From the output of phpinfo()
it appears mysqli is not installed on Pat64’s hosting instance. That would certainly knacker things up!
I wonder if this is commonplace on some hosts or if it’s the start of a general trend?
Last edited by Bloke (2020-12-31 12:48:48)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#22 2020-12-31 13:18:17
- gaekwad
- Admin
- From: People's Republic of Cornwall
- Registered: 2005-11-19
- Posts: 3,349
Re: Testers needed: PHP 8 compatibility
Assuming Diagnostics still shows in some capacity, perhaps 1309 might be worth further investigation. An upfront “system requirements check”, either as part of the pre-flight and/or included with the diagnostic info, with current status for each thing would be a sensible move.
Offline
#23 2020-12-31 13:20:57
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,994
- Website
Re: Testers needed: PHP 8 compatibility
gaekwad wrote #327932:
Assuming Diagnostics still shows in some capacity
Sadly it doesn’t. If mysqli isn’t installed, we can’t even make the connection to the database and it bails really ungracefully. Not really sure how to detect this, bar something called really really really high up in the stack to check system requirements: like maybe where we check the PHP version which I believe is in janitor()
. Would have to check.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#24 2020-12-31 13:21:57
- gaekwad
- Admin
- From: People's Republic of Cornwall
- Registered: 2005-11-19
- Posts: 3,349
Re: Testers needed: PHP 8 compatibility
Bloke wrote #327933:
Sadly it doesn’t. If mysqli isn’t installed, we can’t even make the connection to the database.
Oh yeah, of course! Off to dunce jail for me.
Offline
#25 2020-12-31 13:25:05
- gaekwad
- Admin
- From: People's Republic of Cornwall
- Registered: 2005-11-19
- Posts: 3,349
Re: Testers needed: PHP 8 compatibility
I suspect Pat64’s host will have to recompile their PHP 8.0 as our friends at Wordpress need mysqli
too (see make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions) and if that doesn’t work, they have a way bigger issue. That said, Wordpress isn’t fully PHP 8.0-ready just yet, so not a deal breaker.
Offline
#26 2020-12-31 13:59:08
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,994
- Website
Re: Testers needed: PHP 8 compatibility
gaekwad wrote #327935:
I suspect Pat64’s host will have to recompile their PHP 8.0
What’s odd is that the cPanel has checkboxes for which extensions to load, and mysqli is ticked there. But somewhere along the line that’s not getting pushed to the actual LAMP stack in production. Might be as simple as it not restarting the deamon properly, or it could be affecting a different (non-production) php.ini or something is overriding the version in use.
Patrick’s doing some digging.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#27 2020-12-31 14:13:32
- gaekwad
- Admin
- From: People's Republic of Cornwall
- Registered: 2005-11-19
- Posts: 3,349
Re: Testers needed: PHP 8 compatibility
Pat64: is there a php.ini
file in the root directory? If there is, can you post the contents here, please?
Offline