【发布时间】:2020-05-09 19:01:20
【问题描述】:
我在这里阅读了其他类似的问题,但我不是开发人员,所以我需要一个初学者(或真正的傻瓜)的答案来尝试修复我的小网站。
我收到此错误,这使我的目录站点无法在地图上加载列表(从而使站点无法运行):
JQMIGRATE: Migrate is installed, version 1.4.1
map-template.js?ver=1.0.0:669 Uncaught TypeError: Cannot read property 'toString' of undefined
at Object.<anonymous> (map-template.js?ver=1.0.0:669)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at HTMLSelectElement.<anonymous> (map-template.js?ver=1.0.0:668)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at Object.apply_meta_filter (map-template.js?ver=1.0.0:660)
at Object.filter (map-template.js?ver=1.0.0:556)
at Object.success (map-template.js?ver=1.0.0:195)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)
(anonymous) @ map-template.js?ver=1.0.0:669
each @ jquery.js?ver=1.12.4-wp:2
(anonymous) @ map-template.js?ver=1.0.0:668
each @ jquery.js?ver=1.12.4-wp:2
apply_meta_filter @ map-template.js?ver=1.0.0:660
filter @ map-template.js?ver=1.0.0:556
(anonymous) @ map-template.js?ver=1.0.0:195
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
x @ jquery.js?ver=1.12.4-wp:4
c @ jquery.js?ver=1.12.4-wp:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
n.<computed> @ jquery.js?ver=1.12.4-wp:4
getJSON @ jquery.js?ver=1.12.4-wp:4
init @ map-template.js?ver=1.0.0:182
(anonymous) @ map-template.js?ver=1.0.0:2029
(anonymous) @ map-template.js?ver=1.0.0:2282
我可以自己解决这个问题吗?
非常感谢您的帮助! 亲切的问候, 米拉
【问题讨论】:
-
请分享你的代码。如果我们看不到它,就无法为您提供帮助。
-
我如何分享我的代码?
-
分享,我的意思是复制粘贴。你有代码吗?或者您只是 wordpress 中的贡献者/管理员,甚至没有看过代码?
-
我只是一个 Wordpress 管理员。但是我可以找到并看到代码,只是不明白我在看什么。所以你想让我粘贴整个源代码? (对不起,你可能认为我很愚蠢......)
-
好的,没问题!只是这是一个针对开发人员的网站,而不是 wordpress 管理员,所以我很困惑。如果您可以只复制源代码的相关部分,例如 map-template.js 的内容,或者只是使用
.toString()的部分,那就太好了。我知道要知道哪些部分是相关的并不容易
标签: javascript jquery node.js wordpress