"load more" link does not work – ajax problem

Posted in: Newspaper
Post count: 44

Hi,
I noticed that on my website https://www.ciscozine.com/ if I click the link “Load More” nothing happen.
The only solution to avoid this behaviour is delete cache, but after few days the problem appears again.

How can I resolve it?
Thanks
Fabio

Post count: 35449

Hi,

Usually this issue is related to a firewall or security module which blocks admin-ajax.php request. Please verify the console for error while saving the settings on the Theme Panel, usually it displays a 403 or 404 error.
If you don’t use a security plugin, please ask your host about this, maybe you have a security module which blocks this.
If you use a plugin like Wordfence please set it in learning mode.

Please make sure that all the settings are like in our requirements, please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.

Make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv plugins, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.

Let me know the results!
Thank you!

Post count: 44

Hi,
I don’t use security plugin and no application firewall on my server.
If I clear or disable wp-super-cache all works fine.

Thanks
fabio

Post count: 35449

Hi,

WP Super Cache need to be set exactly as in our guide from here -> https://forum.tagdiv.com/cache-plugin-install-and-configure/

Let me know if there are still some problems.
Thank you!

Post count: 44

Yes,
I confirm that the plugin is correctly configured.
As you noticed now, after deleting the cache, the problem does not appear.

It cannot be a server problem because I recently changed the server and the problem still persist.
Thanks
Fabio

Post count: 35449

Hi,

As I can see this is from admin ajax -> https://i.imgur.com/Msb59US.png
Usually this issue is related to a firewall or security module which blocks admin-ajax.php request. Please verify the console for error while saving the settings on the Theme Panel, usually it displays a 403 or 404 error.
If you don’t use a security plugin, please ask your host about this, maybe you have a security module which blocks this.
If you use a plugin like Wordfence please set it in learning mode.

If you want, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel. We will take a look. Include a link to this topic in the email.

Thank you!

Post count: 6

I have same problem here:

http://seerural.org/

Please check?

Vladimir

Post count: 44

Hi Calin,
I think I have found the source of the problem (I hope..): It’s the nounce:

https://wordpress.org/support/topic/cause-admin-ajax-php-403-forbidden/

“Can’t be 100% certain, but this is probably rather a problem with page caching (wp super cache); typically admin-ajax.php requests use a “nonce”, a semi-random string which is generated and added to the page. When the ajax gets triggered it sends that “nonce” (together with the data it tries to post) to the server where the nonce gets checked. Now the problem; a WordPress nonce has a limited validity, typically (but not always) 4h. If the “nonce” does not check out, the request is refused, which is what you’re observing.

The solution; lower “Cache Timeout” on WP Super Cache’s “Advanced” tab. The default there is 3600s (= 1h), so either you have a (much) higher value there OR you have a plugin which has a _very_ short nonce lifetime.

Hope this clarifies/ helps,”

Tell me what you think

thanks
fabio

Post count: 35449

Hi,
If you are using WP Super cache make sure that you set it as in our guide from here https://forum.tagdiv.com/cache-plugin-install-and-configure/ -> https://i.imgur.com/JqthOfB.png
This should fix the problem for “Cache Timeout”.

Thank you!

Post count: 44

If I set the cache timeout to 0, there is no garbage collection and in my case it generates the problem.
As I read on several posts on wordpress forum, the suggestion is to set it to 4 or 6 hours.

In my case I fix it!
Cheers

Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.