Okay
  Public Ticket #3233480
Google Maps API not working
Closed

Comments

  • redfrog22 started the conversation

    Google Maps API not working - throws up a bunch of Javascript errors:


    Loading the Google Maps JavaScript API without a callback is not supported: https://developers.google.com/maps/documentation/javascript/url-params#required_parameters js:207:316
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true. (Reason: CORS request did not succeed). Status code: (null).

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://psa.rejuvenate.it/api/chatprofile/bc60059e-8e68-4694-8d4f-4137b238a93b?key=4cfaa0f2-8915-4461-91ab-7df9366cc0ad&check_available=true. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 405.

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://psa.rejuvenate.it/api/chatprofile/bc60059e-8e68-4694-8d4f-4137b238a93b?key=4cfaa0f2-8915-4461-91ab-7df9366cc0ad&check_available=true. (Reason: CORS request did not succeed). Status code: (null).

    TypeError: NetworkError when attempting to fetch resource. index.js:9:165453


    Google Maps JavaScript API error: ApiNotActivatedMapError
    https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error

  •  897
  • Herr-Knobel replied

    Same problem here. 

    Using own API-Key

    #### Console ####

    JQMIGRATE: Migrate is installed, version 3.4.0
    jquery.min.js?ver=3.6.3:2

     jQuery.Deferred exception: google is not defined ReferenceError: google is not defined

        at buildMap (###/themes/cesis/js/cesis_custom.js?ver=6.2:420:25)
        at HTMLDivElement. (###/themes/cesis/js/cesis_custom.js?ver=6.2:495:15)
        at HTMLDivElement. (###/a524befefb716a3cdc0d39fb9f206884.js?ver=ba4c5d5f206f571c16ef587f307bc704:1:1223)
        at Function.each (###/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:3003)
        at t.each (###/a524befefb716a3cdc0d39fb9f206884.js?ver=ba4c5d5f206f571c16ef587f307bc704:1:1088)
        at e..each (###/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:1481)
        at window.cesis_gmaps (###/themes/cesis/js/cesis_custom.js?ver=6.2:488:30)
        at HTMLDocument. (###/themes/cesis/js/cesis_custom.js?ver=6.2:33:5)
        at e (###/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:30158)
        at t (###/wp-includes/js/jquery/jquery.min.js?ver=3.6.3:2:30460) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.3:2
    t @ jquery.min.js?ver=3.6.3:2
    setTimeout (async)
    (anonym) @ jquery.min.js?ver=3.6.3:2
    c @ jquery.min.js?ver=3.6.3:2
    fireWith @ jquery.min.js?ver=3.6.3:2
    fire @ jquery.min.js?ver=3.6.3:2
    c @ jquery.min.js?ver=3.6.3:2
    fireWith @ jquery.min.js?ver=3.6.3:2
    ready @ jquery.min.js?ver=3.6.3:2
    $ @ jquery.min.js?ver=3.6.3:2
    jquery.min.js?ver=3.6.3:2 

    Uncaught ReferenceError: google is not defined
        at buildMap (cesis_custom.js?ver=6.2:420:25)
        at HTMLDivElement.<anonymous> (cesis_custom.js?ver=6.2:495:15)
        at HTMLDivElement.<anonymous> (hijackJQueryEach.tsx:37:21)
        at Function.each (jquery.min.js?ver=3.6.3:2:3003)
        at t.each (hijackJQueryEach.tsx:31:50)
        at e.<computed>.each (jquery.min.js?ver=3.6.3:2:1481)
        at window.cesis_gmaps (cesis_custom.js?ver=6.2:488:30)
        at HTMLDocument.<anonymous> (cesis_custom.js?ver=6.2:33:5)
        at e (jquery.min.js?ver=3.6.3:2:30158)
        at t (jquery.min.js?ver=3.6.3:2:30460)
    buildMap @ cesis_custom.js?ver=6.2:420
    (anonym) @ cesis_custom.js?ver=6.2:495
    (anonym) @ hijackJQueryEach.tsx:37
    each @ jquery.min.js?ver=3.6.3:2
    t.each @ hijackJQueryEach.tsx:31
    each @ jquery.min.js?ver=3.6.3:2
    window.cesis_gmaps @ cesis_custom.js?ver=6.2:488
    (anonym) @ cesis_custom.js?ver=6.2:33
    e @ jquery.min.js?ver=3.6.3:2
    t @ jquery.min.js?ver=3.6.3:2
    setTimeout (async)
    S.readyException @ jquery.min.js?ver=3.6.3:2
    (anonym) @ jquery.min.js?ver=3.6.3:2
    e @ jquery.min.js?ver=3.6.3:2
    t @ jquery.min.js?ver=3.6.3:2
    setTimeout (async)
    (anonym) @ jquery.min.js?ver=3.6.3:2
    c @ jquery.min.js?ver=3.6.3:2
    fireWith @ jquery.min.js?ver=3.6.3:2
    fire @ jquery.min.js?ver=3.6.3:2
    c @ jquery.min.js?ver=3.6.3:2
    fireWith @ jquery.min.js?ver=3.6.3:2
    t @ jquery.min.js?ver=3.6.3:2
    setTimeout (async)
    (anonym) @ jquery.min.js?ver=3.6.3:2
    c @ jquery.min.js?ver=3.6.3:2
    fireWith @ jquery.min.js?ver=3.6.3:2
    fire @ jquery.min.js?ver=3.6.3:2
    c @ jquery.min.js?ver=3.6.3:2
    fireWith @ jquery.min.js?ver=3.6.3:2
    ready @ jquery.min.js?ver=3.6.3:2
    $ @ jquery.min.js?ver=3.6.3:2
    js?key=####&ver=6.2:236 

    Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading

  •  897
    TheFox replied

    Hello,

    Are you using the latest version of the theme?

    Are you paying your google api, it isn't free anymore.

    Please create a new ticket and give us more information.

    Best regards