Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1321449
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this questionI need Sentry to track errors in my project code, the unofficial plugin for wordpress seems to be useless. How should I fix it?
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this questionI need Sentry to track errors in my project code, the unofficial plugin for wordpress seems to be useless. How should I fix it?
Share Improve this question edited Sep 26, 2020 at 9:43 Asaf M asked Jul 27, 2020 at 19:41 Asaf MAsaf M 1427 bronze badges 1- 3rd party plugin support is offtopic, you should contact the plugin authors to fix/add JS support, or, consult Sentry docs on how to add it – Tom J Nowell ♦ Commented Jul 27, 2020 at 20:03
1 Answer
Reset to default 3For php I used this guide: https://cloudpresshosting.co.uk/blog/reporting-wordpress-errors-to-sentry
For JS, I found out I can take the code of the bundle and the initialization and put in the header, using "add scripts to header and footer" plugin. https://wordpress/plugins/header-and-footer-scripts It took me time to notice I can't put the initialization within the bundle import. Got something like this:
<script
src="https://browser.sentry-cdn/5.20.1/bundle.min.js"
integrity="sha384-O8HdAJg1h8RARFowXd2J/r5fIWuinSBtjhwQoPesfVILeXzGpJxvyY/77OaPPXUo"
crossorigin="anonymous">
</script>
<script>
Sentry.init({ dsn: 'https://unique@unique' });
</script>
本文标签: pluginsHow to implement Sentry on Wordpress
版权声明:本文标题:plugins - How to implement Sentry on Wordpress? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742100093a2420763.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论