Support » Plugin: WP-Optimize - Cache, Clean, Compress. » wpDiscuz Comment JS not properly loading

  • Resolved Mikey_



    I’ve struggled with this for some time and it only happened once in a while, but I’ve gotten to the point where I’d like to fix this. The issue affects non-logged in users and sometimes logged in users too.

    This issue appears to ONLY occur on Desktop, not Mobile, browsers.

    From time to time, the “View Comments” button does not work, rendering the entire wpDiscuz plugin unusable until the Minify and Page Caches are purged in WPO and sometimes also “Purge Everything” on Cloudflare cache. Disabling WPO fixes the issue every time, and that tells me the problem is with WPO.

    In Browser debug, it shows the following errors before I excluded wpDiscuz:
    “WP-Optimize Minify: An error has occurred in the minified code. Original script: https://…/wp-content/plugins/wpdiscuz/assets/js/wpdiscuz.js. Error message: WpdEditor is not defined”

    I later excluded processing of JS and CSS for:

    … and turned off minify of JS/CSS within the wpDiscuz settings. The following message is shown in the browser debug:

    “Uncaught ReferenceError: WpdEditor is not defined at wpdiscuz.js:1 (anonymous) @ wpdiscuz.js:1”

    Disabling WPO plugin restores wpDiscuz functionality.

    What do I need to turn off/exclude to allow wpDiscuz to function without interference by WPO?

    Thank you for any pointers you can provide.

    • This topic was modified 1 year, 9 months ago by Mikey_.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • @mikeyuen The error “WpdEditor is not defined” is generated from wpDiscuz plugin, have you tried to contact wpDiscuz plugin authors and reported the issue to them?

    Thread Starter Mikey_


    @harshad Thank you for the pointer — I’ll reach out to them

    @mikeyuen You’re welcome! Let us know how it goes?

    Thread Starter Mikey_


    wpDiscuz suggested to exclude the entire plugin folder. So, what I have excluded:

    Cache > Advanced Settings > URLs:

    Minify > JS > Processing:

    Minify > CSS > Processing:

    I had previously also disabled Minification of JS and CSS files and have been letting Cloudflare handle that task.

    So far, it seems to work, and I’ll monitor for a week or so to see if I come across the issue again.

    I may remove the Caching and CSS Minify exclusions later to see if that helps speed up the site just a few more ms. My guess is that the issue only occurred with the minification of JS files

    • This reply was modified 1 year, 9 months ago by Mikey_.

    @mikeyuen Glad to hear the issue is now fixed, If you have any more questions, please feel free to write back to us.

    Have a nice day!

    Thread Starter Mikey_


    Update – So far, only this setting was needed:
    Minify > JavaScript > Exclude: /wp-content/plugins/wpdiscuz/

    I removed:
    – Cache > Advanced Settings > URLs: /wp-content/plugins/wpdiscuz/*
    – Minify > CSS > Processing:
    — /wp-content/plugins/wpdiscuz/themes/default/style.css
    — /wp-content/plugins/wpdiscuz/assets/css/wpdiscuz-combo.min.css

    @mikeyuen Thanks for sharing this and glad to hear its working now 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wpDiscuz Comment JS not properly loading’ is closed to new replies.