在 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"
的托管构建
答案 0 :(得分:1)
该错误听起来像是您确实将 Sulu 升级到了较新版本,但没有升级 javascript 版本。看看 sulu 升级指南:
https://docs.sulu.io/en/latest/upgrades/upgrade-2.x.html
更新sulu时需要运行的命令:
bin/console sulu:admin:update-build