Author Topic: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework  (Read 1612 times)

Offline CodeALot

  • Posts: 538
  • Gender: Male
Logfile full of things like:

Code: [Select]
Mon, 03 Jul 2023 10:43:10 +0000 [E_DEPRECATED] /framework/class.database.php:[99] from /framework/class.database.php:[52] database->connect "Creation of dynamic property database::$Collation is deprecated"
Mon, 03 Jul 2023 10:43:10 +0000 [E_DEPRECATED] /framework/class.database.php:[75] from /framework/initialize.php:[438] database::getInstance "Creation of dynamic property database::$sInstanceIdentifier is deprecated"
Mon, 03 Jul 2023 10:43:10 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 10:43:10 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[150] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 10:43:10 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 10:43:11 +0000 [E_DEPRECATED] /framework/class.database.php:[99] from /framework/class.database.php:[52] database->connect "Creation of dynamic property database::$Collation is deprecated"
Mon, 03 Jul 2023 10:43:11 +0000 [E_DEPRECATED] /framework/class.database.php:[75] from /framework/initialize.php:[438] database::getInstance "Creation of dynamic property database::$sInstanceIdentifier is deprecated"

Offline hgs

  • Betatester
  • **
  • Posts: 1781
    • EFG MG
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #1 on: July 03, 2023, 03:15:38 PM »
I cannot confirm the error, but I already have PHP 8.2.3 on the server
What modules are used on the website?
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline CodeALot

  • Posts: 538
  • Gender: Male
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #2 on: July 03, 2023, 08:02:09 PM »
A lot of modules, but the errorlog fills with this error even when I only have the ADMIN mainscreen (back-end) on my screen. (So no modules are called there, AFAIK)

This is what it produces right after loggin in:

Code: [Select]
"created: [Mon, 03 Jul 2023 18:00:18 +0000]
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[99] from /framework/class.database.php:[52] database->connect "Creation of dynamic property database::$Collation is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[75] from /framework/initialize.php:[438] database::getInstance "Creation of dynamic property database::$sInstanceIdentifier is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[150] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[99] from /framework/class.database.php:[52] database->connect "Creation of dynamic property database::$Collation is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[75] from /framework/initialize.php:[438] database::getInstance "Creation of dynamic property database::$sInstanceIdentifier is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[150] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:20 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:22 +0000 [E_DEPRECATED] /framework/class.database.php:[99] from /framework/class.database.php:[52] database->connect "Creation of dynamic property database::$Collation is deprecated"
Mon, 03 Jul 2023 18:00:22 +0000 [E_DEPRECATED] /framework/class.database.php:[75] from /framework/initialize.php:[438] database::getInstance "Creation of dynamic property database::$sInstanceIdentifier is deprecated"
Mon, 03 Jul 2023 18:00:22 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:22 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[150] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:00:22 +0000 [E_DEPRECATED] /framework/class.database.php:[803] from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated""

(This is the whole errorlog right after logging in. All errors are generated from the framework folder)

Offline CodeALot

  • Posts: 538
  • Gender: Male
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #3 on: July 03, 2023, 08:05:51 PM »
This is what gets written to the error logfile before I login (so only when I browse to /admin)

Code: [Select]
Mon, 03 Jul 2023 18:04:48 +0000 [E_DEPRECATED] /framework/class.database.php:[99]  from /framework/class.database.php:[52] database->connect "Creation of dynamic property database::$Collation is deprecated"
Mon, 03 Jul 2023 18:04:48 +0000 [E_DEPRECATED] /framework/class.database.php:[75]  from /framework/initialize.php:[438] database::getInstance "Creation of dynamic property database::$sInstanceIdentifier is deprecated"
Mon, 03 Jul 2023 18:04:48 +0000 [E_DEPRECATED] /framework/class.database.php:[803]  from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:04:48 +0000 [E_DEPRECATED] /framework/class.database.php:[803]  from /framework/class.database.php:[150] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"
Mon, 03 Jul 2023 18:04:48 +0000 [E_DEPRECATED] /framework/class.database.php:[803]  from /framework/class.database.php:[132] mysql->__construct "Creation of dynamic property mysql::$oDbHandle is deprecated"

Offline sternchen8875

  • Posts: 278
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #4 on: July 04, 2023, 01:03:13 AM »
i get messages like this, when i open the adress from a WB-Installation with the wrong php-version, so for example: a WB 2.12.x doesn't work with PHP 8.2.x, the same in other direction: the latest wb-version doesn't work with php 7.x

maybe, you can give some more details about this

Offline CodeALot

  • Posts: 538
  • Gender: Male
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #5 on: July 04, 2023, 01:21:17 AM »
But of course :)
Running WB 2.13.3 r166
PHP 8.2.2
Apache API version 20120211
Webserver Software: Linux vs9088 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64

Offline sternchen8875

  • Posts: 278
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #6 on: July 04, 2023, 10:01:07 AM »
as I suspected: there is currently no WB version that runs with PHP 8.2.x

Offline CodeALot

  • Posts: 538
  • Gender: Male
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #7 on: July 04, 2023, 10:24:01 AM »
Ah, ok, thank you. I'll switch back to 8.1 until that changes.
(It was in the post title though ;-)

Offline hgs

  • Betatester
  • **
  • Posts: 1781
    • EFG MG
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #8 on: July 04, 2023, 01:32:27 PM »
I cannot confirm the error, but I already have PHP 8.2.3 on the server
What modules are used on the website?


Sorry for this statement.
I was already one step further with the development environment.

The errors occur as posted.

LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline CodeALot

  • Posts: 538
  • Gender: Male
Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
« Reply #9 on: July 10, 2023, 09:55:20 PM »
I cannot confirm the error, but I already have PHP 8.2.3 on the server
What modules are used on the website?


Sorry for this statement.
I was already one step further with the development environment.

The errors occur as posted.

No worries, I just went back to PHP 8.1 and all is fine now. Looking forward to new WB updates as always :-) Thanks for the replies!