Home › Forums › Calendar Products › Events Calendar PRO › Uncaught InvalidValueError: not an Object
- This topic has 5 replies, 4 voices, and was last updated 10 years, 6 months ago by
Geoff.
-
AuthorPosts
-
October 27, 2015 at 2:04 pm #1019065
Russell
ParticipantGetting this error in the console on the http://websitereview.nz/mymt/events/ page. This error is stopping my mobile navigation menu from showing.
Mobile nav will show on every other page (including single event view). However, the month view http://websitereview.nz/mymt/events/ page it will not show.
Tried disabling plugins and different themes. Can not pin point the error.
Console info:
Uncaught InvalidValueError: not an Object(anonymous function) @ main.js:16M @ main.js:20(anonymous function) @ tribe-events-ajax-maps.min.js?ver=3.12.2:1m.Callbacks.j @ jquery.js?ver=1.11.3:2m.Callbacks.k.fireWith @ jquery.js?ver=1.11.3:2m.extend.ready @ jquery.js?ver=1.11.3:2J @ jquery.js?ver=1.11.3:2
Line 546:
throw yb(“not an Object”); // error on this line
October 27, 2015 at 5:33 pm #1019123Russell
ParticipantIt is now working. For some reason this line of code was setting the lat and lng values to null and causing the error:
var TribeEventsPro = {“geocenter”:”max_lat”:”-36.848460″,”max_lng”:”174.763332″,”min_lat”:”-36.848460″,”min_lng”:”174.763332″},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};
October 27, 2015 at 6:21 pm #1019140Brian
MemberHi,
Sorry again 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 11:19 am #1019440Christopher
ParticipantThanks for this post. We had this issue as well.
October 28, 2015 at 1:09 pm #1019514Brian
MemberGlad it helped.
I am going to close this ticket to new replies, but the issue is still open and we will update this ticket once we release a fix.
If you have any new questions or issues please create a new ticket and reference this one.
Thanks
October 28, 2015 at 1:45 pm #1019531Geoff
MemberHey there!
Just a heads up that 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!
Geoff
-
AuthorPosts
- The topic ‘Uncaught InvalidValueError: not an Object’ is closed to new replies.
