XF 2.1 Attempted to convert NULL to string/binary [last_post_username]

Версия XenForo
v2.1.4

Виталий Васильевич

Проверенные
Сообщения
2,154
Решения
28
Реакции
1,386
Баллы
11,330
InvalidArgumentException: Attempted to convert NULL to string/binary [last_post_username] src/XF/Mvc/Entity/Entity.php:740
Сгенерирована пользователем: Неизвестная учётная запись 30 Сен 2019 в 12:20

#0 src/XF/Mvc/Entity/Entity.php(618): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'last_post_usern...', 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(548): XF\Mvc\Entity\Entity->set('last_post_usern...', NULL)
#2 src/XF/Service/Thread/Creator.php(215): XF\Mvc\Entity\Entity->__set('last_post_usern...', NULL)
#3 src/XF/Service/Thread/Creator.php(223): XF\Service\Thread\Creator->finalSetup()
#4 src/XF/Service/ValidateAndSavableTrait.php(17): XF\Service\Thread\Creator->_validate()
#5 src/XF/Pub/Controller/Forum.php(742): XF\Service\Thread\Creator->validate(NULL)
#6 src/addons/SVG/AdminNotice/XF/Pub/Controller/Forum.php(17): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(321): SVG\AdminNotice\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(BS\ThreadRating\XF\Pub\Controller\Forum), NULL)
#9 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(BS\ThreadRating\XF\Pub\Controller\Forum), NULL)
#10 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#12 src/XF.php(390): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}

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

Previous InvalidArgumentException: Attempted to convert NULL to string/binary - src/XF/Mvc/Entity/ValueFormatter.php:130
#0 src/XF/Mvc/Entity/Entity.php(736): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(618): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'last_post_usern...', 5, Array)
#2 src/XF/Mvc/Entity/Entity.php(548): XF\Mvc\Entity\Entity->set('last_post_usern...', NULL)
#3 src/XF/Service/Thread/Creator.php(215): XF\Mvc\Entity\Entity->__set('last_post_usern...', NULL)
#4 src/XF/Service/Thread/Creator.php(223): XF\Service\Thread\Creator->finalSetup()
#5 src/XF/Service/ValidateAndSavableTrait.php(17): XF\Service\Thread\Creator->_validate()
#6 src/XF/Pub/Controller/Forum.php(742): XF\Service\Thread\Creator->validate(NULL)
#7 src/addons/SVG/AdminNotice/XF/Pub/Controller/Forum.php(17): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(321): SVG\AdminNotice\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(BS\ThreadRating\XF\Pub\Controller\Forum), NULL)
#10 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(BS\ThreadRating\XF\Pub\Controller\Forum), NULL)
#11 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#13 src/XF.php(390): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

array(4) {
["url"] => string(35) "/forums/nakipelo-18.149/post-thread"
["referrer"] => string(55) "Создать тему"
["_GET"] => array(0) {
}
["_POST"] => array(10) {
["prefix_id"] => string(1) "0"
["title"] => string(148) "Sexy women in your city are looking for dating (724 beautiful women want sex in your city right now): Adul_Dating_Site"
["message_html"] => string(136) "Sex Dating Sites - Online Adult Dating - 644 beautiful women want sex in your city right now: "
["message"] => string(136) "Sex Dating Sites - Online Adult Dating - 644 beautiful women want sex in your city right now: "
["_xfUsername"] => string(135) "How to find a woman for casual sex (949 beautiful women want sex in your city right now): Adul_Dating_Site"
["captcha_question_answer"] => string(14) "водород"
["captcha_question_hash"] => string(40) "fe065a8b044600764a25f492dd96374873707fb4"
["poll"] => array(8) {
["question"] => string(0) ""
["new_responses"] => array(1) {
[0] => string(0) ""
}
["max_votes_type"] => string(6) "single"
["max_votes_value"] => string(1) "2"
["change_vote"] => string(1) "1"
["view_results_unvoted"] => string(1) "1"
["close_length"] => string(1) "7"
["close_units"] => string(4) "days"
}
["submit"] => string(0) ""
["_xfToken"] => string(8) "********"
}
}

Подскажите куда копать ... поиск не дал результатов. или не нете запросы делал :(
Спасибо
 
Последнее редактирование:
Это баг движка. Возникает, когда гость при создании темы указывает имя, которое больше 50 символов.

Ждем-с.
 
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу