WPIntell

Source evidence

Error can not verify server

Calculate Prices based on Distance For WooCommerce · support · 2025-06-08T22:09:00+00:00

mixedsentiment
highseverity
0.95relevance
10replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
LogoLogics resolved
Hi, I created the API key and inserted it in your plugins settings. I have enabled the necessary API’s , but get this error when trying to enable the Distance matrix api: Failed to load.Send feedbackRetryThere was an error while loading /apis/library/distancematrix-backend.googleapis.com?inv=1&invt=AbzmgA&project=shaped-crossbar-462122-i1&folder=&organizationId= . Please try again. There is also this error: Maps JavaScript API: ⚠️ Cannot verify from server. Please check your checkout page. If the map shows, it means the API is working correctly. The map is showing correctly on the checkout page: https://de-mobiele-bbq.nl/test/mijn-account/afrekenen/ but there is no calculation for shipping fee per km. The free trial is active, billing is set. In Woocommerce settings is set to Geolocate Restriction is set to website: https://de-mobiele-bbq.nl/test https://de-mobiele-bbq.nl I have been searching the internet, watching tutorials, but can not get it to work. The API seems to be working, because the map is showing, but no idea why it cannot verify from server? Please help me get this to work. Thanks, Annie The page I need help with: [ log in to see the link] Hi, Is it possibe to get some help, please? Hi! please remove the restriction of website and allow all from google cloud. It should work. I don’t know but for some it works but for some it doesn’t you have to contact google for that @ammarahmad786 , Thanks for your help. I removed all restrictions and it calculates and shows the map on checkout now. In settings of the plugins it still says: Maps JavaScript API: ⚠️ Cannot verify from server. Please check your checkout page. If the map shows, it means the API is working correctly. Is that nothing to be worried about? I also get this warning in dashboard: WordPress Calculate Prices based on Distance For WooCommerce Plugin <= 1.3.5 is vulnerable to Broken Access Control. Is this something that will be fixed? Should it not be restricted, so that my client does not get sudden high billing because some other website is using it? I also had contact with Google Cloud Support, here what they said: Please note that I have taken a look at your project and I have noticed that your implementation makes 2 types of requests, client-side requests and server-side requests, and you only have one API key. Please note that if you are making multiple types of requests, you need to separate the usage by API keys. In your case, you need 2 API keys one restricted by websites (which you have) and another one restricted to IP addresses. As a recommendation, please create another API key and restrict it by IP addresses. Another thing I have noticed is that in your API key, you have many URLs restricted, but they are incorrectly restricted, please add the following links below to your restrictions: https://de-mobiele-bbq.nl https://*.de-mobiele-bbq.nl This reply was modified 1 year ago by LogoLogics . for this error Maps JavaScript API: Cannot verify from server. Please check your checkout page. If the map shows, it means the API is working correctly. IF Map is showing just ignore the error. and as i said remove the restriction and allow all so it should work Hi, Thanks, but we need to restrict and as soon as we restrict, it does no longer calculate. This is what I got back from Google Cloud Support: Hello, It seems the Distance Matrix API is being used internally within the plugin to calculate pricing based on distance. Since the Distance Matrix API is a server-side API, it should ideally work with IP address restrictions. However, you mentioned you’ve already tried this. Given that these errors fall outside our scope and the Distance Matrix API is being called by a third-party plugin, I recommend you contact the plugin’s support team. They’ll be able to provide more specific guidance and troubleshooting for their integration. Best regards, Juan Google Maps Platform Technical Support Is this something you are able to fix? Thanks, Annie This reply was modified 1 year ago by LogoLogics . Hi! So i’m not sure why they are saying “ It seems the Distance Matrix API is being used internally within the plugin to calculate pricing based on distance “ Because i’ve given also user the option to check wether all the required api’s are enable or not in admin side. Hi, This is the explanation I have got from support: Why the Restrictions Aren’t Working The Distance Rate Shipping plugin makes server-side requests to the Google Maps API (using WordPress’s wp_remote_get() function). This is an important distinction because: These API requests do not originate from your website’s domain Instead, they originate directly from your hosting server’s IP address . As a result: Domain restrictions (like restricting to de-mobiele-bbq.nl) won’t work, since the server is not sending referrer headers like a browser would. IP restrictions may work in theory, but only if your server consistently uses a static outbound IP, which is not always the case. What You Can Try You could still experiment with IP-based restrictions , using the following format: However, there are a few caveats: Many hosting providers use multiple or dynamic outbound IPs , which makes IP whitelisting unreliable. If your hosting provider uses load balancers or proxies , your requests may come from entirely different IPs at different times. Hope this makes sence to you? Thanks, Annie Hi, Thanks for your help. I am very happy to say that it is finally resolved, by not just using the usual IP address but the format IPv4 and IPv6. That did the trick! Maybe good to now, in case anyone else is having this problem. Take care, Annie Bohets Hi Annie! Great To hear that!! Would you mind share the details/steps please as i believe you’ve used Restrict IP address from google cloud and not website restriction.. Is it the static IP address that you’ve given or what? Hi, This setup finally works: *I replaced my real address with zero’s for security ;- The IPv4 and IPv6 addresses can be retrieved or can be requested from the hosting company. 000.000.00.00/00 ← Your server’s IPv4 address 0000:0000:0::000/000 ← Your server’s IPv6 address The static IP addres and the domain restrictions did not work. Restricting the API’s like: Distance Matrix API Routes API worked always, as long as I did not restrict the application itself. But now with the IPv4 and IPv6 I can restrict them both and all works just fine now. Thanks, Annie This reply was modified 1 year ago by LogoLogics .

Comments

10 shown
LogoLogics 2025-06-11T14:26:00+00:00

Hi, Is it possibe to get some help, please?

ammarahmad786 2025-06-11T15:44:00+00:00

Hi! please remove the restriction of website and allow all from google cloud. It should work. I don’t know but for some it works but for some it doesn’t you have to contact google for that

LogoLogics 2025-06-11T21:16:00+00:00

@ammarahmad786 , Thanks for your help. I removed all restrictions and it calculates and shows the map on checkout now. In settings of the plugins it still says: Maps JavaScript API: ⚠️ Cannot verify from server. Please check your checkout page. If the map shows, it means the API is working correctly. Is that nothing to be worried about? I also get this warning in dashboard: WordPress Calculate Prices based on Distance For WooCommerce Plugin <= 1.3.5 is vulnerable to Broken Access Control. Is this something that will be fixed? Should it not be restricted, so that my client does not get sudden high billing because some other website is using it? I also had contact with Google Cloud Support, here what they said: Please note that I have taken a look at your project and I have noticed that your implementation makes 2 types of requests, client-side requests and server-side requests, and you only have one API key. Please note that if you are making multiple types of requests, you need to separate the usage by API keys. In your case, you need 2 API keys one restricted by websites (which you have) and another one restricted to IP addresses. As a recommendation, please create another API key and restrict it by IP addresses. Another thing I have noticed is that in your API key, you have many URLs restricted, but they are incorrectly restricted, please add the following links below to your restrictions: https://de-mobiele-bbq.nl https://*.de-mobiele-bbq.nl This reply was modified 1 year ago by LogoLogics .

ammarahmad786 2025-06-12T01:38:00+00:00

for this error Maps JavaScript API: Cannot verify from server. Please check your checkout page. If the map shows, it means the API is working correctly. IF Map is showing just ignore the error. and as i said remove the restriction and allow all so it should work

LogoLogics 2025-06-13T09:27:00+00:00

Hi, Thanks, but we need to restrict and as soon as we restrict, it does no longer calculate. This is what I got back from Google Cloud Support: Hello, It seems the Distance Matrix API is being used internally within the plugin to calculate pricing based on distance. Since the Distance Matrix API is a server-side API, it should ideally work with IP address restrictions. However, you mentioned you’ve already tried this. Given that these errors fall outside our scope and the Distance Matrix API is being called by a third-party plugin, I recommend you contact the plugin’s support team. They’ll be able to provide more specific guidance and troubleshooting for their integration. Best regards, Juan Google Maps Platform Technical Support Is this something you are able to fix? Thanks, Annie This reply was modified 1 year ago by LogoLogics .

ammarahmad786 2025-06-22T10:07:00+00:00

Hi! So i’m not sure why they are saying “ It seems the Distance Matrix API is being used internally within the plugin to calculate pricing based on distance “ Because i’ve given also user the option to check wether all the required api’s are enable or not in admin side.

LogoLogics 2025-06-22T11:47:00+00:00

Hi, This is the explanation I have got from support: Why the Restrictions Aren’t Working The Distance Rate Shipping plugin makes server-side requests to the Google Maps API (using WordPress’s wp_remote_get() function). This is an important distinction because: These API requests do not originate from your website’s domain Instead, they originate directly from your hosting server’s IP address . As a result: Domain restrictions (like restricting to de-mobiele-bbq.nl) won’t work, since the server is not sending referrer headers like a browser would. IP restrictions may work in theory, but only if your server consistently uses a static outbound IP, which is not always the case. What You Can Try You could still experiment with IP-based restrictions , using the following format: However, there are a few caveats: Many hosting providers use multiple or dynamic outbound IPs , which makes IP whitelisting unreliable. If your hosting provider uses load balancers or proxies , your requests may come from entirely different IPs at different times. Hope this makes sence to you? Thanks, Annie

LogoLogics 2025-06-23T12:52:00+00:00

Hi, Thanks for your help. I am very happy to say that it is finally resolved, by not just using the usual IP address but the format IPv4 and IPv6. That did the trick! Maybe good to now, in case anyone else is having this problem. Take care, Annie Bohets

ammarahmad786 2025-06-25T01:34:00+00:00

Hi Annie! Great To hear that!! Would you mind share the details/steps please as i believe you’ve used Restrict IP address from google cloud and not website restriction.. Is it the static IP address that you’ve given or what?

LogoLogics 2025-06-25T09:40:00+00:00

Hi, This setup finally works: *I replaced my real address with zero’s for security ;- The IPv4 and IPv6 addresses can be retrieved or can be requested from the hosting company. 000.000.00.00/00 ← Your server’s IPv4 address 0000:0000:0::000/000 ← Your server’s IPv6 address The static IP addres and the domain restrictions did not work. Restricting the API’s like: Distance Matrix API Routes API worked always, as long as I did not restrict the application itself. But now with the IPv4 and IPv6 I can restrict them both and all works just fine now. Thanks, Annie This reply was modified 1 year ago by LogoLogics .