PHP 5.4升级后,TinyMCE FileManager和ImageManager停止工作

Ynh*_*key 1 php tinymce datalife-engine

我最近为我的客户端升级了一台服务器,新服务器运行PHP 5.4.4而不是旧版本的5.3.x.

很多事情发生了变化,我不得不绕过并解决htmlspecialchars(),session_register()和其他问题,但一个问题仍然是一个完整的谜团:

现在,当我点击TinyMCE的图像管理器,语言包似乎并没有在所有的工作,这表明如标签:{#common.filter},{#view.thumbnail}等语言是俄语和系统集成与俄罗斯CMS称为DataLife引擎.TinyMCE中的其他功能,如常规文本编辑,工作正常.

我看了这个类似的问题:Tinymce filemanager没有工作+语言没有加载 但它似乎不是完全相同的问题,因为它工作,并没有对TinyMCE的配置,以及网站上的路径和甚至整个服务器都完全一样.只有PHP配置发生了变化.

在5.4升级时是否存在某种众所周知的问题?请告诉我其他必要信息.

PS升级TinyMCE不是一种选择.

小智 6

我在php5.4下面临同样的问题,在使用firebug进行跟踪后我发现了以下错误:

严格标准:Moxiecode_LocalFileImpl :: copyTo()声明应与第829严格标准中的 ../tinymce/jscripts/tiny_mce/plugins/imagemanager/classes/FileSystems/LocalFileImpl.php中的 Moxiecode_BaseFile :: copyTo($ dest)兼容:严格标准:声明Moxiecode_LocalFileImpl :: renameTo()应与第829行中的 ../tinymce/jscripts/tiny_mce/plugins/imagemanager/classes/FileSystems/LocalFileImpl.php中的 Moxiecode_BaseFile :: renameTo($ dest)兼容严格标准:Moxiecode_HistoryPlugin声明:: onInsertFile()应与第79行的../tinymce/jscripts/tiny_mce/plugins/imagemanager/plugins/History/History.php中的Moxiecode_ManagerPlugin :: onInsertFile(&$ man,&$ file) 兼容





尝试以下修复:

- 转到tiny_mce/plugins/imagemanager/classes/FileSystems | BaseFile.php

第154行,将" copyTo($ dest) " 更改为" copyTo(&$ dest) "

第215行,将" renameTo($ dest) " 更改为" renameTo(&$ dest) "

- 转到tiny_mce/plugins/imagemanager/classes | ManagerPlugin.php

1-2在225 行将 " onInsertFile(&$ man,&$ file) "更改为" onInsertFile(&$ man,$ file) "