WordPress.org

Ready to get started?Download WordPress

Forums

Geolocation
Cannot Add Image To Page When Using Geolocation Plugin (4 posts)

  1. Leo
    Member
    Posted 3 years ago #

    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.

  2. dbrink
    Member
    Posted 3 years ago #

    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!

  3. Jon
    Member
    Posted 3 years ago #

    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.

  4. Leo
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic