在Wordpress中,我在后端编辑页面时出现以下错误
Uncaught TypeError: Cannot read properties of undefined (reading 'templates_empty_title')
at ElementorCommonApp.translate (common.min.js?ver=3.15.3:3:159255)
at Editor.translate (editor.min.js?ver=3.15.3:3:568743)
at ./assets/admin/src/template-library/LibraryTemplatesEmpty.js (elementor-modal.js:1:14611)
at n (elementor-modal.js:1:110)
at ./assets/admin/src/template-library/LibraryCollection.js (elementor-modal.js:1:5481)
at n (elementor-modal.js:1:110)
at ./assets/admin/src/template-library/LibraryLayoutView.js (elementor-modal.js:1:11415)
at n (elementor-modal.js:1:110)
at ./assets/admin/src/template-library/Component.js (elementor-modal.js:1:2039)
at n (elementor-modal.js:1:110)
您能否告诉我如何进行更多调查并解决问题 提前谢谢你
在主题 Aheto(不再支持)中我在 js 文件中进行了更改
从此:
ui:{
title:".elementor-template-library-blank-title",
message:".elementor-template-library-blank-message"},
modesStrings:{
empty:{
title:n.a.translate("templates_empty_title")
message: n.a.translate("templates_empty_message")
},
noResults:{
title:n.a.translate("templates_no_results_title"),
message:n.a.translate("templates_no_results_message")
},
noFavorites:{
title:n.a.translate("templates_no_favorites_title"),
}
对此:
ui:{
title:".elementor-template-library-blank-title",
message:".elementor-template-library-blank-message"},
modesStrings:{
empty:{
title:"empty",
message:"empty"
},
noResults:{
title:"no result",
message:"no result"
},
noFavorites:{
title:"NO favorites",
message:"NO favorites"
}
}
现在可以工作了
谢谢