WordPress.org

Ready to get started?Download WordPress

Forums

WP Quadratum
[resolved] Disappearing Map? (19 posts)

  1. damian613
    Member
    Posted 1 year ago #

    Hi Greg,

    Using your plugin on my website and it appears to be fetching location data from Foursquare just fine, but for the last month or so has not been displaying any maps.

    This only appears to be a problem in Chrome (desktop and Android versions), as the map appears when I load my site in Firefox, IE, and the stock Android browser.

    I have tried disabling the few plugins I have installed in Chrome, but it doesn't seem to make a difference; map still won't load in that browser. Would appreciate hearing your thoughts.

    My details:

    * WP 3.5.2
    * Theme: Thesis 1.8.5 (paid) (also been working fine w/this theme for months; have made no changes to theme)
    * Running WPQ 1.2.0
    * Site is located here

    Thanks!

    http://wordpress.org/extend/plugins/wp-quadratum/

  2. damian613
    Member
    Posted 1 year ago #

    PS - Using Chrome 27.0.1453.116 m (up to date); map still doesn't load in Incognito mode w/all plugins disabled.

    Thanks!

  3. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    Take a look in Chrome's Developer Tools console (View menu -> Developer -> Javascript Console) ...

    Are you seeing error messages along the lines of the following (the precise message may vary depending on the map type you have selected in the plugin's settings) ...

    Resource interpreted as Script but transferred with MIME type text/plain: "https://raw.github.com/vicchi/mxn/master/source/mxn.js?(openlayers)&ver=3.5.2". test.vicchi.org/:28

    Refused to execute script from 'https://raw.github.com/vicchi/mxn/master/source/mxn.js?(openlayers)&ver=3.5.2' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. test.vicchi.org/:1

    Uncaught ReferenceError: mxn is not defined

    ... ?

    -Gary

  4. damian613
    Member
    Posted 1 year ago #

    I got the second and third messages:

    Refused to execute script from 'https://raw.github.com/vicchi/mxn/master/source/mxn.js?(googlev3)&ver=3.5.2' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. http://www.damianbariexca.net/:1

    Uncaught ReferenceError: mxn is not defined http://www.damianbariexca.net/:130

  5. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    Ah. That's what I feared. This is a sort of bug. Chrome Canary introduced enforcing strict MIME type checking and this looks like it's now been rolled into the production version of Chrome. Plus GitHub are now emitting content from raw.github.com astext/plain so while the underlying maps API script loads, Chrome is refusing to execute it.

    I'll have to move Mapstraction (which is what the plugin is loading) to another location on GitHub and then modify the plugin to look in the new location. Which will mean a new version will have to be released.

    I'll try and get this done this week.

    -Gary

  6. damian613
    Member
    Posted 1 year ago #

    Right; thank you, Gary. I'll keep an eye out for the update. Appreciate your attention to this!

  7. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    A quick update ... I've fixed this now, at least in my local development version. I hope to have a working version up on GitHub by the weekend, with emphasis on the word hope.

    There's a couple of other things I need to do, like get the shortcode working properly again as well as cope with themes that use responsive layouts in a much better way, but this is significant progress. It's just taken me a lot longer to do than I originally anticipated and has also opened a whole can of worms with the underlying mapping APIs, but that's now been fixed.

    It shouldn't be too much longer before I can push the next formal release to the Plugin Repository.

    -Gary

  8. damian613
    Member
    Posted 1 year ago #

    Excellent, Gary; thanks very much! I appreciate your work on this.

  9. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    So the (almost) beta version of v1.2.1 of the plugin is now on GitHub (https://github.com/vicchi/wp-quadratum/tree/v1.2.1-changes) and it's working in-situ on my main blog (http://www.vicchi.org).

    Just got to update the plugin's filters and revamp the documentation and we should be good to go.

    -Gary

  10. damian613
    Member
    Posted 11 months ago #

    Hi Greg,

    Just checking in to see the status of v1.2.1. I appreciate your attention to the upgrade!

    --Damian

  11. damian613
    Member
    Posted 11 months ago #

    Er, sorry Gary, not quite sure why I keep addressing you as 'Greg'.

  12. vicchi
    Member
    Plugin Author

    Posted 11 months ago #

    I'm on family vacation right now a d on the end of a roaming mobile data connection so I can't do anything this week. All being well, should be able to release this next week on my return

  13. damian613
    Member
    Posted 11 months ago #

    Great; thanks and enjoy!

  14. rudomilov
    Member
    Posted 11 months ago #

    I have the same problem - the map is not visible in all browsers. I have catch the error in Chrome JS console:

    Uncaught ReferenceError: mxn is not defined

    on line:
    var map = new mxn.Mapstraction (id, 'openlayers');

    I have tried 1.2.0 and 1.2.1 versions without any effect.

  15. rudomilov
    Member
    Posted 11 months ago #

    Solved. Installed theme did not have <?php wp_head(); ?> in header.php

  16. rudomilov
    Member
    Posted 11 months ago #

    Not yet in Chrome because of:

    Refused to execute script from 'https://raw.github.com/vicchi/mxn/master/source/mxn.js?(googlev3)&ver=3.6' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

    In other all is OK.

  17. vicchi
    Member
    Plugin Author

    Posted 11 months ago #

    So this is a known bug which is fixed in the next release of the plugin (which is currently running, albeit unreleased, on my personal blog).

    The next release is all ready to be pushed out to the WordPress subversion repository. If I'm able to get the time (just back from family vacation), this will be done today. If not, then tomorrow.

    -Gary

  18. vicchi
    Member
    Plugin Author

    Posted 11 months ago #

    The latest version of WP Quadratum (v1.3.0 and not v1.2.1 as previously mentioned; there were sufficient changes to warrant upping the minor version number) has been pushed to the WordPress plugin subversion repository this morning and should now be available for upgrading from v1.2.0.

    Amongst other bug fixes and changes, this now pulls the Mapstraction Javascript API from its new download home on GitHub, fixing the strict MIME type checking issue.

    -Gary

  19. damian613
    Member
    Posted 11 months ago #

    Thanks very much for the update, Gary! Much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.