Skip to main content
Topic: Elkarte 2 and > PHP 8.0  (Read 429 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Elkarte 2 and > PHP 8.0

How much testing has gone on with Elkarte 2 and > PHP 8.0?

I am trying to use in the installer and getting error's I wouldn't expect.

Code: [Select]
 [Wed Jan 05 20:11:59.722699 2022] [php:warn] [pid 2981] [client 192.168.0.15:60583] PHP Warning:  Undefined array key "database_error" in /var/www/html/Elkarte2/sources/ElkArte/Database/Postgresql/Query.php on line 236, referer: http://192.168.0.70/Elkarte2/install/install.php?step=3
[Wed Jan 05 20:13:18.297527 2022] [php:warn] [pid 2983] [client 192.168.0.15:60597] PHP Warning:  Undefined array key "database_error" in /var/www/html/Elkarte2/sources/ElkArte/Database/Postgresql/Query.php on line 236, referer: http://192.168.0.70/Elkarte2/install/install.php?step=3
[Wed Jan 05 20:13:50.364144 2022] [php:warn] [pid 3023] [client 192.168.0.15:60601] PHP Warning:  Undefined array key "inserts" in /var/www/html/Elkarte2/install/install.php on line 310, referer: http://192.168.0.70/Elkarte2/install/install.php?step=3
PHP Fatal error:  Uncaught Error: Attempt to assign property "ip" on null in /var/www/html/Elkarte2/install/Install_Controller.php:1278\nStack trace:\n#0 /var/www/html/Elkarte2/install/Install_Controller.php(56): Install_Controller->action_deleteInstall()\n#1 /var/www/html/Elkarte2/install/install.php(43): Install_Controller->dispatch()\n#2 {main}\n  thrown in /var/www/html/Elkarte2/install/Install_Controller.php on line 1278, referer: http://192.168.0.70/Elkarte2/install/install.php?step=5

There are multiple ones to do with the PostgreSQL library, but I expect that as it's not as well use/maintained. I'm probably the only person who uses it...

Re: Elkarte 2 and > PHP 8.0

Reply #1

I've done some 8.0 testing, but not *alot*.  I was running 8.0 on my test site during part of the development to try and catch some items.

That said I've done none with the installer (which TBH was only partially refactored and then left in a bit of a mess, not that it was not a glorious mess to begin with)

Re: Elkarte 2 and > PHP 8.0

Reply #2

That pretty matches with what I’ve found then as once it was installed, everything pretty much works.