ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5.1

Find help with FlatPress plugins, report a plugin bug, request or present new plugins.
Post Reply
User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5.1

Post by RainerBielefeld » Tue Dec 23, 2025 8:06 am

I already filed an issue for that problem with GPX Viewer Plugin, so here only for Info!

Can you confirm my observations?

CU

Rainer
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

User avatar
fraenkiman
Posts: 470
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5 RC1

Post by fraenkiman » Tue Dec 23, 2025 3:02 pm

Hello Rainer,

There seems to be a problem related to the PrettyURLs plugin. When I deactivate the PrettyURLs plugin and allow insecure JS, the GPX Viewer plugin works.
Screenshot 2025-12-23 155400.png
Screenshot 2025-12-23 155400.png (101.7 KiB) Viewed 192 times
To solve the problem with insecure JS, the echoScriptTags() function would have to look something like this.
Screenshot 2025-12-23 154628.png
Screenshot 2025-12-23 154628.png (53.04 KiB) Viewed 192 times
The getRelativeFilePathFromCurrentUrl() function of the GPX Viewer plugin would also need to be corrected so that the PrettyURLs plugin can be reactivated.

I'll stay on it. As soon as I get it fully up and running, you'll see it in this thread.

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

Re: ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5 RC1

Post by RainerBielefeld » Tue Dec 23, 2025 4:17 pm

fraenkiman wrote: Tue Dec 23, 2025 3:02 pm a problem related to the PrettyURLs plugin.

Hi Frank,

before I try to understand all Details your research results: did you observe / reproduce my "Not even recognized?" problem?

CU

Rainer
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

User avatar
fraenkiman
Posts: 470
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5.1

Post by fraenkiman » Tue Dec 23, 2025 4:58 pm

Hello everyone,
RainerBielefeld wrote: Tue Dec 23, 2025 4:17 pm ...reproduce my "Not even recognized?" problem?
There were two problems:
Due to stricter CSP, the Java scripts were blocked by the browser.
After I solved that, I saw a message in the browser saying that the *.gpx files could not be found (404).

With the changes commented in Codeberg, I got the plugin working in FlatPress 1.5 RC1.

You can download it from the wiki.

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

Re: ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5.1

Post by RainerBielefeld » Tue Dec 23, 2025 5:35 pm

Hi Frank:
I – as a user, not a geek – need an answer to my question did you observe / reproduce my "Not even recognized?" problem?

And I have an additional question:
Which folder of gpx1.2.1 from .zip needs to be uploaded to the installation as subvolder of fp-plugins?
  • gpx1.2.1?
  • gpx1.2.1 reamed toflatpress_gpx or whatever else?
  • subfolder from gpx1.2.1 gpx?
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

User avatar
fraenkiman
Posts: 470
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5 RC1

Post by fraenkiman » Tue Dec 23, 2025 10:01 pm

Hello Rainer,

I was only able to reproduce it locally with the original version, as I did not have admin/file access to your instance.

First, I downloaded your 2025-10-18_GlobusUndSuedsee_RTr.gpx and another one from Arvid's bike tour book as a reference.

The directory and file structure must look like this:

Code: Select all

fp-plugins/gpx/plugin.gpx.php
This will display the plugin in the admin area and allow you to activate it.

Then you can assign the *.gpx file to the plugin in a test post using:

Code: Select all

[gpx="attachs/2025-10-18_GlobusUndSuedsee_RTr.gpx"]
Plugin version 1.2.1 only works with FlatPress 1.5 RC1 or higher.

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
RainerBielefeld
Posts: 46
Joined: Fri Jul 18, 2025 7:15 pm
Location: Braunschweig, Germany

Re: ℹ️️ Plugin GPX Viewer does not work for me in Flatpress 1.5 RC1

Post by RainerBielefeld » Wed Dec 24, 2025 8:05 am

fraenkiman wrote: Tue Dec 23, 2025 10:01 pm The directory and file structure must look like this:
Hello Frank,

That was one of the options I tried yesterday – without success, GPX-Viewer was not shown in the Plugins list.
And today I deleted another structure of the pluign, uploaded again the new GPX-viewer 1.2.1 and Ta-Dah:
251224_901_GPX-Viewer.png
251224_901_GPX-Viewer.png (20.47 KiB) Viewed 156 times

Same success on a second test installation.
Don't ask me ... Must be some Christmas miracle 😏

I activated the GPX-viewer, disabled Pretty-URL.

On Test for flatpress GPX Viewer still nothing visible.

On GPX-Viewer second attempt I now see
"Given file ”attachs/2025-10-18_GlobusUndSuedsee_RTr.gpx” does not exist."
(Message disappeared after having gambled around for a while 😥 – but visible here and here)

All this with inactive "Pretty-URL".
fraenkiman wrote: Tue Dec 23, 2025 10:01 pm I was only able to reproduce it locally with the original version
That's what I meant!

And so the question is: why does FP / GPX-Viewer not recognize the existing file?

CU

Rainer
New here. I am planning to switch from Wordpress to FlatPress. But it seems hard ...

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests