Fixed Import vBulletin4 : smileys error

Ouard

Member
Affected version
2.0.2
Hello,

During vbulletin 4 import, an error occurs :

Code:
ErrorException: [E_WARNING] DOMElement::setAttribute(): string is not in UTF-8 src/XF/Service/Smilie/Export.php:6

Details :
Code:
#0 [internal function]: XF::handlePhpError(2, 'DOMElement::set...', '/dir/...', 62, Array)
#1 src/XF/Service/Smilie/Export.php(62): DOMElement->setAttribute('title', 'Clin d\x92oeil')
#2 src/XF/Import/DataHelper/Smilie.php(113): XF\Service\Smilie\Export->exportFromArray(Array, Array)
#3 src/XF/Import/DataHelper/Smilie.php(122): XF\Import\DataHelper\Smilie->getXml()
#4 src/XF/Import/Importer/vBulletin.php(4597): XF\Import\DataHelper\Smilie->saveXml('smilies.fred35_...')
#5 src/XF/Import/Runner.php(160): XF\Import\Importer\vBulletin->stepSmilies(Object(XF\Import\StepState), Array, 8)
#6 src/XF/Import/Runner.php(74): XF\Import\Runner->runStep('smilies', Object(XF\Import\StepState), 8)
#7 src/XF/Cli/Command/Import.php(66): XF\Import\Runner->run()
#8 src/vendor/symfony/console/Command/Command.php(242): XF\Cli\Command\Import->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 src/vendor/symfony/console/Application.php(843): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 src/vendor/symfony/console/Application.php(194): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\Import), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 src/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 src/XF/Cli/Runner.php(63): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 cmd.php(15): XF\Cli\Runner->run()
#14 {main}
 
Hi Chris , This was the smiles table .. I remember I fixed the issue by changing title ( any may be smilietext ) columns collation to utf8 .
 

Attachments

I've just been hunting high and low for the thread where I fixed this bug in order to mark this as a duplicate - only to realise that it was actually this one - I fixed this a month ago and forgot to mark it as fixed 🤯
 
Back
Top Bottom