我的网站不会加载谷歌嵌入地图

时间:2015-04-17 09:06:27

标签: wordpress google-maps

我在控制台中收到以下消息。这是一个wordpress网站。当我在同一主机上的另一个域中拥有该站点时显示此映射。它在任何浏览器中都不起作用,而不仅仅是chrome。这是代码:

Failed to load resource: the server responded with a status of 404 (Not Found)
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:42 cS: logger: Array[1] : undefined
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:42 cS: logger: Array[1] : undefined
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:42 cS: logger: Array[1] : document ready
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:42 cS: logger: Array[1] : running callback
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:42 cS: logger: Array[1] : undefined
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:42 cS: logger: Array[1] : firing tab complete
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/contentScript.js:80 cS: sending TAB_COMPLETE
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:42 cS: logger: Array[1] : undefined
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:42 cS: logger: Array[1] : undefined
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:42 cS: logger: Array[1] : document ready
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:42 cS: logger: Array[1] : running callback
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:42 cS: logger: Array[1] : undefined
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:42 cS: logger: Array[1] : firing tab complete
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/contentScript.js:80 cS: sending TAB_COMPLETE
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/js/scriptInjector.js:193 sI: inside WIDGET_CONTENT_MESSAGE message listener: MessageEvent
chrome-extension://cifndhjjchjamcecpjhpggeaacihcjnl/js/scriptInjector.js:194 MessageEvent
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/js/scriptInjector.js:193 sI: inside WIDGET_CONTENT_MESSAGE message listener: MessageEvent
chrome-extension://gafhhbahpojnjfhpepjjfjojbphnogmn/js/scriptInjector.js:194 MessageEvent
contentScript.js:234 cs: onRequestListener(Arguments[3])
contentScript.js:234 cs: onRequestListener(Arguments[3])

这是该网站。该地图应显示在联系我们页面my site

1 个答案:

答案 0 :(得分:2)

我看到你有一些像这样的代码

<span <iframe="" src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d1203.5916684263602!2d-1.460736!3d52.891122!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x48798c70cf2a2d8f%3A0x193e5babe5839de!2sDerby+Skillbuild!5e0!3m2!1sen!2suk!4v1426363000948" width="400" height="400" frameborder="0" style="border:0">
...
</span>

应该只是

<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d1203.5916684263602!2d-1.460736!3d52.891122!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x48798c70cf2a2d8f%3A0x193e5babe5839de!2sDerby+Skillbuild!5e0!3m2!1sen!2suk!4v1426363000948" width="400" height="400" frameborder="0" style="border:0"></iframe>

enter image description here