WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: CodeALot on July 03, 2023, 12:45:40 PM

Title: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: CodeALot on July 03, 2023, 12:45:40 PM
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"
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: hgs 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?
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: CodeALot 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)
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: CodeALot 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"
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: sternchen8875 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
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: CodeALot 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
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: sternchen8875 on July 04, 2023, 10:01:07 AM
as I suspected: there is currently no WB version that runs with PHP 8.2.x
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: CodeALot 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 ;-)
Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: hgs 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.

Title: Re: Bugreport: 2.13.3 r166 & PHP 8.2.2 errors in database framework
Post by: CodeALot 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!