#wordpress 2023-04-30
2023-04-30 UTC
IWSlackGateway, doug_c_im, gRegor, fef, [marksuth], sebbu2, [jeremycherfas], sandworm7145, [schmarty], Loqi, [BinaryDigit], jeremycherfas, [Jo], [snarfed] and [chrisbergr] joined the channel
# [chrisbergr] Hey @GWG, I'm facing issues with the simple location page for map by year (2023/map). Unfortunately I can't get the debug.log to run, no idea what's going on there. In the source code I see '<img class="archive-map sloc-map" src="<https://christian-hockenberger.com/2023/map/%3C!DOCTYPE%20html%3E%3Chtml%20lang=|<!DOCTYPE html>>' followed by the source code for 'There has been a critical error on this website.' Error page.
# [chrisbergr] On my localhost I get the following in my debug.log: [30-Apr-2023 _20:02:29_ UTC] PHP Fatal error: Uncaught Error: Class "WP_Geo_Data" not found in C:\sites\localhost\chobz\wp-content\plugins\simple-location\includes\map\class-map-provider-geoapify.php:89
# [chrisbergr] But as I said, unfortunately I can't guarantee that it's the same problem as on the server. Do you have any ideas/suggestion for me?
# [chrisbergr] Cool, thank you
# [chrisbergr] I guess I bet on the wrong horse π
# [chrisbergr] Thank you, I'll geht the file from there π
# [chrisbergr] Now I get [30-Apr-2023 _20:45:49_ UTC] PHP Fatal error: Uncaught Error: Call to undefined method Geo_Data::bounding_box()
# [chrisbergr] Yes, now it works again π Thank you for this super fast solution! GWG++
# [chrisbergr] Otherwise I have no problems with the plugin, everything runs great. I currently have problems with ownyourswarm, but I don't think it's because of Simple location. I need to get the debug running again, then I'll know more.
[TMichelleMoore] joined the channel
# [TMichelleMoore] Nice headshot [chrisbergr]! I have not used the simple location plugin. I will have to try it.
# [chrisbergr] In fact, I use location data only for checkins, all other posts are always without.
# GWG Here's my journey of the day. https://david.shanske.com/2023/04/30/map/
# [chrisbergr] GWG: It's great to have so many providers. On one hand there is always the possibility for a fallback. On the other hand you don't need to open a new account on a new provider if you have already one by one of those providers
# [TMichelleMoore] @gwg I will add that to my tests and try it. Syndication-Links next.
# [chrisbergr] [TMichelleMoore] A complete test of simple location will be extreme! So many 3rd party sites that you would have to deal with.
# [chrisbergr] But it would certainly be very helpful for GWG
# [TMichelleMoore] [chrisbergr] OK, then I will have to keep it simple and maybe use one or two sites. I donβt know how to use it yet, so I will do what I have been doing: document the features listed on the plugin page, run through the settings, try to set it up for one or two, and figure out the test/feature. With your warning, I know that there might be some, βDidnβt testβ in there.
# [chrisbergr] [TMichelleMoore] I am curious about your results π
# [chrisbergr] @GWG I have seen that you also save the generated images of the map provider. But this is not a basic feature of the plugin, is it?
# [chrisbergr] In fact, it is really geeky π
# [TMichelleMoore] [chrisbergr] What 3rd party do you use? And did you have to get some kind of key or something to use it?
# [chrisbergr] I guess tey all require api keys. I'm using Geoapify, for me personally this was the easiest to set up
# [chrisbergr] And there are many nice map styles, even if I use a very boring one right now
# [TMichelleMoore] [chrisbergr] OK. This really should have been the first plugin that I tried because my photos are really location based. This seems likes its going to be the hardest one.
# GWG [chrisbergr]: https://github.com/dshanske/Static-Maps-API-PHP
# [chrisbergr] Oohh wow that's awesome! I think after my current client project I will also put a little effort into this, with that great blueprint.
# GWG Ooops...flag emoji in the URL https://david.shanske.com/venue/irish-jewish-museum-dublin-dublin-city-%f0%9f%87%ae%f0%9f%87%aa-ireland/
# [TMichelleMoore] @gwg I am definitely going to have questions. :-) Hope you are enjoying your trip!
# [chrisbergr] Do you also add location data to your media?
# [chrisbergr] I see this field "locations" but I don't know what to do with it. https://images.cho.bz/uploads/screenshot/1682889796.png?w=1280&fit=crop&q=100&sharp=10&dpr=1&s=4123979091ac84ab6a5996b2c51b3d59
# [chrisbergr] That new content type "venue" in my admin bar?
# [chrisbergr] tbh I don't know the difference between venue and location. The dictionary provides me the same list of translations for both...
# Loqi π A venue is a named location or address/geo that is typically used for checkins https://indieweb.org/venue
# [chrisbergr] Ah, slowly it starts to make sense for me π As far as I remember does google name it just "place"
# [TMichelleMoore] @gwg Is the venue similar to a WordPress category/tag?
# [chrisbergr] You never left Berlin when you were in Germany?
# [chrisbergr] I so regret not running POSSE or at least PESOS back in the days of Gowalla. So many checkins lost forever. So sad.
# [chrisbergr] But that does not belong here in this channel
# [chrisbergr] If another IWC takes place in Berlin, I will be present.
[aciccarello] joined the channel
# [chrisbergr] I normally use the Swarm app on my iPhone for checkins, and always upload pictures to it. Thanks to ownyourswarm, a checkin is created directly on my page, which I delete again to manually trigger the synchonisation, so that the images come with it.
# [chrisbergr] But recently only one picture comes across and the comments are missing as well as that it is no longer a post kind checkin.
# [chrisbergr] This is strange, but I still do not know why
# [chrisbergr] That never worked for me automatically.
# [chrisbergr] First, the problem must be identified. This is actually very difficult for me.
# [chrisbergr] I have a suspicion that it's polylang. As long as there is no pll lang meta, the post is not displayed in the feed. Maybe I can just always automatically put en.
# [chrisbergr] @GWG I was able to get something to debug. https://github.com/dshanske/indieweb-post-kinds/issues/353
# [chrisbergr] It looks like that my micropub endpoint also returns an error code, so ownyourswarm now says: "Your account is disabled - Your Micropub endpoint returned an error too many times in a row".
# [chrisbergr] I use Smush pro to strip exif data from my images. Until I updated about 2 weeks ago from below 5.0 to most recent version of simple location, this was never a problem.
# [chrisbergr] That sounds reasonable. Is the missing exif data also the reason for the following fatal error?
# [chrisbergr] okay