XF 2.2 errors on outdated plugin after 2.2 update

findozor

Active member
i have outdated ******* plugin (thread rating). It worked with 2.1 but after updating to 2.2 im getting errors when trying to add a rate or review

got this on a front

Code:
XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'thread_rating_id' at row 1 in src/XF/Db/AbstractStatement.php at line 228
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 94
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 221
XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1510
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1242
XF\Mvc\Entity\Entity->save() in src/XF/Service/Thread/Replier.php at line 209
XF\Service\Thread\Replier->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
XF\Service\Thread\Replier->save() in src/addons/*******/AdvancedThreadRating/Entity/Rating.php at line 518
*******\AdvancedThreadRating\Entity\Rating->*******\AdvancedThreadRating\Entity\{closure}() in src/XF.php at line 589
XF::asVisitor() in src/addons/*******/AdvancedThreadRating/Entity/Rating.php at line 521
*******\AdvancedThreadRating\Entity\Rating->createPost() in src/addons/*******/AdvancedThreadRating/Entity/Rating.php at line 262
*******\AdvancedThreadRating\Entity\Rating->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1266
XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 69
XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 187
XF\Mvc\FormAction->run() in src/addons/*******/AdvancedThreadRating/XF/Pub/Controller/Thread.php at line 81
*******\AdvancedThreadRating\XF\Pub\Controller\Thread->actionBrRate() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 488
XF::runApp() in index.php at line 20

on admin side
Code:
INSERT  INTO `xf_post` (`thread_id`, `message_state`, `user_id`, `username`, `message`, `embed_metadata`, `bratr_star`, `thread_rating_id`, `post_date`, `post_id`, `ip_id`, `attach_count`, `warning_id`, `warning_message`, `type_data`, `last_edit_date`, `last_edit_user_id`, `edit_count`, `reaction_score`, `reactions`, `reaction_users`, `vote_score`, `vote_count`, `position`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1264, '22003')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1264, '22003')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(221): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1510): XF\Db\AbstractAdapter->insert('xf_post', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1242): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Service/Thread/Replier.php(209): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\Thread\Replier->_save()
#8 src/addons/*******/AdvancedThreadRating/Entity/Rating.php(518): XF\Service\Thread\Replier->save()
#9 src/XF.php(589): *******\AdvancedThreadRating\Entity\Rating->*******\AdvancedThreadRating\Entity\{closure}()
#10 src/addons/*******/AdvancedThreadRating/Entity/Rating.php(521): XF::asVisitor(Object(SV\ReportImprovements\XF\Entity\User), Object(Closure))
#11 src/addons/*******/AdvancedThreadRating/Entity/Rating.php(262): *******\AdvancedThreadRating\Entity\Rating->createPost()
#12 src/XF/Mvc/Entity/Entity.php(1266): *******\AdvancedThreadRating\Entity\Rating->_postSave()
#13 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#14 src/XF/Mvc/FormAction.php(187): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#15 src/addons/*******/AdvancedThreadRating/XF/Pub/Controller/Thread.php(81): XF\Mvc\FormAction->run()
#16 src/XF/Mvc/Dispatcher.php(350): *******\AdvancedThreadRating\XF\Pub\Controller\Thread->actionBrRate(Object(XF\Mvc\ParameterBag))
#17 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'BrRate', Object(XF\Mvc\RouteMatch), Object(SV\ReportImprovements\XF\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ReportImprovements\XF\Pub\Controller\Thread), NULL)
#19 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#20 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#21 src/XF.php(488): XF\App->run()
#22 index.php(20): XF::runApp('XF\\Pub\\App')
#23 {main}

When visiting whats new section where this plugin also has a view with new ratins at /whats-new/thread-ratings/

i got this on a front

Code:
ErrorException: [E_WARNING] Declaration of *******\AdvancedThreadRating\FindNew\RatingItem::filterResults(XF\Mvc\Entity\ArrayCollection $results) should be compatible with XF\FindNew\AbstractHandler::filterResults(XF\Mvc\Entity\AbstractCollection $results) in src/addons/*******/AdvancedThreadRating/FindNew/RatingItem.php at line 10
XF::handlePhpError() in src/addons/*******/AdvancedThreadRating/FindNew/RatingItem.php at line 10
include() in src/vendor/composer/ClassLoader.php at line 444
Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
Composer\Autoload\ClassLoader->loadClass()
spl_autoload_call()
class_exists() in src/XF/Repository/FindNew.php at line 72
XF\Repository\FindNew->getFindNewHandler() in src/XF/ControllerPlugin/FindNew.php at line 87
XF\ControllerPlugin\FindNew->getFindNewHandler() in src/XF/Pub/Controller/AbstractWhatsNewFindType.php at line 20
XF\Pub\Controller\AbstractWhatsNewFindType->actionIndex() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 488
XF::runApp() in index.php at line 20

on admin
Code:
#0 src/addons/*******/AdvancedThreadRating/FindNew/RatingItem.php(10): XF::handlePhpError(2, '[E_WARNING] Dec...', '/var/www/admin/...', 10, Array)
#1 src/vendor/composer/ClassLoader.php(444): include('/var/www/admin/...')
#2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/admin/...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('*******\\Advance...')
#4 [internal function]: spl_autoload_call('*******\\Advance...')
#5 src/XF/Repository/FindNew.php(72): class_exists('*******\\Advance...')
#6 src/XF/ControllerPlugin/FindNew.php(87): XF\Repository\FindNew->getFindNewHandler('*******_thread_...')
#7 src/XF/Pub/Controller/AbstractWhatsNewFindType.php(20): XF\ControllerPlugin\FindNew->getFindNewHandler('*******_thread_...')
#8 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\AbstractWhatsNewFindType->actionIndex(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('*******\\Advance...', 'Index', Object(XF\Mvc\RouteMatch), Object(*******\AdvancedThreadRating\Pub\Controller\WhatsNewRating), NULL)
#10 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(*******\AdvancedThreadRating\Pub\Controller\WhatsNewRating), 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}


im not admin or dev savy person and have no idea on how complex this issue and dunnot what to do. can anybody tell on better decision or maybe help me to fix it. thanks
 
You will need to contact the author for an updated compatible version.

That individual was banned from this site years ago, so you will have to contact them via their own site.
 
Back
Top Bottom