[FIXED] Bug on importer from 1.0 xenforo to 2.1

DOA

Member
On import, latest version 2.07 groups:

Code:
[[email protected] forum]# php cmd.php xf:import
Starting import from [Nobita] Social Groups...
- Importing...
In Cover.php line 64:

  Argument 1 passed to Truonglv\Groups\Service\Group\Cover::validate() must b
  e of the type array, null given, called in /srv/www/forum/src/ad
  dons/Truonglv/Groups/Import/Importer/Group.php on line 267

In Cover.php line 64:

  Argument 1 passed to Truonglv\Groups\Service\Group\Cover::validate() must b
  e of the type array, null given, called in /srv/www/forum/src/ad
  dons/Truonglv/Groups/Import/Importer/Group.php on line 267

xf:import [--processes PROCESSES] [--finalize]
[[email protected] forum]#
Code:
TypeError: Argument 1 passed to Truonglv\Groups\Service\Group\Cover::validate() must be of the type array, null given, called in /srv/www/goregrish2/forum/src/addons/Truonglv/Groups/Import/Importer/Group.php on line 267 in src/addons/Truonglv/Groups/Service/Group/Cover.php at line 64
Truonglv\Groups\Service\Group\Cover->validate() insrc/addons/Truonglv/Groups/Import/Importer/Group.php at line 267
Truonglv\Groups\Import\Importer\Group->importGroup() insrc/addons/Truonglv/Groups/Import/Importer/Group.php at line 166
Truonglv\Groups\Import\Importer\Group->stepGroups() insrc/XF/Import/Runner.php at line 231
XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 59
XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line234
XF\Admin\Controller\Import->actionRun() insrc/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line248
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.phpat line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in admin.php at line 13
 

DOA

Member
Got this in the logs too... many times.

Code:
Exception: Could not find class Truonglv\Groups\XF\Entity\User when attempting to extend XF\Entity\User
src/XF/Extension.php:174
Generated by: Unknown account
May 2, 2019 at 10:15 PM
Stack trace

#0 src/XF/Mvc/Entity/Manager.php(53): XF\Extension->extendClass('XF\\Entity\\User')
#1 src/XF/Mvc/Entity/Manager.php(123): XF\Mvc\Entity\Manager->getEntityClassName('XF:User')
#2 src/XF/Repository/User.php(24): XF\Mvc\Entity\Manager->find('XF:User', 1, Array)
#3 src/XF/App.php(1766): XF\Repository\User->getVisitor(1, Array)
#4 src/XF/Pub/App.php(154): XF\App->getVisitorFromSession(Object(XF\Session\Session))
#5 src/XF/App.php(2173): XF\Pub\App->start(true)
#6 src/XF.php(390): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}
Request state

array(4) {
["url"] => string(20) "/taigachat/list.json"
["referrer"] => string(22) "https://domain.net/"
["_GET"] => array(1) {
["/taigachat/list_json"] => string(0) ""
}
["_POST"] => array(8) {
["sidebar"] => string(1) "1"
["lastrefresh"] => string(10) "1556788927"
["fake"] => string(1) "0"
["room"] => string(1) "1"
["_xfRequestUri"] => string(1) "/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
Code:
Exception: Job XF:PostEmbedMetadata: Could not find class Truonglv\Groups\XF\Entity\User when attempting to extend XF\Entity\User src/XF/Extension.php:174
Generated by: Unknown account May 2, 2019 at 10:13 PM
Stack trace
#0 src/XF/Mvc/Entity/Manager.php(53): XF\Extension->extendClass('XF\\Entity\\User')
#1 src/XF/Mvc/Entity/Manager.php(123): XF\Mvc\Entity\Manager->getEntityClassName('XF:User')
#2 src/XF/Mvc/Entity/Manager.php(357): XF\Mvc\Entity\Manager->find('XF:User', 63540, Array)
#3 src/XF/Mvc/Entity/Entity.php(385): XF\Mvc\Entity\Manager->getRelation(Array, Object(XF\Entity\Post))
#4 src/XF/Mvc/Entity/Entity.php(177): XF\Mvc\Entity\Entity->getRelation('User')
#5 src/XF/Mvc/Entity/Entity.php(101): XF\Mvc\Entity\Entity->get('User')
#6 src/XF/Entity/Post.php(436): XF\Mvc\Entity\Entity->__get('User')
#7 src/XF/SubContainer/BbCode.php(228): XF\Entity\Post->getBbCodeRenderOptions('post:prepare', NULL)
#8 src/XF/Service/Message/Preparer.php(154): XF\SubContainer\BbCode->getFullRenderOptions(Object(XF\Entity\Post), 'post:prepare', NULL)
#9 src/XF/Service/Message/Preparer.php(122): XF\Service\Message\Preparer->processMessage('Silo is a misun...')
#10 src/XF/Job/AbstractEmbedMetadataJob.php(66): XF\Service\Message\Preparer->prepare('Silo is a misun...', false)
#11 src/XF/Job/Manager.php(253): XF\Job\AbstractEmbedMetadataJob->run(G)
#12 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#13 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#14 job.php(42): XF\Job\Manager->runQueue(false, 8)
#15 {main}
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(57) "https://domain.net/admin.php?options/groups/tl_groups/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
 
Top