When did you have the report generated? It indicates you’re still using V3.6.4 of our plugin.
Sorry, the right report number is NYJZXSHP
Thank you for the right report. It’s 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 don’t 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, I’ve tried a bunch of things myself but so far no luck. Turning object cache off didn’t make a difference either.
Additionally, I have set Administrator to Do Not Cache Roles and get served a non-cached page. It says <!– Page uncached by LiteSpeed Cache 4.3 on 2021-08-23 23:31:05 –>
The problem still occurs. When I fully deactivate the Litespeed Cache plugin, the comment shows right away after pressing the submit button.
Plugin Support
qtwrk
(@qtwrk)
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 should’ve 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
It’s 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?
-
This reply was modified 4 years, 9 months ago by
ronnieee.
@ronnieee I’ve nothing but problems with wpdiscuz. I recommend to you try this one:
https://br.ww.wp.xz.cn/plugins/disqus-conditional-load/
Works well with Litespeed and its much better to pagespeed…
Plugin Support
qtwrk
(@qtwrk)
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?
Plugin Support
qtwrk
(@qtwrk)
Hi,
if you meant for v3.6.4 , yes , it works with it as well.
Best regards,
I’ve notified wpdiscuz and they will make changes to their code to fix the issue. Thanks again for your help!
-
This reply was modified 4 years, 9 months ago by
ronnieee.