So your cron job failed with the following error. Also thread was not updated with Shoutbox content. What user are you setting for that cron and post?
Server error log
- InvalidArgumentException: Attempted to convert NULL to string/binary [username]
- src/XF/Mvc/Entity/Entity.php:697
- Generated by: Unknown account
- Dec 29, 2018 at 8:00 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(575): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'username', 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(505): XF\Mvc\Entity\Entity->set('username', NULL)
#2 src/XF/Service/Thread/Replier.php(102): XF\Mvc\Entity\Entity->__set('username', NULL)
#3 src/XF/Service/Thread/Replier.php(40): XF\Service\Thread\Replier->setPostDefaults()
#4 src/XF/Container.php(274): XF\Service\Thread\Replier->__construct(Object(XF\Pub\App), Object(ForumApps\API\XF\Entity\Thread))
#5 src/XF/App.php(1362): XF\Container->createObject('XF\\Service\\Thre...', Array)
#6 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\Thre...', Array, Object(XF\Container))
#7 src/XF/App.php(2511): XF\Container->create('service', 'XF:Thread\\Repli...', Array)
#8 src/addons/ForoAgency/Shoutbox/Repository/Messages.php(70): XF\App->service('XF:Thread\\Repli...', Object(ForumApps\API\XF\Entity\Thread))
#9 src/addons/ForoAgency/Shoutbox/Cron/Archive.php(12): ForoAgency\Shoutbox\Repository\Messages->archiveMessages()
#10 [internal function]: ForoAgency\Shoutbox\Cron\Archive::archiveMessages(Object(XF\Entity\CronEntry))
#11 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#12 src/XF/Job/Manager.php(241): XF\Job\Cron->run(G)
#13 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#14 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, G)
#15 job.php(14): XF\Job\Manager->runQueue(false, 8)
#16 {main}
-------------
Previous InvalidArgumentException: Attempted to convert NULL to string/binary - src/XF/Mvc/Entity/ValueFormatter.php:130
#0 src/XF/Mvc/Entity/Entity.php(693): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(575): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'username', 5, Array)
#2 src/XF/Mvc/Entity/Entity.php(505): XF\Mvc\Entity\Entity->set('username', NULL)
#3 src/XF/Service/Thread/Replier.php(102): XF\Mvc\Entity\Entity->__set('username', NULL)
#4 src/XF/Service/Thread/Replier.php(40): XF\Service\Thread\Replier->setPostDefaults()
#5 src/XF/Container.php(274): XF\Service\Thread\Replier->__construct(Object(XF\Pub\App), Object(ForumApps\API\XF\Entity\Thread))
#6 src/XF/App.php(1362): XF\Container->createObject('XF\\Service\\Thre...', Array)
#7 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\Thre...', Array, Object(XF\Container))
#8 src/XF/App.php(2511): XF\Container->create('service', 'XF:Thread\\Repli...', Array)
#9 src/addons/ForoAgency/Shoutbox/Repository/Messages.php(70): XF\App->service('XF:Thread\\Repli...', Object(ForumApps\API\XF\Entity\Thread))
#10 src/addons/ForoAgency/Shoutbox/Cron/Archive.php(12): ForoAgency\Shoutbox\Repository\Messages->archiveMessages()
#11 [internal function]: ForoAgency\Shoutbox\Cron\Archive::archiveMessages(Object(XF\Entity\CronEntry))
#12 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#13 src/XF/Job/Manager.php(241): XF\Job\Cron->run(G)
#14 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#15 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, G)
#16 job.php(14): XF\Job\Manager->runQueue(false, 8)
#17 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(58) "
https://mysite.com/whats-new/posts/648464/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}