Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1053392

    Hello,

    we have a problem with the “Load More” on smartphones on our sites.

    If you press “Load More” (Masonry) on the smartphone, nothing happens or it takes 20 seconds before the following items are loaded.

    The problem is with iPhone and Android.

    Everything works as it should on the PC.

    thank you for your help

    #1053918

    Hey Florian,

    Thank you for using Enfold.

    The button is not working because the admin-ajax.php file is blocked or the access to it is forbidden.

    /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
    jquery.js?ver=1.12.4:4 POST https://phototravellers.de/wp-admin/admin-ajax.php 403 (Forbidden)
    

    Please disable the plugins temporarily and ask your hosting provider if the mod-sec rule is blacklisting the said file.

    Best regards,
    Ismael

    #1054128

    Hi Ismael,

    I have send the provider a request: There is no lock.

    We found out something else:

    The problem occurs on all devices, smartphone and PC.

    Only if I am logged in as Admin, everything works as it should.

    best regards
    Florian

    • This reply was modified 5 years, 10 months ago by flocco21.
    #1055024

    Hi,

    Have you installed any security or Caching plugins such as Wordfence or WP Super Cache?

    One of the plugins is causing an issue with the ajax file.

    To find which plugin is causing the conflict please follow these steps:

    1. Go to your plugins page > Deactivate all active Plugins
    2. Update WordPress and Enfold to the latest version if you have not.
    3. Make sure all the plugins are updated.
    4. If the problem does not persist when plugins are turned off, activate one plugin at a time and refresh until you find the plugin in conflict.

    We await the results of your plugin compatibility test.

    Thanks for your cooperation :)

    Best regards,
    Vinay

    #1055316

    Hi Vinay,
    we use Borlabs Cache. This is also the plugin that generates the problem.

    What can we do?

    I think we need a cache plugin. Do we need to change something in the settings or do we need another plugin? Do you have any advice?

    best regards
    Florian

    #1055842

    Hi Florian,

    Does your caching plugin have an option to exclude files? If so then please select to exclude jquery.js.

    Best regards,
    Rikard

    #1055867

    Hi Rikard,

    I’m not sure, please have a look at the screenshot of the Cache-Settings

    best regards
    Florian

    #1055892

    Hi Rikard,

    Borlabs writes:

    Excluding JS files is not possible and should not be necessary, because if a merge error occurs, 99% of the time it means that the JavaScript already contained an error somewhere before.

    It would also be important to clarify whether “nonces” are in use, they can not be cached.

    Do you have any idea?

    Best regards
    Florian

    • This reply was modified 5 years, 10 months ago by flocco21.
    #1055902

    Borlabs writes:

    yes, that is because there is a query that is no longer valid. There is usually a nonce in the game, such pages can not be cached or only with very short cache life, which makes caching practically unnecessary. Nothing can be done on my site, sorry.

    #1056163

    So,

    I changed the Cache-Plugin from Borlads to WP Rocket. That works! :)

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