WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Google Map Woes (4 posts)

  1. g3legacy
    Member
    Posted 3 years ago #

    Hi, i'm trying to do the easy enough task of embedding a google map. By embedding I mean the API rather than the iFrame method.

    Heres the problem, I get an error on every page except the page with the map on. The error message always reads "null is null or not an object". It happens in IE 7 and 8 as far as I know. The map script is in the head, i've done it on static sites but not on WordPress. I'm wondering if there is something I should be aware of when using google maps and WordPress together.

    Here is the contact page;

    http://www.havant-district-mencap-club.co.uk/contact-us/

    Any tips, particularly if you have solved this before, would be helpful. Its wasting a lot of time!

    Dan

  2. flamenco
    Member
    Posted 3 years ago #

    Hi,
    FWIW, I'm loading your map perfectly in Firefox and IE7. I wonder if your IE flavours could be having cache or session issues or something like that from your testing? Maybe you could try loading it in IE on other machines.

    Cheers, Dave

  3. g3legacy
    Member
    Posted 3 years ago #

    Hi, the map may well work now. Can you view some other pages on the site for me? It's the other pages that have problems.

    Thanks, dan

  4. g3legacy
    Member
    Posted 3 years ago #

    If anyone gets stuck on this I found a solution of sorts...

    I put a condition ( if ) php statement in the body tag. It only echos the "onLoad" function when the page is the contact us page. That seems to have sorted the problem out.

    Dan

Topic Closed

This topic has been closed to new replies.

About this Topic