An exception occurred: [TypeError] Argument 1 passed to
Pages\Providers::getData() must be an instance of
XF\Pub\Controller\AbstractController, string given in
src/addons/Pages/Providers.php on line 23
Pages\Providers::getData()
call_user_func() in src/XF/Template/Templater.php at line 1382
XF\Template\Templater->callback() in internal_data/code_cache/templates/l1/s2/public/_page_node.100.php at line 13
XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1294
XF\Template\Templater->renderTemplate() in src/XF/Template/Templater.php at line 1367
XF\Template\Templater->includeTemplate() in internal_data/code_cache/templates/l1/s2/public/page_view.php at line 82
XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1294
XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 418
XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 400
XF\Mvc\Dispatcher->renderReply() in src/XF/Mvc/Dispatcher.php at line 360
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 53
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20
我不知道自己在做什么错...这是我目前的攻击计划,我的代码片段非常短(下面包含一个函数),我希望使用PHP在XenForo页面中调用该代码打回来。回调的条件是使用控制器和xf所述的回复参考:
\XF\Pub\Controller\AbstractController $controller控制器实例。由此您可以检查请求,响应等。
\XF\Mvc\Reply\AbstractReply &$reply 来自页面控制器的标准回复。
包含在Page节点中的回调是Pages\Providers::getData()。但是这样运行给我TypeError。根据我的理解,我$controller对参数1不是正确的类型大吼大叫,但是又如何呢?我的代码甚至不需要它。关于如何解决这个问题的任何想法将不胜感激!谢谢你。
饮歌长啸