LogicException: Attempted to set 'alerts_unviewed' while a save was pending without forceSet src/XF/Mvc/Entity/Entity.php:600
Generated by: Γιώργος 82 Dec 18, 2022 at 12:09 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(572): XF\Mvc\Entity\Entity->set('alerts_unviewed', -1)
#1 src/XF/Repository/UserAlert.php(414): XF\Mvc\Entity\Entity->__set('alerts_unviewed', -1)
#2 src/XF/Db/AbstractAdapter.php(457): XF\Repository\UserAlert->XF\Repository\{closure}(Object(XF\Db\Mysqli\Adapter))
#3 src/XF/Db/AbstractAdapter.php(466): XF\Db\AbstractAdapter->executeTransaction(Object(Closure), 0)
#4 src/XF/Repository/UserAlert.php(417): XF\Db\AbstractAdapter->executeTransaction(Object(Closure), 1)
#5 src/XF/Repository/UserAlert.php(361): XF\Repository\UserAlert->markSpecificUserAlertsRead(Object(XF\Mvc\Entity\ArrayCollection), Object(XF\Entity\User), 1671394168)
#6 src/XF/Pub/Controller/Account.php(1327): XF\Repository\UserAlert->autoMarkUserAlertsRead(Object(XF\Mvc\Entity\ArrayCollection), Object(XF\Entity\User))
#7 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Account->actionAlertsPopup(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'AlertsPopup', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Holidays\XF\Pub\Controller\Account), NULL)
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Holidays\XF\Pub\Controller\Account), NULL)
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(478) "/forums/account/alerts-popup?_xfRequestUri=%2Fforums%2Fthreads%2F%25CE%25A4%25CF%2583%25CE%25BF%25CF%2580%25CE%25B1%25CE%25BD%25CF%258C%25CF%2583%25CE%25BA%25CF%2585%25CE%25BB%25CE%25B1-%25CE%25BC%25CE%25B5-%25CE%25AC%25CE%25B3%25CF%2581%25CE%25B9%25CE%25B5%25CF%2582-%25CE%25B4%25CE%25B9%25CE%25B1%25CE%25B8%25CE%25AD%25CF%2583%25CE%25B5%25CE%25B9%25CF%2582.923%2Fpage-13&_xfWithData=1&_xfToken=1671394162%2Cf13b5b22bf3fc2537a5712255b1ab0b4&_xfResponseType=json&_=1671394163799"
["referrer"] => string(231) "https://www.hunterslife.gr/forums/threads/%CE%A4%CF%83%CE%BF%CF%80%CE%B1%CE%BD%CF%8C%CF%83%CE%BA%CF%85%CE%BB%CE%B1-%CE%BC%CE%B5-%CE%AC%CE%B3%CF%81%CE%B9%CE%B5%CF%82-%CE%B4%CE%B9%CE%B1%CE%B8%CE%AD%CF%83%CE%B5%CE%B9%CF%82.923/page-13"
["_GET"] => array(5) {
["_xfRequestUri"] => string(205) "/forums/threads/%CE%A4%CF%83%CE%BF%CF%80%CE%B1%CE%BD%CF%8C%CF%83%CE%BA%CF%85%CE%BB%CE%B1-%CE%BC%CE%B5-%CE%AC%CE%B3%CF%81%CE%B9%CE%B5%CF%82-%CE%B4%CE%B9%CE%B1%CE%B8%CE%AD%CF%83%CE%B5%CE%B9%CF%82.923/page-13"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1671394162,f13b5b22bf3fc2537a5712255b1ab0b4"
["_xfResponseType"] => string(4) "json"
["_"] => string(13) "1671394163799"
}
["_POST"] => array(0) {
}
}