Weppa333
Well-known member
- Affected version
- 2.2.15
This has been discussed in the past but the solution is usually to ask plugin authors ton update their plugins for improved PHP8.1/PHP8.2 compatibility, whereas I think this is clearly a problem inside Xenforo 2.2 codebase, up and including 2.2.15
The file
./src/vendor/dokuwiki/utf8/utf8.php
Contains code that is not compatible with PHP8.2, often spitting out warning/deprecations about passing "null" to strlen
This can be "hidden" by not sending null to strlen inside, aot, admin templates, but it's simply hiding the fact this library is a problem waiting to happen.
Imho, this library should be patched for improved php8.2 compatibility
eg here, simply forcing the result to a string
Would fix the problem once and for all ( This should be done at multiple places in that library. )
My 2 cents
Previous reference of the same issue :
The file
./src/vendor/dokuwiki/utf8/utf8.php
Contains code that is not compatible with PHP8.2, often spitting out warning/deprecations about passing "null" to strlen
Template XXXXXXXXXX: [E_DEPRECATED] mb_convert_encoding(): Passing null to parameter #1 ($string) of type array|string is deprecated (src/vendor/dokuwiki/utf8/utf8.php:142)
This can be "hidden" by not sending null to strlen inside, aot, admin templates, but it's simply hiding the fact this library is a problem waiting to happen.
Imho, this library should be patched for improved php8.2 compatibility
eg here, simply forcing the result to a string
strlen((string)mb_convert_encoding...
Would fix the problem once and for all ( This should be done at multiple places in that library. )
My 2 cents
Previous reference of the same issue :
I migrated the forum to a new server today, that uses PHP 8.1 and got two incidents in the log with this.
That was when a user uploaded a couple of images to the Media library.
It seems like the upload worked though, and I have not heard any complaints either.
We have 2.2.10 Patch 1.
That was when a user uploaded a couple of images to the Media library.
It seems like the upload worked though, and I have not heard any complaints either.
We have 2.2.10 Patch 1.
Code:
#0 [internal function]: XF::handlePhpError(8192, '[E_DEPRECATED] ...', '...__...', 429)
#1 src/vendor/dokuwiki/utf8/utf8.php(429): strtr(NULL, Array)
#2 src/XF/Repository/Tag.php(153): utf8_deaccent(NULL)
#3 src/XF/Entity/Tag.php(48): XF\Repository\Tag->generateTagUrlVersion(NULL)
#4...
- 7ore
- Replies: 5
- Forum: Troubleshooting and problems
Last edited: