doucheng2053 2017-04-19 12:52
浏览 25

Wordpress加载不存在的旧文件

I edited a JavaScript file that had +mon_url+ that I changed to +islmthm_url+. Like so,

<label class="islmthm_radio_img"><input type="radio" name="newsbox-style" value="2"><img src="'+mon_url+'/framework/shortcodes/images/bg-9.png"><i></i></label>\
<label class="islmthm_radio_img"><input type="radio" name="newsbox-style" value="2"><img src="'+islmthm_url+'/framework/shortcodes/images/bg-9.png"><i></i></label>\

However, in the console, it shows me an error:

newsbox.js?wp-mce-4403-20160901:36 Uncaught ReferenceError: mon _url is not defined
    at HTMLDocument.<anonymous> (newsbox.js?wp-mce-4403-20160901:36)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,farbtastic&ver=4.7.3:2)
    at Object.add [as done] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,farbtastic&ver=4.7.3:2)
    at n.fn.init.n.fn.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,farbtastic&ver=4.7.3:2)
    at a.fn.init.n.fn.init (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,farbtastic&ver=4.7.3:2)
    at a.fn.init (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,farbtastic&ver=4.7.3:9)
    at n (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,farbtastic&ver=4.7.3:2)
    at newsbox.js?wp-mce-4403-20160901:23
    at newsbox.js?wp-mce-4403-20160901:367

Even though mon_url does not exist anymore.. what do I do? This error appears while I am trying to add a new post. I am developing this theme locally using WAMP.

</div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来
    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动
    • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
    • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
    • ¥15 用windows做服务的同志有吗
    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法