新增文章出現錯誤

白老師,
我是使用joomla1.64,
新增文章時會出現一個錯誤, 而導致不能新增文章,
Fatal error: Call to undefined method stdClass::onDisplay() in /home/ulifeco1/public_html/libraries/joomla/html/editor.php on line 287
請問這該如何修正錯誤
感謝你
已邀请:

赤木@晴子 - 明月百年心

赞同来自:

你的网站 PHP 版本是多少? Joomla 1.6.x 要求 PHP 必须高于 5.2.4 .
参看: http://docs.joomla.org/Joomla_ ... ments
如果你的 PHP 版本足够,那么应该是某个“editor button plugin”(编辑器按钮插件)有冲突。可以尝试禁用或者卸载某个按钮插件(通常都是第三方扩展所安装的按钮插件,核心自带的按钮插件很少有冲突)。

~~~~~~~~~ - 上帝给我的使命,就是证明你们都不是最糟糕的

赞同来自:

白老師,
我找解決方法了,
只要將editor.php 第287行修改一下即可
將:
if ($temp = $plugin-onDisplay($editor, $this-asset, $this-author)) {
改為:
if (method_exists($plugin,'onDisplay') && $temp = $plugin-onDisplay($editor, $this-asset, $this-author)) {
這樣問題就ok了

要回复问题请先登录注册