• Resolved maaikez

    (@maaikez)


    Hi,

    When I try to add multi elevation, I get the following error:

    Warning 1549: failed to load external entity

    Code is:
    [leaflet-map fitbounds]
    [elevation-track file="<url-to-gpx>"]
    [multielevation]

    This happens when I use the full url to the gpx and also the relative url.

    [elevation gpx="<url>" ... ]

    with exactly the same url does work.

    WordPress version: 6.7.2
    Extensions for leaflet map: 4.4.4
    Leaflet map: 3.4.1

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter maaikez

    (@maaikez)

    Ok thank you for testing, really appreciated!

    I asked my web hoster (and also pointed to this topic).

    Is simplexml_load_file only used for multielevation?

    Plugin Author hupe13

    (@hupe13)

    Is simplexml_load_file only used for multielevation?

    Good question. Shortcodes multielevation and leaflet-directory and the file manager https://your-domain.tld/wp-admin/admin.php?page=extensions-leaflet-map&tab=filemgr-list. Does the preview of gpx and kml in file manager work?

    Thread Starter maaikez

    (@maaikez)

    And then I found the php configuration menu option on my hosting provider’s admin, and allow_url_fopen was off.
    I turned it to on (not knowing what security risk this is to be honest) and now it works.

    Plugin Author hupe13

    (@hupe13)

    I checked the configuration on my two hosters, php, on my business webservers – allow_url_fopen is everywhere ON per default. My business webservers are checked with appropriate tools and no issues are raised in this respect. But I will check whether I can do it differently than with simplexml_load_file.

    Thread Starter maaikez

    (@maaikez)

    Yes, before allowing allow_url_fopen, the preview was working in https://your-domain.tld/wp-admin/admin.php?page=extensions-leaflet-map&tab=filemgr-list

    Thread Starter maaikez

    (@maaikez)

    Well it works now so for me it’s fine. Super thanks for your help!

    But if you like to add another option, I see that people use curl for this, although the hoster has to have that as well. So I think this is just fine.

    Plugin Author hupe13

    (@hupe13)

    I think, I don’t change this and set this topic as resolved.

    Thread Starter maaikez

    (@maaikez)

    totally agreed. Thanks a lot for your help!

Viewing 8 replies - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.