• Resolved foormea

    (@foormea)


    Hi. I’m hosting WordPress on my NAS. It’s running behing a docker linuxserver/swag reverse proxy.

    I’ve just installed wp-strava, I’ve hooked it up to a test Strava account that has one run activity visible by everyone. The wp-strava setting page says that my Strava account is properly connected.

    When I paste any Strava URL into the content editor, it says: “Sorry, this content could not be embedded.”

    I have set up a cron job every hour as suggested by the doc, by having a cronjob on my NAS (well I hope this is the way):
    0 * * * * wget --delete-after https://<sanitised>/wp-cron.php

    WordPress’ log for the error is:
    wordpress | <sanitised> - - [02/Jun/2021:22:06:08 +0000] "GET /wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.strava.com%2Factivities%2F<sanitised>&_locale=user HTTP/1.1" 404 705 "https://<sanitised>/wp-admin/post.php?post=513&action=edit" "Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0"

    I’m quite new to WordPress and I don’t really know where to look.

    Would you be so kind to help me with this, please?

    Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter foormea

    (@foormea)

    Nevermind me, WordPress noob here. By starting to type / then strava I could access the Strava blocks, then it works as expected! Thanks for this plugin, and sorry for the noise.

    Plugin Author jrfoell

    (@jrfoell)

    Thanks @foormea – I’m going to see if there’s anything I can do to make the strava embed block show up automatically when you paste a URL (without having to explicitly insert a Strava block). Good suggestion! Glad you figured it out otherwise.

    Plugin Author jrfoell

    (@jrfoell)

    Hey @foormea – I figured out how to just paste a URL into the editor and have it turn into a WP-Strava block. It’s included in version 2.10.0 if you could go check it out!

    Thread Starter foormea

    (@foormea)

    It’s working indeed, nice! Thank you ?? (although I’m now programmatically updating my blog, not relying on manual edits for wp-strava blocks ^^)

    I meant to message you a few days ago about a feature request but I thought I’d look into it first. But since we’re talking, here’s what I wanted to say ??

    I’ve been thinking about modifying the plugin so that a browseable map from OpenStreetMap would be displayed instead of a static bitmap from Google. I had a look at the code, it feels like it wouldn’t take that much to adjust. To display an OSM map, we could rely on the already-existing OSM plugin, or display using leaflet. I don’t think the OSM plugin can take a polyline as input, only a GPX ; so it might be easier to just go for leaflet which can take polylines. Also leaflet might give more flexibility down the line.
    Trickier would be to give the user the choice between Google bitmap or dynamic OSM map?

    I have very little background with WordPress and I don’t know PHP. Maybe with a bit of time I could come up with something.

    Before I try and get started on this (with zero promise that I’ll actually do it), is it something you’ve explored already, is there a reason not to do it?

    Thank you!

    • This reply was modified 3 years, 2 months ago by foormea.
    • This reply was modified 3 years, 2 months ago by foormea.
    Plugin Author jrfoell

    (@jrfoell)

    Thanks @foormea – the discussion about an alternative map has already begun ?? I started an issue and branch here: https://github.com/cmanon/wp-strava/issues/26 If you’re eager to participate, join us over on GitHub.

    I’m hoping to make it so people can choose between Google Maps & MapBox/Leaflet, and maybe make MapBox/Leaflet the new default.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Sorry, this content could not be embedded.”’ is closed to new replies.