XF 2.2 PHP 8.1: Passing null to parameter #1 ($string) of type string is deprecated src/vendor/dokuwiki/utf8/utf8.php:429

7ore

Member
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.


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 src/XF/Mvc/Entity/Entity.php(1361): XF\Entity\Tag->_preSave()
#5 src/XF/Repository/Tag.php(139): XF\Mvc\Entity\Entity->preSave()
#6 src/XF/Service/Tag/Changer.php(314): XF\Repository\Tag->createTag('ställplats deg...')
#7 src/addons/XFMG/Service/Media/Creator.php(239): XF\Service\Tag\Changer->save()
#8 src/XF/Service/ValidateAndSavableTrait.php(42): XFMG\Service\Media\Creator->_save()
#9 src/addons/XFMG/Pub/Controller/Media.php(884): XFMG\Service\Media\Creator->save()
#10 src/XF/Mvc/Dispatcher.php(352): XFMG\Pub\Controller\Media->actionSaveMedia(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XFMG:Media', 'SaveMedia', Object(XF\Mvc\RouteMatch), Object(TickTackk\ChangeContentOwner\XFMG\Pub\Controller\Media), NULL)
#12 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(TickTackk\ChangeContentOwner\XFMG\Pub\Controller\Media), NULL)
#13 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#15 src/XF.php(524): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
 
Thanks, missed that he was referenced in that log.
I use the Change Content owner addon and I am a couple of versions behind.
I’ll try to upgrade first to see if it is fixed in 2.0.15.
 
Last edited:
Back
Top Bottom