wpDiscuz submit comment issue




Wordpress LScache Plugin: wpDiscuz submit comment issue

Last Updated on: Wed, 15 Apr 2026 00:00:02
When submitting a comment with wpDiscuz I get an error in the console. /wp-content/plugins/wpdiscuz/utils/ajax/wpdiscuz-ajax.php [HTTP/3 500 Internal Server Error 279ms] Internal Server Error wpdiscuz.js:658:13 The comment is submitted but there is no confirmation and the comment form isnt refreshed to show the new comment. Im using Litespeed Cache 4.3, after disabling the plugin the form works like normal again. Report number NWPJNLBW When did you have the report generated? It indicates youre still using V3.6.4 of our plugin. Sorry, the right report number is NYJZXSHP Thank you for the right report. Its hard to tell you exactly what to do to fix the issue without the ability to reproduce it and play around with the settings to see which way works. Why dont you try turning off Object Cache and see if it works. Please remember to do Purge All after any change in the settings. I understand, Ive tried a bunch of things myself but so far no luck. Turning object cache off didnt make a difference either. Additionally, I have set Administrator to Do Not Cache Roles and get served a non-cached page. It says The problem still occurs. When I fully deactivate the Litespeed Cache plugin, the comment shows right away after pressing the submit button. if page is uncached and you still have issue , then it may not be the cache related, but something else please try , go to toolbox -> import/export , export your current setting if needed , then reset to default , purge all , see how it goes by then Reset to default and purge made no difference. I shouldve checked this first, but I found the errorlog at /wp-content/plugins/wpdiscuz/utils/ajax/ has this: [24-Aug-2021 07:11:47 UTC] PHP Fatal error: Uncaught Error: Non-static method LiteSpeed Purge::purge_url() cannot be called statically in /home/rekkerd/public_html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelperOptimization.php:183 Its in this piece of code: public function cleanPostCache($postId) if (apply_filters( wpdiscuz_manage_post_cache_clearing , true)) clean_post_cache($postId) if (class_exists( LiteSpeed Purge )) LiteSpeed Purge::purge_url(get_the_permalink($postId)) I can replace the purge line with do_action( litespeed_purge_post, post_id ) to get it to work again. I guess I should check with wpdiscuz if they need to update their code to work with Litespeed Cache 4.2? @ronnieee Ive nothing but problems with wpdiscuz. I recommend to you try this one: https://br.wordpress.org/plugins/disqus-conditional-load/ Works well with Litespeed and its much better to pagespeed? please change if (class_exists( LiteSpeed Purge )) LiteSpeed Purge::purge_url(get_the_permalink($postId)) to if ( defined( LSCWP_V ) ) do_action( litespeed_purge_post, $postId ) Thanks, would that also work for the pre version 4 Litespeed Cache, or does that require the code wpdiscuz currently uses? Hi, if you meant for v3.6.4 , yes , it works with it as well. Best regards, Ive notified wpdiscuz and they will make changes to their code to fix the issue. Thanks again for your help!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference