This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!
- This topic has 39 replies, 3 voices, and was last updated 9 mo, 3 w by
rfischmann.
- AuthorPosts
- July 8, 2019 at 2:12 am #16546
I have no idea why, but the “More” button on the bottom of our homepage sometimes works, sometimes it simply doesn’t. It shows the spinning GIF, but nothing loads.
Any idea why?
Thanks.
- July 8, 2019 at 11:42 am #16550
Just noticed this is happening to megamenus as well, maybe it’s related to Ajax support? I’ve recorded a quick video: https://d.pr/v/iCJxBj
- July 8, 2019 at 6:44 pm #16592
Hey there, You must be logged in to view this reply!
- July 8, 2019 at 11:10 pm #16614
It seems like the conflict is with WP Rocket, our caching plugin.
I’ve opened a ticket with them, but if you could also test it on your side…
- July 9, 2019 at 5:57 pm #16642
Hey there, You must be logged in to view this reply!
- July 9, 2019 at 6:03 pm #16647
It’s very weird. Following their advice, I’ve disabled all WP Rocket’s built-in optimization/caching features and it still doesn’t work fine — only if I really deactivate the whole plugin.
- July 13, 2019 at 12:58 pm #16702
(I’ve posted a reply here, yet another one sent to spam. Please approve it.)
- July 15, 2019 at 8:29 am #16701
I’ve been working with the WP Rocket guys, but we still haven’t found the cause of the issue.
I found this possible related error log:
[12-Jul-2019 14:34:06 UTC] Database error from WordPress Deadlock found when trying to get lock; try restarting transaction para a consulta DELETE FROM
wp_options
WHEREoption_name
= ‘_transient_newsbeat_child_dynamic_css_vars’ feita por require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/newsbeat-child/404.php’), get_header, locate_template, load_template, require_once(‘/themes/newsbeat/header-404.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, wpthmsNewsbeat\Addon\AnimationsAndEffects\Plugin->wp_enqueue_script, wpthmsNewsbeat\Addon\AnimationsAndEffects\Plugin::style, newsbeat__get_css_vars, delete_transient, delete_optionAnd they last replied this:
I’ve checked what request is being sent through ‘Load more’ button, please take a look at it:
https://jmp.sh/WlmdTdX
https://jmp.sh/P0cMuEeI believe that security and nonce might be the problem. For example, the security value changes each hour, and it needs to be correct in order to proceed with this request. Imagine that your page is cached for 2 hours and site is sending request with outdated security value. It could respond with that kind of error.
I would definitely ask the author of this load more script about that value and compatibility with full page cache solutions. For testing purposes, I’d decrease Cache Lifetime (in the Cache section) to 1 hour and see if it helped. If so, extend it to 2 or 3 hours, check and so on.
Please let me know if that makes sense to you.
I’ve since set WP Rocket’s cache to last 1 hour, but the issue is ongoing and intermittent.
- July 15, 2019 at 8:36 am #16735
Hey there, You must be logged in to view this reply!
- July 15, 2019 at 12:39 pm #16757
That’s, will try that. Setting it for a week is bad for security?
- July 16, 2019 at 3:00 am #16766
Well it hasn’t solved the issue yet, and the worst part is that it’s very intermittent. It’s not working for me right now, it might work again in 5 minutes.
I’m not even sure WP Rocket has anything to do with it, at all…
- July 16, 2019 at 8:25 am #16809
Hey there, You must be logged in to view this reply!
- July 16, 2019 at 12:42 pm #16825
But I’ve changed it to last a whole week and cleared the whole site’s cache… if that didn’t fix the issue, then it’s not the nonces. Right?
- July 16, 2019 at 7:51 pm #16836
Hey there, You must be logged in to view this reply!
- July 16, 2019 at 9:40 pm #16844
It doesn’t make any sense to cache dynamic pages for so long. I currently have it set for 1 hour.
Why would a new page cache conflict with nonces? Shouldn’t it use the current generated nonce?
- July 17, 2019 at 3:46 am #16857
Hey there, You must be logged in to view this reply!
- July 17, 2019 at 11:42 am #16865
That’s why I set the cache to only last an hour, that way we know it’s not using an old nonce.
- July 19, 2019 at 12:42 pm #16942
This is still not working as it should, it’s driving me mad.
Do all Ajax requests need that nonce code? Do you really think that’s the issue here?
- July 22, 2019 at 9:09 pm #16968
Hey there, You must be logged in to view this reply!
- July 22, 2019 at 9:37 pm #16976
Understood. I just don’t think the issue with WP Rocket might be related to that, then…
- July 25, 2019 at 7:44 pm #17016
So I thought the other issue we had with the Insert Post Ads plugin might have been related to this one, but it is not.
I’ve just turned off WP Rocket again so Ajax requests can work.
- February 19, 2020 at 9:57 am #18042
This is still an issue for me.
- February 22, 2020 at 8:17 am #18047
Hey there, You must be logged in to view this reply!
- February 22, 2020 at 10:54 am #18052
Here’s the Console error when I click to load more: https://d.pr/i/uCtYua
- March 3, 2020 at 11:20 pm #18065
Does that help, Jacob?
- March 5, 2020 at 9:12 am #18069
Hey there, You must be logged in to view this reply!
- March 5, 2020 at 10:22 am #18070
I’m sorry but that reply didn’t help much, Jacob. Why would my server block an AJAX request? And why would it work if I refresh the page a few times and try it again? If the server is indeed blocking it, how do I fix it? Is it an issue with my server or with the theme’s code?
- March 6, 2020 at 10:54 am #18080
Hey there, You must be logged in to view this reply!
- March 6, 2020 at 12:30 pm #18081
Still doesn’t help fix the issue. Should we increase that nonce expiration? Is that possible? If so, how do I do that?
- March 13, 2020 at 12:08 pm #18099
It simply doesn’t work for me 90% of the times.
- March 15, 2020 at 7:55 am #18102
Hey there, You must be logged in to view this reply!
- March 15, 2020 at 10:51 am #18105
I really don’t think WP Rocket is the issue here, I have its cache lifespan set to only 4 hours as they recommend there.
- March 17, 2020 at 7:28 pm #18107
Try to disable html minification
- This reply was modified 10 mo by
Kashmirmonitor.
- This reply was modified 10 mo by
Kashmirmonitor.
- This reply was modified 10 mo by
- March 17, 2020 at 11:16 pm #18109
On my first try after disabling HTML minification, it already didn’t work. So it’s not that either.
- March 23, 2020 at 4:20 am #18136
Hey there, You must be logged in to view this reply!
- March 23, 2020 at 10:27 am #18137
I don’t see any new errors in WordPress’ log when clicking the “load more” button.
And yes Jacob, it didn’t work on my normal window but it did in incognito mode. I just don’t understand what does that mean; can I fix it in all cases?
- March 23, 2020 at 8:45 pm #18141
Hey there, You must be logged in to view this reply!
- March 23, 2020 at 10:23 pm #18144
I don’t think it has to do with the browser’s cache either, Jacob, as I usually refresh the page holding Shift + Option to make sure the cache is cleared.
What I’m thinking now is that our site is externally cached by a proxy server, and as I’m always logged to our WordPress Admin, maybe my security nonce will always be different than the site’s public/cached one? Does that make any sense?
- March 29, 2020 at 2:21 am #18170
Hey there, You must be logged in to view this reply!
- March 29, 2020 at 2:52 pm #18172
I’ve searched for issues related to that and it still seems to be related to WordPress’ security nonces. I’ve decreased WP Rocket’s cache lifetime from 8 to just 1 hour now, let’s see how it goes.
- AuthorPosts
- You must be logged in to reply to this topic.
This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!