Interacting with other addon?

xenwf

New Member
Hello,

Seems this is interacting with another addon https://xenforo.com/community/threads/convert-threads-to-resources.149088


XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'sv_prefix_ids' in 'field list' in src/XF/Db/AbstractStatement.php at line 228
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 39
  3. XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 54
  4. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
  5. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 218
  6. XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1510
  7. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1242
  8. XF\Mvc\Entity\Entity->save() in src/addons/XFRM/Service/ResourceItem/Create.php at line 288
  9. XFRM\Service\ResourceItem\Create->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
  10. XFRM\Service\ResourceItem\Create->save() in src/addons/Truonglv/ThreadResource/Service/Convert.php at line 158
  11. Truonglv\ThreadResource\Service\Convert->toResource() in src/addons/Truonglv/ThreadResource/XF/Pub/Controller/Thread.php at line 48
  12. Truonglv\ThreadResource\XF\Pub\Controller\Thread->actionTRConvert() in src/XF/Mvc/Dispatcher.php at line 350
  13. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  14. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  15. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  16. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2326
  17. XF\App->run() in src/XF.php at line 488
  18. XF::runApp() in index.php at line 20

If this is disabled converting to resource works fine. Let me know if you need to know any other info.

Thanks!
 
Rebuild XFRM, this will trigger MultiPrefix to add the various columns it expects to be added.
 
Having another issue, if you try and convert a thread to a resource while 'Automatically create thread in forum' it gives an error due to ID's I think?

Error: Call to a member function setPrefixIds() on null in src/addons/SV/MultiPrefix/XFRM/Service/ResourceItem/Create.php at line 17
  1. SV\MultiPrefix\XFRM\Service\ResourceItem\Create->setupResourceThreadCreation() in src/addons/XFRM/Service/ResourceItem/Create.php at line 308
  2. XFRM\Service\ResourceItem\Create->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
  3. XFRM\Service\ResourceItem\Create->save() in src/addons/Truonglv/ThreadResource/Service/Convert.php at line 158
  4. Truonglv\ThreadResource\Service\Convert->toResource() in src/addons/Truonglv/ThreadResource/XF/Pub/Controller/Thread.php at line 48
  5. Truonglv\ThreadResource\XF\Pub\Controller\Thread->actionTRConvert() in src/XF/Mvc/Dispatcher.php at line 350
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  7. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  8. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  9. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2326
  10. XF\App->run() in src/XF.php at line 488
  11. XF::runApp() in index.php at line 20

Any help would be appreciated.

Thank you!
 
Here is the stack trace also

#0 src/addons/XFRM/Service/ResourceItem/Create.php(308): SV\MultiPrefix\XFRM\Service\ResourceItem\Create->setupResourceThreadCreation(Object(SV\MultiPrefix\XF\Entity\Forum))
#1 src/XF/Service/ValidateAndSavableTrait.php(40): XFRM\Service\ResourceItem\Create->_save()
#2 src/addons/Truonglv/ThreadResource/Service/Convert.php(158): XFRM\Service\ResourceItem\Create->save()
#3 src/addons/Truonglv/ThreadResource/XF/Pub/Controller/Thread.php(48): Truonglv\ThreadResource\Service\Convert->toResource()
#4 src/XF/Mvc/Dispatcher.php(350): Truonglv\ThreadResource\XF\Pub\Controller\Thread->actionTRConvert(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'TrConvert', Object(XF\Mvc\RouteMatch), Object(SV\ReportImprovements\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ReportImprovements\XF\Pub\Controller\Thread), NULL)
#7 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#9 src/XF.php(488): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}

Thank you!
 
Having another issue, if you try and convert a thread to a resource while 'Automatically create thread in forum' it gives an error due to ID's I think?

Error: Call to a member function setPrefixIds() on null in src/addons/SV/MultiPrefix/XFRM/Service/ResourceItem/Create.php at line 17
  1. SV\MultiPrefix\XFRM\Service\ResourceItem\Create->setupResourceThreadCreation() in src/addons/XFRM/Service/ResourceItem/Create.php at line 308
  2. XFRM\Service\ResourceItem\Create->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
  3. XFRM\Service\ResourceItem\Create->save() in src/addons/Truonglv/ThreadResource/Service/Convert.php at line 158
  4. Truonglv\ThreadResource\Service\Convert->toResource() in src/addons/Truonglv/ThreadResource/XF/Pub/Controller/Thread.php at line 48
  5. Truonglv\ThreadResource\XF\Pub\Controller\Thread->actionTRConvert() in src/XF/Mvc/Dispatcher.php at line 350
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  7. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  8. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  9. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2326
  10. XF\App->run() in src/XF.php at line 488
  11. XF::runApp() in index.php at line 20

Any help would be appreciated.

Thank you!
The add-on is essentially breaking the expected return value in setupResourceThreadCreation, I can implement a work-around for the next version
 

Users who are viewing this thread

Back
Top