Fixed When moving thread error: Attempted to convert NULL to JSON array

bsport

New member
Affected version
v2.1.0 Beta 6
Oops! We ran into some problems.
InvalidArgumentException: Attempted to convert NULL to JSON array [first_post_reactions] in src/XF/Mvc/Entity/Entity.php at line 740
  1. XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 618
  2. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 720
  3. XF\Mvc\Entity\Entity->bulkSet() in src/XF/Repository/ThreadRedirect.php at line 24
  4. XF\Repository\ThreadRedirect->createThreadRedirectionDouble() in src/XF/Service/Thread/Mover.phpat line 106
  5. XF\Service\Thread\Mover->move() in src/XF/Pub/Controller/Thread.php at line 1026
  6. XF\Pub\Controller\Thread->actionMove() in src/XF/Mvc/Dispatcher.php at line 321
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
  11. XF\App->run() in src/XF.php at line 392
  12. XF::runApp() in index.php at line 20
 
You sure your running beta 6, this was fixed in beta 3,

Anyway, you should upgrade to RC2, beta 6 is two versions behind.
 
Done update to v2.1.0 Release Candidate 2 couple of minutes back, and i still have the same problem.


Oops! We ran into some problems.
InvalidArgumentException: Attempted to convert NULL to JSON array [first_post_reactions] in src/XF/Mvc/Entity/Entity.php at line 740
  1. XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 618
  2. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 720
  3. XF\Mvc\Entity\Entity->bulkSet() in src/XF/Repository/ThreadRedirect.php at line 24
  4. XF\Repository\ThreadRedirect->createThreadRedirectionDouble() in src/XF/Service/Thread/Mover.phpat line 106
  5. XF\Service\Thread\Mover->move() in src/XF/Pub/Controller/Thread.php at line 1017
  6. XF\Pub\Controller\Thread->actionMove() in src/XF/Mvc/Dispatcher.php at line 321
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
  11. XF\App->run() in src/XF.php at line 390
  12. XF::runApp() in index.php at line 20
 
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.0 RC3).

Change log:
first_post_reactions is nullable in the database, but wasn't declared as such in the entity. (Potentially prevented creation of a redirect.)
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom