TypeError: SV\BbCodePages\Attachment\PageText::getContainerIdFromContext(): Return value must be of type ?int, string returned src/addons/SV/BbCodePages/Attachment/PageText.php:125
Generated by: Joshua Ferdinand Feb 17, 2024
Stack trace
#0 src/XF/Attachment/AbstractHandler.php(81): SV\BbCodePages\Attachment\PageText->getContainerIdFromContext(Array)
#1 src/XF/Attachment/Manipulator.php(60): XF\Attachment\AbstractHandler->getContainerFromContext(Array)
#2 src/XF/Attachment/Manipulator.php(45): XF\Attachment\Manipulator->setContext(Array)
#3 src/XF/Pub/Controller/Editor.php(293): XF\Attachment\Manipulator->__construct(Object(SV\BbCodePages\Attachment\PageText), Object(XF\Repository\Attachment), Array, 'df766feccd17391...')
#4 src/XF/Pub/Controller/Editor.php(259): XF\Pub\Controller\Editor->getAvailableAttachments()
#5 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Editor->actionToHtml(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Editor', 'ToHtml', Object(XF\Mvc\RouteMatch), Object(SV\AdvancedBbCodesPack\XF\Pub\Controller\Editor), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\AdvancedBbCodesPack\XF\Pub\Controller\Editor), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(25) "/index.php?editor/to-html"
["referrer"] => string(63) "https://atomicacademia.com/admin.php?pages/add&parent_node_id=0"
["_GET"] => array(1) {
["editor/to-html"] => string(0) ""
}
["_POST"] => array(6) {
["bb_code"] => string(0) ""
["attachment_hash_combined"] => string(90) "{"type":"svPageText","context":{"node_id":null},"hash":"df766feccd1739147fded4ce7c18ca48"}"
["_xfRequestUri"] => string(37) "/admin.php?pages/add&parent_node_id=0"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}