Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Remco Tolsma

    (@remcotolsma)

    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?

    Thread Starter claud925

    (@claud925)

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

    justincase404

    (@justincase404)

    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.

    justincase404

    (@justincase404)

    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.

    Plugin Author Remco Tolsma

    (@remcotolsma)

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

    justincase404

    (@justincase404)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Pronamic Google Maps] Script Error in IE’ is closed to new replies.