Forums

Pronamic Google Maps
[resolved] Script Error in IE (7 posts)

  1. claud925
    Member
    Posted 1 year ago #

    Hello,
    Im using your plugin (ver 1.6.1.1) and wordpress 3.0.4.
    It is causing an error in IE6 and IE7.

    It says:
    Line: 147
    Char: 2
    Error. Object doesnt support this property or method
    Code: 0

    Hope you can help.

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Remco Tolsma
    Member
    Posted 1 year ago #

    Unfortunately we could not reproduce this problem. However, I removed some unnecessary JavaScript at 147. Can you try updating to version 1.6.1.2?

  3. claud925
    Member
    Posted 1 year ago #

    Thank you for your quick reply. However, I updated it and it didnt work. The error is in line 143 now.

  4. justincase404
    Member
    Posted 1 year ago #

    I am having the same problem in IE 8, IE 9, Chrome, and FF 4.0. I have been able to get it to work on the post and admin page using the TwentyTen theme. When I activate my ShopperPress theme, the admin page does not show the map. I get an error in the Firebug/Chrome console:

    Uncaught TypeError: Object #<Object> has no method 'pronamicGoogleMapsMetaBox'
    post.php:993Uncaught TypeError: Cannot read property 'click' of undefined

    The map still works on the post display page just not the edit page.

  5. justincase404
    Member
    Posted 1 year ago #

    It looks like my theme includes jquery-1.3.2.min.js and the admin.js adds the plugin function to the wrong instance of jquery. If I don't load jquery-1.3.2.min.js then the edit page works.

  6. Remco Tolsma
    Member
    Posted 1 year ago #

    I changed the scope of some JavaScript functions, could you try again (version 1.6.2).

  7. justincase404
    Member
    Posted 1 year ago #

    I was able to correct the problem by updating my theme. I removed the explicit loading of jQuery since the Admin page already includes it. My theme was loading it for my custom admin pages as well as the edit post page. That was causing the conflict with the map plugin's edit section.

    They way my theme was using jQuery in the admin page was using the $ to reference jQuery. So I followed the guidance to wrap all jQuery calls like this:

    jQuery(document).ready(function($) {
        // $() will work as an alias for jQuery() inside of this function
    });

    Since then I have not had any problems with the map display or my theme's admin pages.

    Thanks,

    Justin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic