[FIXED] InvalidArgumentException: Attempted to convert NULL to integer [ip_id]

hollosch

Member
Server error log
  • InvalidArgumentException: Attempted to convert NULL to integer [ip_id]
  • src/XF/Mvc/Entity/Entity.php:759
  • Generated by: Stadtwiki Geislingen
  • Dec 7, 2020 at 2:22 PM

Stack trace​

#0 src/XF/Mvc/Entity/Entity.php(713): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'ip_id', 2, Array)
#1 src/XF/Mvc/Entity/Entity.php(1343): XF\Mvc\Entity\Entity->setAsSaved('ip_id', NULL)
#2 src/addons/Truonglv/Groups/Service/Comment/Preparer.php(257): XF\Mvc\Entity\Entity->fastUpdate('ip_id', NULL)
#3 src/addons/Truonglv/Groups/Service/Comment/Preparer.php(185): Truonglv\Groups\Service\Comment\Preparer->writeIpLog('95.208.49.134')
#4 src/addons/Truonglv/Groups/Service/Post/Creator.php(120): Truonglv\Groups\Service\Comment\Preparer->afterInsert()
#5 src/XF/Service/ValidateAndSavableTrait.php(40): Truonglv\Groups\Service\Post\Creator->_save()
#6 src/addons/Truonglv/Groups/ControllerPlugin/Comment.php(73): Truonglv\Groups\Service\Post\Creator->save()
#7 src/addons/Truonglv/Groups/Pub/Controller/Group.php(368): Truonglv\Groups\ControllerPlugin\Comment->saveCommentProcess(Object(Truonglv\Groups\Service\Post\Creator), false)
#8 src/XF/Mvc/Dispatcher.php(350): Truonglv\Groups\Pub\Controller\Group->actionAddPost(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('Truonglv\\Groups...', 'AddPost', Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Group), NULL)
#10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Group), NULL)
#11 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#13 src/XF.php(488): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

-------------

Previous InvalidArgumentException: Attempted to convert NULL to integer - src/XF/Mvc/Entity/ValueFormatter.php:147
#0 src/XF/Mvc/Entity/Entity.php(755): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 2, Array)
#1 src/XF/Mvc/Entity/Entity.php(713): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'ip_id', 2, Array)
#2 src/XF/Mvc/Entity/Entity.php(1343): XF\Mvc\Entity\Entity->setAsSaved('ip_id', NULL)
#3 src/addons/Truonglv/Groups/Service/Comment/Preparer.php(257): XF\Mvc\Entity\Entity->fastUpdate('ip_id', NULL)
#4 src/addons/Truonglv/Groups/Service/Comment/Preparer.php(185): Truonglv\Groups\Service\Comment\Preparer->writeIpLog('95.208.49.134')
#5 src/addons/Truonglv/Groups/Service/Post/Creator.php(120): Truonglv\Groups\Service\Comment\Preparer->afterInsert()
#6 src/XF/Service/ValidateAndSavableTrait.php(40): Truonglv\Groups\Service\Post\Creator->_save()
#7 src/addons/Truonglv/Groups/ControllerPlugin/Comment.php(73): Truonglv\Groups\Service\Post\Creator->save()
#8 src/addons/Truonglv/Groups/Pub/Controller/Group.php(368): Truonglv\Groups\ControllerPlugin\Comment->saveCommentProcess(Object(Truonglv\Groups\Service\Post\Creator), false)
#9 src/XF/Mvc/Dispatcher.php(350): Truonglv\Groups\Pub\Controller\Group->actionAddPost(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('Truonglv\\Groups...', 'AddPost', Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Group), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Group), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#14 src/XF.php(488): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state​

array(4) {
["url"] => string(55) "/gruppen/weitblick-nachhaltig-in-geislingen.33/add-post"
["referrer"] => string(72) "https://regio-portal.wiki/gruppen/weitblick-nachhaltig-in-geislingen.33/"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["message_html"] => string(268) "<p><span style="font-size: 15px;"><strong>Dominik Dörrer steigt nur bei Glatteis auf die Bahn um</strong></span><br>https://www.swp.de/suedwesten/staed...ur-bei-glatteis-auf-die-bahn-um-53617073.html</p>"
["last_date"] => string(10) "1592219253"
["last_known_date"] => string(1) "0"
["load_extra"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(47) "/gruppen/weitblick-nachhaltig-in-geislingen.33/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 

Thread view new threads

Top