Home › Forums › Calendar Products › Events Calendar PRO › Event Calendar Pro: Photo view events not showing
- This topic has 7 replies, 4 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
October 27, 2015 at 1:46 pm #1019057
Rob
ParticipantOur 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:30327That 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} = $1Just 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.
October 27, 2015 at 6:36 pm #1019143Brian
MemberHi,
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
October 28, 2015 at 7:42 am #1019313dion
ParticipantThis reply is private.
October 28, 2015 at 7:49 am #1019318dion
ParticipantThis reply is private.
October 28, 2015 at 1:13 pm #1019517Brian
MemberHi 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
October 28, 2015 at 1:43 pm #1019529Rob
ParticipantThanks, this fixed it for me.
October 28, 2015 at 2:22 pm #1019558Brian
MemberSounds 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!
February 18, 2016 at 8:29 am #1075221Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Event Calendar Pro: Photo view events not showing’ is closed to new replies.
