• Ruben

    (@rubenvankempen)


    Hi there,

    After installing, activating and adding the .gpx-extension I uploaded a GPX-file.
    Goes well.

    When I’m linking to the file I get the following error:
    This XML file does not appear to have any style information associated with it.

    How do I fix this?

    *Screenshot on https://prnt.sc/uteh9v

    • This topic was modified 4 years, 1 month ago by Ruben.
    • This topic was modified 4 years, 1 month ago by Ruben.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author kimipooh

    (@kimipooh)

    The plugin only adds the file extension that can upload to WordPress.
    So, it doesn’t touch the behavior of the browser when it accesses a GPX file. I think that a part of the content(XML) in the GPX file was displayed when your browser access to it because the GPX file type is XML format.

    I think the way to display GPX in WordPress would need to be integrated with a MAP-based system. To simply download the GPX file, you’ll need to change the MIME settings for the GPX file on your web server; application/gpx+xml seems to be the most commonly used, but if not, you’ll need to set application/octet-stream. You had better contact the suppoter of the web server.

    Thread Starter Ruben

    (@rubenvankempen)

    Hi @kimipooh ,

    Thanks for your quick reply.

    I would like to able the function to download the GPX file.
    How do I change the MIME settings for the GPX file on my web server? Or set application/octet-stream?

    Cheers

    Plugin Author kimipooh

    (@kimipooh)

    That feature will be a feature of the webserver, not WordPress.
    If you are using Apache as your web server system, and .htaccess allows users to change the behavior of the extension, try adding a setting to the .htaccess file in your WordPress installation directory, as described below.

    Reference: How force download .gpx files in an Apache with an Apache Handler?

    In detail, please ask the management of the webserver you are using.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error appears’ is closed to new replies.