使用kallyas-child主题的WordPress错误

我管理基于WordPress 4.8.6建立的网站。它使用主题kallyas-child。

在渲染时会引发以下错误消息。

TypeError: $(...).parent(...).parent(...).parent(...).closest(...).parent(...).attr(...) is undefined [more info] zn_script_child.js:3:19
window.onload<https://www.domain.tld/wp-content/themes/kallyas-child/js/zn_script_child.js:3:19
<anonym>https://www.domain.tld/wp-content/themes/kallyas-child/js/zn_script_child.js:1:17

我不知道如何调试该错误消息。你知道该错误的原因吗?还是关于如何在WordPress中跟踪该错误的方法?

非常感谢。


#1


为了在wordpress中启用调试模式, 你可以使用全局变量’WP_DEBUG’:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG', false );

WP_DEBUG_LOG会将所有错误也保存到/ wp-content /目录中的debug.log日志文件中。

define( 'WP_DEBUG_LOG', true );

这是有关调试网站的WordPress文档的链接。

关于error-msg, 看起来在第3行中的../wp-content/themes/kallyas-child/js/zn_script_child.js中使用的属性是未定义的onLoad(加载窗口时)。我希望这可以帮助你找到问题/问题。

来源:

https://www.srcmini02.com/66116.html

微信公众号
手机浏览(小程序)
0
分享到:
没有账号? 忘记密码?