Error When Clicking Any Location or Organization in Map

This topic contains 18 replies, has 5 voices, and was last updated by  Kiran 4 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #526201

    Greg Barr
    Full Member
    Post count: 182

    We’ve isolated WooCommerce as the root cause of the problem.

    With WooCommerce Activated:

    With WooCommerce Deactivated, no other changes, no clearing of caching, just deactivate WooCommmerce, that is it:

    #526281

    Greg Barr
    Full Member
    Post count: 182

    My developer friend figured out a fix. The error was being thrown by this function at the end of class-geodir-api.php

    if ( $errors !== true && ! empty( $_REQUEST['_wpnonce'] ) &&  ! empty( $_SERVER['REQUEST_URI'] ) && strpos( $_SERVER['REQUEST_URI'], '/wp-json/geodir/' ) !== false && strpos( $_SERVER['REQUEST_URI'], '/markers/' ) !== false && is_wp_error( $errors ) && $errors->get_error_code() == 'rest_cookie_invalid_nonce' ) {

    Simply commenting that out makes the map work fine for non-logged-in users even when WooCommerce is activated.

    #526557

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Greg,

    I know a similar issue was already fixed and will be released tomorrow, i will flag this for Kiran to confirm this is the same issue.

    Thanks,

    Stiofan

    #526686

    Kiran
    Moderator
    Post count: 7069

    Hi Greg,

    This has been fixed. Here is solution https://wpgeodirectory.com/support/topic/map-bubble-issue-2/#post-523155.

    I have applied solution on your site too. It will be included in next release.

    Kiran

Viewing 4 posts - 16 through 19 (of 19 total)

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

Open Support Ticket