Support » Plugin: Geolocation » Cannot Add Image To Page When Using Geolocation Plugin

  • Leo

    (@leoschmidt08)


    When the geolocation plugin is enabled I cannot add an image to a page (using the thumbnails between the title/permalink and the main editing box).

    Adding images to posts works just fine. However, when I try adding an image to a page on my blog, the admin area kicks me to a new webpage and I cannot include the image on the page I was on.

Viewing 3 replies - 1 through 3 (of 3 total)
  • This happened to me as soon as I installed and activated it, as well. I get kicked to a new page (not a popup), and when I try to add the pic the page goes blank and the image is not added.

    I hope the bug can be squashed soon – it’s otherwise a great plugin!

    Jon

    (@ghostwheelie)

    I just ran in to this issue when trying to change the permalink for a page.

    I believe I’ve got the plugin fixed. Since pages don’t get the geolocation functionality, I added an if condition around all the JS normally injected.

    I added the following after line 149 inside the admin_head() function in geolocation.php:

    if ($post->post_type == ‘post’) :

    Then added the corresponding endif; after all the JS (line 329). After making this change, I was able to add an image to and change the permalink of a page. I also tested posts, and the geolocation is working as expected.

    Hopefully the plugin author will get a fix integrated soon.

    Leo

    (@leoschmidt08)

    Jon, that patch seems to work perfectly. Thanks!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot Add Image To Page When Using Geolocation Plugin’ is closed to new replies.