如何解决Sulu2.2 媒体上传页面加载后变为空白
在 Ubuntu 上使用 Chromium、Chrome 和 Firefox 我在尝试打开管理媒体上传页面时在控制台中收到以下错误:
Error: The list field transformer with the key "icon" is not defined. You probably forgot to add it to the registry using the "add" method.
at e.value (listFieldTransformerRegistry.js:29)
at AbstractTableAdapter.js:39
at Array.map (<anonymous>)
at i.value (AbstractTableAdapter.js:38)
at TableAdapter.js:61
at mobx.module.js:3452
at Array.map (<anonymous>)
at t.<anonymous> (mobx.module.js:3451)
at i.value (TableAdapter.js:52)
at i.value (TableAdapter.js:95)
eu @ react-dom.production.min.js:209
在显示文件夹后不久,我得到一个空白的白页并且无法继续(上传图像)。
使用 Composer 版本 "sulu/sulu: "~2.2"
的托管构建
解决方法
该错误听起来像是您确实将 Sulu 升级到了较新版本,但没有升级 javascript 版本。看看 sulu 升级指南:
https://docs.sulu.io/en/latest/upgrades/upgrade-2.x.html
更新sulu时需要运行的命令:
bin/console sulu:admin:update-build
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。