XF 2.2 i cant create a question in my site i get an error

shimspedy

Well-known member
Post thread   dimeforum - make money online forum.png

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Macro public:fo...', '/home4/server...', 631, Array)
#1 src/XF/Template/Templater.php(631): trigger_error('Macro public:fo...', 512)
#2 src/XF/Template/Templater.php(744): XF\Template\Templater->getTemplateMacro('public', 'forum_post_thre...', 'type_chooser')
#3 internal_data/code_cache/templates/l1/s38/public/forum_post_quick_thread.php(113): XF\Template\Templater->callMacro('forum_post_thre...', 'type_chooser', Array, Array)
#4 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_post_quic...', Array)
#6 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#7 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Forum\\PostTh...', 'public:forum_po...', Array)
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('XF:Forum\\PostTh...', 'public:forum_po...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#12 src/XF/App.php(2298): XF\Mvc\Dispatcher->run()
#13 src/XF.php(459): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
 
Last edited:
Before we treat this as a bug report we may need some further info.

It looks like you have provided the stack trace from an error message logged in your server error log. Could you please provide the actual full error message, as it may be relevant. The request details may be relevant too.
 
Code:
ErrorException: Template error: Macro public:forum_post_thread:type_chooser is unknown src/XF/Template/Templater.php:631
Generated by: shim Aug 9, 2020 at 1:20 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Macro public:fo...', '/home4/codeslim...', 631, Array)
#1 src/XF/Template/Templater.php(631): trigger_error('Macro public:fo...', 512)
#2 src/XF/Template/Templater.php(744): XF\Template\Templater->getTemplateMacro('public', 'forum_post_thre...', 'type_chooser')
#3 internal_data/code_cache/templates/l1/s38/public/forum_post_quick_thread.php(113): XF\Template\Templater->callMacro('forum_post_thre...', 'type_chooser', Array, Array)
#4 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_post_quic...', Array)
#6 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#7 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Forum\\PostTh...', 'public:forum_po...', Array)
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('XF:Forum\\PostTh...', 'public:forum_po...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#12 src/XF/App.php(2298): XF\Mvc\Dispatcher->run()
#13 src/XF.php(459): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(192) "/forums/quick-questions.135/post-thread?inline-mode=1&_xfRequestUri=%2Fforums%2Fquick-questions.135%2F&_xfWithData=1&_xfToken=1596932405%2Cac81206fc38d56e3f3caa0675d2f0fc6&_xfResponseType=json"
  ["referrer"] => string(53) "https://www.dimeforum.com/forums/quick-questions.135/"
  ["_GET"] => array(5) {
    ["inline-mode"] => string(1) "1"
    ["_xfRequestUri"] => string(28) "/forums/quick-questions.135/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1596932405,ac81206fc38d56e3f3caa0675d2f0fc6"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom