Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: #97

Open
tannermann opened this issue Mar 6, 2021 · 0 comments
Open

Uncaught TypeError: #97

tannermann opened this issue Mar 6, 2021 · 0 comments

Comments

@tannermann
Copy link

Describe the bug

On pages without a #disqus_thread element, a console error appears:

Uncaught TypeError: Cannot read property 'appendChild' of null at k (embed.js:45) at Object.l [as isSerif] (embed.js:45) at h.i.toJSON (embed.js:45) at Object.c.loadEmbed [as _loadEmbed] (embed.js:47) at embed.js:47

To Reproduce

Steps to reproduce the behavior:

  1. Visit any page on this site without a #disqus_thread element: https://www.specialolympicswisconsin.org/
  2. Here is a page with a disqus thread where the error does not occur: https://www.specialolympicswisconsin.org/marquette-dental-students-video-makes-athletes-more-comfortable-at-the-dentist/

Expected behavior

A TypeError should not occur on pages without a disqus thread ID

Screenshots

https://www.dropbox.com/s/9stm55ywaunkw4y/thadd-11.png?raw=1

Specifications:

  • Wordpress version: 5.6.2
  • Plugin version: 3.0.21

Additional context

https://wordpress.org/support/topic/new-update-error-on-console/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant