我被要求调查一个我没有制作的 WordPress 页面上的问题。它使用 Visual Composer 并且有几天他们无法在后端的页面中添加任何图像。Single Image 组件加载后,您可以选择图片,但添加时没有任何反应。
检查控制台它会给出以下错误:
ReferenceError: id is not defined
在以下位置:/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-鼠标,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable,下划线,wp-a11y,thickbox,简码, plupload,jquery-ui-position,jquery-ui-men&load%5B%5D=u,jquery-ui-autocomplete,jquery-ui-tabs,farbtastic,media-upload&ver=4.5.2 line 98 > 功能
var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
with(obj||{}){
__p+='\n <li class="added">\n <div class="inner" style="width: 75px; height: 75px; overflow: hidden;text-align: center;">\n <img rel="'+
((__t=( id ))==null?'':__t)+
'" src="'+
((__t=( url ))==null?'':__t)+
'" />\n </div>\n <a href="#" class="icon-remove"></a>\n </li>\n';
}
return __p;
试图通过这个,这个,这个和这个解决方案来修复它,但没有任何效果。