调用未定义的方法 stdClass::onDisplay() 错误


Call to undefined method stdClass::onDisplay() error

我有一个joomla 2.5安装。我刚刚安装了社区构建器组件。当我尝试添加字段时,我收到错误消息:致命错误:在第 459 行的/home/sharpfoc/public_html/joomla16/libraries/joomla/html/editor.php 中调用未定义的方法 stdClass::onDisplay()如果有人对如何解决此问题有线索,将不胜感激。谢谢。灵魂之眼

在文件夹库/joomla/html 中编辑文件 "editor.php"

已更换线路

  $resultTest = $plugin->onDisplay($editor);

在行之后的 261* 行中

// Try to authenticate — only add to array if authentication is successful

 if (method_exists($plugin, 'onDisplay')) {
     $result[] = $plugin->onDisplay($editor);
 }

它对我有用。希望它也适合你