Event Calendar Pro: Photo view events not showing

Home Forums Calendar Products Events Calendar PRO Event Calendar Pro: Photo view events not showing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1019057
    Rob
    Participant

    Our photo view now doesn’t show the events. The page renders, and the content is in the page, but isn’t visible. It briefly flashes during a page load but then disappears. Map view also does not load the map. The other views all work fine. There is an error in the javascript console on all the views:

    InvalidValueError: not an Object
    (anonymous function)js:37:592
    Mjs:41:1040
    (anonymous function)tribe-events-ajax-maps.min.js:1:3298
    jjquery.js:1:27314
    fireWithjquery.js:1:28123
    readyjquery.js:1:29967
    Jjquery.js:1:30327

    That line number changes though; the referenced code is this:

    center: new google.maps.LatLng(TribeEventsPro.geocenter.max_lat, TribeEventsPro.geocenter.max_lng),

    For which in the console TribeEventsPro.geocenter is present, but the max_lat and max_lng values are null, which seem to work their way into the google maps api until they throw the exception:

    > TribeEventsPro.geocenter
    < {max_lat: null, max_lng: null, min_lat: null, min_lng: null} = $1

    Just upgraded to 3.12.4 which I think is what broke things (from something in the 3.11 series, I didn’t capture exactly which, 3.11.1 maybe). It was definitely working before, and certainly the upgrade seems like the likely culprit. We have a pretty stock set up, with a default theme and no other plugins active on this particular blog.

    #1019143
    Brian
    Member

    Hi,

    Sorry for the issues here.

    We think we have found the problem and it is due to a change in the Google Maps API.

    Please add the following snippet to your theme’s functions.php:

    /**
    * Null values in the geoloc estimates can cause breakages with the
    * current Google Maps scripts; this helps to ensure that is avoided
    * by effectively casting nulls to zeroes.
    *
    * @param array $geocords
    *
    * @return array
    */
    function temp_fix_geocoords_breakage( $geocords ) {
    return array_map( 'floatval', $geocords );
    }
    add_filter( 'transient_geoloc_center_point_estimation', 'temp_fix_geocoords_breakage' );

    Let me know if that fixes the issue until we can get a release out.

    Thanks

    #1019313
    dion
    Participant

    This reply is private.

    #1019318
    dion
    Participant

    This reply is private.

    #1019517
    Brian
    Member

    Hi dion,

    Thanks for posting here. I can certainly help you here, but we can help you better if you create your own topic in the forum, where we can interact with you one on one. Also, we encourage you to post on your own topic because every time we post it will email the author of the topic.

    Having said, it sounds like you adding the coding after a closing php tag:

    ?>

    And now there is blank spaces after it still and that is causing the issue.

    There should either be no closing tag or no spaces or lines after it.

    See if you can clean that up and it fixes the issue. If not please post in a new topic so we can help you there, but if you like you can still post what you find here.

    Thanks

    #1019529
    Rob
    Participant

    Thanks, this fixed it for me.

    #1019558
    Brian
    Member

    Sounds good.

    Also, we released a patch for this issue just minutes ago in Events Calendar PRO 3.12.5. Please check it out and feel free to hit us back up if you come across any other issues.

    Thanks for reporting this and for your patience while we worked on it!

    #1075221
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Event Calendar Pro: Photo view events not showing’ is closed to new replies.