Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2019-11-06 17:59:56

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,588
Website

Re: Request for testers: PHP 7.3 compatibility

Do you perhaps have anything like AddHandler in your .htaccess file of the site that might be switching back to an earlier version of php even though something else is set in your host?


TXP Builders – finely-crafted code, design and txp

Offline

#22 2019-11-06 18:09:09

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 209
Website

Re: Request for testers: PHP 7.3 compatibility

jakob wrote #319965:

Do you perhaps have anything like AddHandler in your .htaccess file of the site that might be switching back to an earlier version of php even though something else is set in your host?

The way the handler works it just edits the htaccess itself, so once I see the error I know php7.3 is enabled, when I switch back to 7.2 using the handler it’s perfect again..


…………………
I <3 txp
…………………

Offline

#23 2019-11-06 20:03:19

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 209
Website

Re: Request for testers: PHP 7.3 compatibility

It is something on the hosting side they are fixing something now, if anyone else gets an issue like this and is dealing with a hosting company, I found the below code so handy to replicate the problem for them, create a new empty database with user (full permissions), then create a test php page to do a simple connection. If they have mis-configured 7.3 they will see ‘Connected’ under 7.2, and after switching to 7.3 the error will display.

<?php
$mysqli_connection = new MySQLi('localhost', 'user', 'password', 'database');
if ($mysqli_connection->connect_error) {
   echo "Not connected, error: " . $mysqli_connection->connect_error;
}
else {
   echo "Connected.";
}
?>

Thanks for the replies all :)


…………………
I <3 txp
…………………

Offline

#24 2019-11-07 10:57:32

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 209
Website

Re: Request for testers: PHP 7.3 compatibility

It works! I don’t know why but somehow when they switched to 7.3 it worked but when I did it didn’t, after clearing caches etc. So yay for hosting that works eventually :D


…………………
I <3 txp
…………………

Offline

Board footer

Powered by FluxBB