Ajax not working?

This topic contains 16 replies, has 5 voices, and was last updated by  Nigel Hancock 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #524519

    Nigel Hancock
    Expired Member
    Post count: 83

    I should say I’m not 100% certain this is a GeoDirectory issue but, having deactivated all other plugins, I thought I’d start here.

    If you visit the dev site I’m working on at https://alpha.bytheseasideguide.com/ and try changing the CPT selector to, say, “Restaurants & food” the ‘cog’ sits there spinning and never shows results. However, if you’re logged in as admin, it works fine. Console is reporting a 403 error with /wp-admin/admin-ajax.php.

    Any ideas please?

    #524531

    Kor
    Moderator
    Post count: 16516

    Hi Nigel Hancock,

    Thanks for your post. A “403 error with /wp-admin/admin-ajax.php.” error is usually related to ModSecurity from your server. Could you contact them and ask them to disable it and see if it helps? If not, share your Website WP admin access here in private reply and we’ll check this out for you asap!

    #524539

    Nigel Hancock
    Expired Member
    Post count: 83
    This reply has been marked as private.
    #524548

    Alex Rollin
    Moderator
    Post count: 27815

    The developers will take a look, thanks.

    #525330

    Nigel Hancock
    Expired Member
    Post count: 83

    Any update on this please, it’s becoming urgent.

    #525560

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    It seems to be failing the nonce authentication, i removed the line and it seems to work, this would lead me to believe it is a caching issue.

    Stiofan

    #525561

    Nigel Hancock
    Expired Member
    Post count: 83

    You’re right Stiofan, it is working now. What did you change exactly? I need to do the same on two other GD sites. Many thanks, by the way.

    #525933

    Nigel Hancock
    Expired Member
    Post count: 83
    This reply has been marked as private.
    #525955

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I removed the nonce check from the file, i belive this is a caching issue, we are looking at ways to prevent this if a user is caching longer then the nonce life span.

    Stiofan

    #525960

    Nigel Hancock
    Expired Member
    Post count: 83

    Which file did you remove it from Stiofan, is this something I can do on the other two sites suffering the same issue?

    #525978

    Kiran
    Moderator
    Post count: 7069

    Hi Nigel,

    Temporary fix is applied in file \wp-content\plugins\geodirectory\includes\class-geodir-ajax.php

    We are working to fix this permanently.

    Kiran

    #525988

    Nigel Hancock
    Expired Member
    Post count: 83

    Sorry to labour the point but the file class-geodir-ajax.php is

      identical

    on the site which Stiofan fixed and the site which still has the problem?

    #525991

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #525993

    Nigel Hancock
    Expired Member
    Post count: 83

    Odd that file compare didn’t pick that up but, hey, sorted now and thanks for your help.

    #527993

    Nigel Hancock
    Expired Member
    Post count: 83

    Just updated to core 2.0.0.75 (and all add-ons) and this issue has not been fixed.

Viewing 15 posts - 1 through 15 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount