WordPress.org

Ready to get started?Download WordPress

Forums

Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] Custom icon not showing in list of icons (19 posts)

  1. Dillx
    Member
    Posted 1 year ago #

    I have tried using this plugin on two sites a dev and a live site (dev = directory structure is aaaa and live = directory structure with aaaa.co.uk).
    I wanted to use some extra icons for my markers.
    The first one installed perfectly and any new icons immediately appeared in the list of icons.
    The second (live) site gave no errors but the directory wasnt created and the icons were missing. I copied the directory from the other site and all the icons appeared except any new ones I'd added. No matter what I try I cant get it to 'see' the new icons.
    If I change the name of say the 'gift' gift.png to something else it fails to find that icon.

    How can I get it to reset itself to pick up new icons. Have tried reinstalling but that doesnt help.

    http://wordpress.org/extend/plugins/leaflet-maps-marker/

  2. Dillx
    Member
    Posted 1 year ago #

    Have also tried removing directory from dev version and putting back and icons reappear. cant find any differences on the databases or the directories, but presumably there is something stored somewhere that say 'dont bother looking in the directory as its not there'.

  3. Dillx
    Member
    Posted 1 year ago #

    using latest version of plugin and WordPress 3.4.2.

  4. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    strange. icons are not save to database - my plugin reads the content of the icon directory (finding the upload path + /leaflet-maps-marker-icons) perhaps something changed here with WP3.5 as similar errors were reported. I will have a look if I find something. If you have an idea, let me know!

  5. Dillx
    Member
    Posted 1 year ago #

    I wondered if there was a setting on the database but as there isn't it just doesn't make sense.
    When I copy the standard icons in it picks them up but if any of them have the wrong name or are custom ones not in the original zip it cant see them at all.

  6. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again,
    just released v3.4.2 which includes checks for marker icons settings (can be broken when wordpress was moved).
    Please try if this helps correct your settings.
    regards,
    Robert

  7. Dillx
    Member
    Posted 1 year ago #

    Sadly it doesnt help at all.

    When I change the name of a file
    eg gifts.png to aagifts.png
    aagifts.png is not picked up and in the position where gifts.png should be displayed it puts the text gift.png

  8. Dillx
    Member
    Posted 1 year ago #

    The difference between the site that works and the one that doesnt is the directory naming. Could this affect it.

    working one is
    public_html/addons/abcdetest/wp-content/uploads/leaflet-maps-marker-icons

    the one that doesnt work is
    public_html/addons/abcdetest.co.uk/wp-content/uploads/leaflet-maps-marker-icons

  9. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    where did you set those directories?

  10. Dillx
    Member
    Posted 1 year ago #

    I haven't set the value anywhere in the plugin or wordpress.
    Thats how they are set through cpanel.

  11. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    have you tried both paths to marker icons directory in the plugins settings?

  12. Dillx
    Member
    Posted 1 year ago #

    Ah right I didn't know there was a setting for the directory.
    This is clearly whats causing the problem. However, the default value for the Icons directory of abcdetest doesnt work as it doesnt exist if I change the value to the correct name I get this error

    Leaflet Maps Marker Warning: the setting for your the marker icon directory (http://www.abcdetest.co.uk/wp-content/uploads/leaflet-maps-marker-icons) seems to be invalid. This can happen when you moved your WordPress installation from one server to another one.

  13. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    mhhh - dont know what could be the problem - would need temp admin access to take a look...

  14. Dillx
    Member
    Posted 1 year ago #

    ok there must be some validation on the parameter for the Icons directory that prevents the use of the /public_html directory
    for the Icons directory

    If I create a new directory in the directory structure that conforms to its default, copy in my icons then it all works

    ie

    /home/ragdogco/addons/abcedtest/wp-content/uploads/leaflet-maps-marker-icons

  15. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    great to hear that it is working for you that way!

  16. Dillx
    Member
    Posted 1 year ago #

    its ok for a workaround. But would be neater if it were in the proper live directory.

    Thanks for your patience.

  17. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    BTW: just released 3.5 which allows disabling global admin notices

  18. Dillx
    Member
    Posted 10 months ago #

    I managed to work out what the problem was with this. You will be pleased to know it had nothing to do with your plugin. The database had the wrong name for the upload directory in it. Correct the directory name on the database and it all works beautifully.

  19. RobertHarm
    Member
    Plugin Author

    Posted 10 months ago #

    that's great to hear - thanks for letting me know!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic