Googel Api key must be input?
-
Hello @tokkonopapa,
I noted that you upgrade plugin and add google maps APIs.
I would like to have a test, but not sure whether I much input a Googel API key.
which one I should choose, would you like let me know, thanks.Still I only can view map under search tab By VPN, unless it is visible.
by the way, all clear cache under statistic tab are very slow.
Alex
Alex
-
Hi
I would like to have a test, but not sure whether I much input a Googel API key.
No, you don’t need API key if you don’t have it. c.f. http://www.ipgeoblock.com/changelog/release-2.2.7.html
Have you already tried this code snippet?
by the way, all clear cache under statistic tab are very slow.
I need more info. For example, it’s slower than before upgrading, how long does it take and so on. Actually, it throws an ajax request from your browser and the server execute just one line SQL query then respond to your browser. It means that it is because the delay of the network and the response time of the SQL database are dominant. And this version upgrade seems to have nothing to do with it. Just “slow” does not tell me what is the cause.
Thanks.
Hello,
When I say slow, it was that way always, not after this upgrade.
I just guest it is related to google map.http://prntscr.com/hgth7w
yes, I embed that code and activated networkly http://prntscr.com/hgtd4iBut there is not google map show up, I just suppose that is the reason why it slow down statistic tab and search tab, please check at:
http://prntscr.com/hgti58
http://prntscr.com/hgtjz0Alex
Updated!!!!
There is a plugin of disable google map, I just deactivated, and error message updated as following:
http://prntscr.com/hgtte6
http://prntscr.com/hgty40Alex
-
This reply was modified 8 years, 6 months ago by
alexlii.
good morning!
Thanks, I will try. The big issue for me is Ip-Geo-block is not compatable with Multisite-auth, the user is online on subsite A, but not online on others, and even can not sign in, including administrator. This issue will happen both when it activated networkly and only on subsite.
Alex
Hello,
This time, I put the codes in my child theme function.php:
but the problem is same, but I am sure I can access https://www.google.cn/jsapi: http://prntscr.com/hh1nf6
By the way, the tab of Statistics is fast now, and clear cache button response instantly. the only problem is that search tab will cause delay and no map show up.
Alex
Hi,
Your site still downloaded the scripts from google.com, not from google.cn.
You should be back to the basics, e.g. change default theme (of course, add the code snippet or deactivate all plugins and activate one by one).
Hello @ tokkonopapa
Did you think about open street map before?
Maybe you know https://ww.wp.xz.cn/plugins/leaflet-maps-marker/
or any other maps, like bing.com
Alex
Hello @tokkonopapa
THis might be help, right?
Mapstraction is a Javascript library that provides a single, common interface for a wide variety of Javascript map APIs. It’s designed to enable a developer to switch from one maps API to another as smoothly and as quickly as possible.
and sample here;
https://ww.wp.xz.cn/plugins/geo-mashup/Sometimes, The google api input field will dispear after several times retry and freshing page, it will show up again,
http://prntscr.com/hhun2t
http://prntscr.com/hhundwand when click the tab it will show error:http://prntscr.com/hhuswv
Alex-
This reply was modified 8 years, 6 months ago by
alexlii.
Hi Alex,
1. Thank you for the information about maps. Sorry to disappoint you, but I have no plan to replace google map to others.
2. Regarding to “Google Maps API key” at “Plugin settings” section, I have something to ask you:
- Have you registered Google API key?
- And did you put your key into “Google Maps API key” text field?
If your answer is NO, please get your API key referring to https://developers.google.cn/maps/documentation/javascript/get-api-key
3. As for the empty error message, I should improve it more user friendly. Actually, an ajax command would be running behind your “Settings” tab. And 403 (it depends on your “Response code” at “Validation rule settings” section) or 500 error might be happened. So could you check the console or network tab of developer tool in your browser? Fixing the issue depends on the type of error.
I’d appreciate your cooperation!
Hello @tokkonopapa
I am using Kleo Theme and theme develper intergrate a plugin of wpgeodirectory
and they developed a plugin of API KEY for Google Maps, and here is what we discuss.
https://ww.wp.xz.cn/support/topic/map-url-in-china/#post-9742089The code snippet which you provide does not work and there are errors.
so I use the piece which he provide, and sometimes google would appear both in main site and subsite, but still there are different errors. I am just think there are no much different between your code lines, just different method.
I just guess there is other google links related in IG-geo-block, well I guess:)
the errors in Main site and sub site is different:Main site/root site:
setting/statistics/search tab errors, also statistics tab will take long time:
http://prntscr.com/hi04trSubsite:
somestimes google map not show up, errors will be
http://prntscr.com/hi08dh
sometimes google map show up, only search error will
http://prntscr.com/hi06xrWhen I say sometimes, I mean leave Ip-geo-block and come back to click again all tabs, like here:http://prntscr.com/hi0a38
As to map resources, I respect your choice, but if possible, please take this method into consideration:
but if not, I show my understanding since the most important of function of IP-geo-block is not show a fancy map:)
By the way, open map is quite smooth, but I am not sure it will smooth for ever, all up to government.
Alex-
This reply was modified 8 years, 6 months ago by
alexlii.
By the way, when I put that code line into child theme function file, that google map will never show up. only the way to put it into the plugin of code snippet: http://prntscr.com/hi0g3j
Alex
OR any way to simply disable google map by add code line?
it is not so important for me to show map, but no error and no delay is quite important now, maybe we can improve it in future.
Alex
Hi,
First of all, please deactivate and remove Postman SMTP plugin. The reasons are:
- In https://prnt.sc/hi04tr, we can find
#ip_geo_block_postmanbut IPGB never defines this ID, it might be defined by Postman. That’s why I ask you to go back to the basics. - I can’t investigate the above issue because of Postman SMTP Plugin With Unpatched Vulnerability Removed From Directory.
And the 2nd, IPGB uses Google Charts on Statistics tab. It requires “//www.google.com/jsapi” by default. But the plugin “API KEY for Google Maps” handles only “Google Maps”. So my code snippet should work.
And the 3rd, Google Maps needs individual key for each site in case you configure your multisite as sub-domains. I think that the reason your main site and sub site have different behavior.
OK, I’ll propose another solution. Please follow the steps in the next thread.
-
This reply was modified 8 years, 6 months ago by
The topic ‘Googel Api key must be input?’ is closed to new replies.

