WordPress.org

Forums

WP Statistics
[resolved] google map , for https is not working (15 posts)

  1. mIRU.md
    Member
    Posted 10 months ago #

    google map , for https is not working , because url is -> http://maps.google.com/maps/api/js?sensor=false , have to change to -> //maps.google.com/maps/api/js?sensor=false to work for http and https
    Thank you

    https://wordpress.org/plugins/wp-statistics/

  2. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    The Google Maps API is available in http or https, what problem are you actually seeing?

  3. AndalusianWorld
    Member
    Posted 10 months ago #

    Maps on this end are getting clipped to about the top left 10% of the total area

  4. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    What browser are you using?

  5. QuadWord
    Member
    Posted 10 months ago #

    Maps are also clipped for me.
    Tested on 2 different Machines running MAC/OSX: Safari, Firefox, Chrome

  6. QuadWord
    Member
    Posted 10 months ago #

    Update: if i refresh the browser a lot of times it switches between 3 different results:

    - a 10% clipped "corner" on the top left (47 Times out of 50 Refreshes)
    - a 25% clipped "row" full width but only 25% height (2 Times out of 50 Refreshes)
    - a 100% working display (1 Time out of 50 Refreshes)

  7. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    QuadWord: Sounds like a problem on Google's side. It wouldn't work *sometimes* if our code was fundamentally incorrect. I can't reproduce the problem on my Windows box on multiple browsers.

    AndalusianWorld: Are you on Mac or Windows?

  8. AndalusianWorld
    Member
    Posted 10 months ago #

    Hi Greg,
    We use Macs here.
    I checked it through all my browsers, and it is the same issue in Firefox, Safari, and Chrome

  9. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    Can one of you grab https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/?src=search for Firefox and switch your user agent string windows and give it a try?

  10. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    Never mind the above, I borrowed a friends MacBook Pro and it worked fine in Safari.

    Do either of you have enough experience to do some JavaScript debugging?

  11. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    I think I've found the issue, the map was being initialized before the page was completely loaded. Give this a try, edit the wp-statistics/includes/log/log.php file, line 243 should be:

    initialize();

    replace it with:

    jQuery(document).ready(function(){
    	initialize();
    });
  12. AndalusianWorld
    Member
    Posted 10 months ago #

    That seems to have done the trick!

    I did not find it on 243 however,
    It was on line 479

  13. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    That could be, I'm in the middle of some changes to the overview page and my working copy is in a shambles.

  14. AndalusianWorld
    Member
    Posted 10 months ago #

    More for others who may be looking for the code.
    Seems to have solved the problem on this end!

    Well done!

  15. Greg Ross
    Member
    Plugin Author

    Posted 10 months ago #

    The fix will be in the next release.

Reply

You must log in to post.

About this Plugin

  • WP Statistics
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic