Support » Plugin: Comments - wpDiscuz » wpdiscuz.min.js Uncaught TypeError: Cannot read property 'scrollHeight' of null

  • Resolved darrylyeo


    wpdiscuz.min.js is trying to access


    but fails because the element #wcThreadWrapper does not exist.

    1. Check to make sure it exists before continuing.
    2. Please don’t enqueue your scripts on pages where there are no comments.

    Do let me know when this gets resolved. In the meantime, is there anything I can do to avoid getting this error/not have the script run on this page in the first place?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi darrylyeo,
    Please follow these steps for now:
    1. please set default theme
    2. deactivate/activate all plugins which you have except wpDiscuz
    3. after deactivation/activation please check each time, whether you get that issue or not, as maybe you have plugin conflict.

    After those steps, if you still get the same issue, we need access data in order to check.


    I figured it out. I had just migrated my comments from an old site and the comment counts had not been updated. This caused wpDiscuz to wrongly think it needed to be run on some pages.

    Triggering a comment count update upon plugin activation would be a good feature in the future.

    Hi darrylyeo,
    We are happy that you found out the issue.
    We will take that into consideration.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wpdiscuz.min.js Uncaught TypeError: Cannot read property 'scrollHeight' of null’ is closed to new replies.