Uncaught InvalidValueError: not an Object

Home Forums Calendar Products Events Calendar PRO Uncaught InvalidValueError: not an Object

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1019065
    Russell
    Participant

    Getting 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

    #1019123
    Russell
    Participant

    It 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: “};

    #1019140
    Brian
    Member

    Hi,

    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

    #1019440
    Christopher
    Participant

    Thanks for this post. We had this issue as well.

    #1019514
    Brian
    Member

    Glad 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

    #1019531
    Geoff
    Member

    Hey 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Uncaught InvalidValueError: not an Object’ is closed to new replies.