[XB] Thread Type Rating Competition

[XB] Thread Type Rating Competition [Paid] 2.0.3 Patch Level 2

No permission to buy ($10.00)
It doesn't work for me, I use Xenforo version 2.3 on my forum. Please, I need help to resolve my blockage.
When I want to open a thread, I have this error: Attempted to set 'type_data' while a save was pending without forceSet

Code:
Server error log

LogicException: Attempted to set 'type_data' while a save was pending without forceSet src/XF/Mvc/Entity/
Entity.php:639
Generated by: Collantphile Apr 8, 2025 at 3:56 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(612): XF\Mvc\Entity\Entity->set('type_data', Array)
#1 src/addons/OzzModz/ThreadTypeCompetition/ThreadType/Competition.php(871): XF\Mvc\Entity\Entity->__set('type_data', Array)
#2 src/addons/OzzModz/ThreadTypeCompetition/ThreadType/Competition.php(820): OzzModz\ThreadTypeCompetition\ThreadType\Competition->competitionStartCloseCriteriaChanged(Object(SV\AggregatingForums\XF\Entity\Thread))
#3 src/XF/Entity/Post.php(617): OzzModz\ThreadTypeCompetition\ThreadType\Competition->onPostSave(Object(SV\AggregatingForums\XF\Entity\Thread), Object(MMO\ReputationSystem\XF\Entity\Post))
#4 src/XF/Mvc/Entity/Entity.php(1324): XF\Entity\Post->_postSave()
#5 src/XF/Mvc/Entity/Entity.php(1318): XF\Mvc\Entity\Entity->save(true, false)
#6 src/XF/Service/Thread/CreatorService.php(533): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\CreatorService->_save()
#8 src/XF/Pub/Controller/ForumController.php(961): XF\Service\Thread\CreatorService->save()
#9 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ForumController->actionPostThread(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#11 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#14 src/XF.php(806): XF\App->run()
#15 index.php(23): XF::runApp('XF\\Pub\\App')
#16 {main}

While awaiting, I uninstalled the addon.
 
Last edited:
It doesn't work for me, I use Xenforo version 2.3 on my forum. Please, I need help to resolve my blockage.
When I want to open a thread, I have this error: Attempted to set 'type_data' while a save was pending without forceSet

Code:
Server error log

LogicException: Attempted to set 'type_data' while a save was pending without forceSet src/XF/Mvc/Entity/
Entity.php:639
Generated by: Collantphile Apr 8, 2025 at 3:56 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(612): XF\Mvc\Entity\Entity->set('type_data', Array)
#1 src/addons/OzzModz/ThreadTypeCompetition/ThreadType/Competition.php(871): XF\Mvc\Entity\Entity->__set('type_data', Array)
#2 src/addons/OzzModz/ThreadTypeCompetition/ThreadType/Competition.php(820): OzzModz\ThreadTypeCompetition\ThreadType\Competition->competitionStartCloseCriteriaChanged(Object(SV\AggregatingForums\XF\Entity\Thread))
#3 src/XF/Entity/Post.php(617): OzzModz\ThreadTypeCompetition\ThreadType\Competition->onPostSave(Object(SV\AggregatingForums\XF\Entity\Thread), Object(MMO\ReputationSystem\XF\Entity\Post))
#4 src/XF/Mvc/Entity/Entity.php(1324): XF\Entity\Post->_postSave()
#5 src/XF/Mvc/Entity/Entity.php(1318): XF\Mvc\Entity\Entity->save(true, false)
#6 src/XF/Service/Thread/CreatorService.php(533): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\CreatorService->_save()
#8 src/XF/Pub/Controller/ForumController.php(961): XF\Service\Thread\CreatorService->save()
#9 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ForumController->actionPostThread(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#11 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\StandardLib\XF\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#14 src/XF.php(806): XF\App->run()
#15 index.php(23): XF::runApp('XF\\Pub\\App')
#16 {main}

While awaiting, I uninstalled the addon.
Should be fixed in last patch
 
Hi Paintbaker, thanks a lot. I suspected that there must be a conflict with other addons and I had in mind to deactivate the other addons to see, something that I did not do. I will look at the result with the new version of the addon during the day, thank you very much again. :)(y)



* Edited (17.15 GMT) : I have a new error :(. I checked, this time there is no conflict with other addons because I disabled them. The cause of the problem is elsewhere.

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '5755' for key 'PRIMARY' src/XF/Db/
AbstractStatement.php:230
Generated by: Collantphile Apr 9, 2025 at 11:31 AM

Stack trace

INSERT  INTO `xf_thread` (`node_id`, `user_id`, `username`, `discussion_state`, `type_data`, `discussion_type`, `title`, `discussion_open`, `sticky`, `index_state`, `post_date`, `last_post_date`, `last_post_user_id`, `last_post_username`, `thread_id`, `reply_count`, `view_count`, `first_post_id`, `last_post_id`, `first_post_reaction_score`, `first_post_reactions`, `prefix_id`, `custom_fields`, `tags`, `vote_score`, `vote_count`, `featured`, `ozzmodz_ttpc_rating_count`, `ozzmodz_ttpc_rating_cache`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1570): XF\Db\AbstractAdapter->insert('xf_thread', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1300): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/Entity/Entity.php(1370): XF\Mvc\Entity\Entity->save(true, true)
#7 src/addons/OzzModz/ThreadTypeCompetition/ThreadType/Competition.php(830): XF\Mvc\Entity\Entity->saveIfChanged()
#8 src/XF/Entity/Post.php(617): OzzModz\ThreadTypeCompetition\ThreadType\Competition->onPostSave(Object(OzzModz\ThreadTypeCompetition\XF\Entity\Thread), Object(OzzModz\ThreadTypeCompetition\XF\Entity\Post))
#9 src/XF/Mvc/Entity/Entity.php(1324): XF\Entity\Post->_postSave()
#10 src/XF/Mvc/Entity/Entity.php(1318): XF\Mvc\Entity\Entity->save(true, false)
#11 src/XF/Service/Thread/CreatorService.php(533): XF\Mvc\Entity\Entity->save(true, false)
#12 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\CreatorService->_save()
#13 src/XF/Pub/Controller/ForumController.php(961): XF\Service\Thread\CreatorService->save()
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ForumController->actionPostThread(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\ForumController), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\ForumController), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
 
Last edited:
Back
Top Bottom