0

我们将 Moxiemanager 与 TinyMCE 一起使用。但是在 PHP8 上升级后,我们遇到了错误。我们收到以下错误 -

服务器返回无效响应
致命错误:在 IteratorAggregate 的继承期间:未捕获 MOXMAN_Exception:MOXMAN_Vfs_FileList::getIterator() 的返回类型应该与 IteratorAggregate::getIterator(): Traversable 兼容,或者应该使用 #[\ReturnTypeWillChange] 属性来暂时抑制 / 中的通知站点/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/Vfs/FileList.php:38 堆栈跟踪:#0 /sites/ssc.lara/ssc/public/assets/libs/tinymce /plugins/moxiemanager/classes/Vfs/FileList.php(13): MOXMAN_Exception::throwRuntimeError() #1 /sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/AutoLoader.php (77): require('/sites/ssc.lara...') #2 /sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/Vfs/Local/File.php (277): MOXMAN_AutoLoader::autoload() #3 /sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/Commands/ListFilesCommand.php(148): MOXMAN_Vfs_Local_File->listFilesFiltered() #4 /sites/ssc.lara/ssc/public/assets/libs/ tinymce/plugins/moxiemanager/classes/CommandCollection.php(39): MOXMAN_Commands_ListFilesCommand->execute() #5 /sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/CorePlugin.php( 69): MOXMAN_CommandCollection->execute() #6 /sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/Handlers/JsonRpcHandler.php(74): MOXMAN_CorePlugin->execute() # 7 /sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/CorePlugin.php(82): MOXMAN_Handlers_JsonRpcHandler->processRequest() #8 /sites/ssc.lara/ssc/public/ assets/libs/tinymce/plugins/moxiemanager/api.php(18): MOXMAN_CorePlugin->processRequest() #9 {main} in/sites/ssc.lara/ssc/public/assets/libs/tinymce/plugins/moxiemanager/classes/Vfs/FileList.php在第13
行 好的

PHP 的 Iterator 实现似乎存在一些问题。任何人都可以帮忙吗?

4

1 回答 1

0

MoxieManager 目前不支持 PHP 8。Moxie 的开发人员正在努力支持 PHP 8,并希望在 2022 年第一季度晚些时候推出该版本。

资料来源:我在 Tiny 工作

于 2022-02-02T16:24:01.837 回答