XF 2.2 Error after upgrading to 2.2.8

Hello,

After I upgraded my forum from 2.1.2 to 2.2.8 Patch1 I'm receiveing these similar errors:

Code:
TypeError: Extension public:thread_view :: structured_data() error: Argument 2 passed to XF\Entity\Thread::getLdStructuredData() must be of the type integer, null given, called in /home/geniptv/domains/geniptv.net/public_html/src/XF/Template/Templater.php on line 1191 src/XF/Entity/Thread.php:912

Generated by: Unknown account Jan 27, 2022

Stack trace
#0 src/XF/Template/Templater.php(1191): XF\Entity\Thread->getLdStructuredData(Object(ThemeHouse\QAForums\XF\Entity\Post), NULL, Array)
#1 internal_data/code_cache/templates/l1/s11/public/thread_view.php(13): XF\Template\Templater->method(Object(ThemeHouse\QAForums\XF\Entity\Thread), 'getLdStructured...', Array)
#2 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#3 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('structured_data', Array, Array, Object(XF\Template\ExtensionSet))
#4 internal_data/code_cache/templates/l1/s11/public/thread_view.php(660): XF\Template\Templater->renderExtension('structured_data', Array, Object(XF\Template\ExtensionSet))
#5 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#13 src/XF.php(517): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state
array(4) {
  ["url"] => string(46) "/threads/need-help-for-app-with-own-logo.9107/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

How can I fix this error/bug?
 
After 2 days, no errors appeared. The error was there because of outdated Addons and styles. I deleted all themehouse styles (and related addon) and updated other addons.

Thanks for the support and your time 🙏
 
Top