#wordpress 2023-01-02

2023-01-02 UTC
angelo, RasAlGhoul and [arush] joined the channel
#
[arush]
@blindnerd How are you trying to embed your video? Self-hosted? Service? Assuming you have the post kind enabled in the admin it should work fine.
#
GWG
How are you, [arush] ?
#
[arush]
Doing OK. Happy new year to you and everyone in the indieweb.
#
[arush]
BTW @gwg do you have toe custom fields you're using in Post Kinds documented anywhere? I think I may have found them in kind.js but want to make sure I'm not missing something.
#
GWG
kind.js doesn't have any of them, actually.
#
GWG
The properties are stored in post meta using the microformats properties and the mf2_ prefix
#
blindnerd
same, and turns out the video wasn't actually embeddable, as it's origin was from one of my local TV stations. It was a live event anyway, the show at the Space Needle at midnight, so it wouldn't have been relevant by the time I managed to figure it out.
#
GWG
Ah, the space needle...
#
blindnerd
nods
#
blindnerd
I do want to figure out how to embed such things as tracks from Spotify and videos from YouTube properly, but I have a minor issue that's probably best brought up on the Meta channel rather then here
#
[arush]
Youtube embeds work fine, Spotify ones don't.
#
[arush]
If you want to embed a Youtube video, when adding a video post, paste the URL of the video in the URL field in the properties section, and let it parce.
#
[arush]
Same for watch posts.
#
blindnerd
Good to know... then I guess if I want to embed music, it's best to do it as a music video from YouTube
#
[arush]
If you want it to have a working player, yes. If you're just wanting to keep track of what you're listening to, Spotify links will pull in info like song title and I think artist and album but would have to double check.
#
[arush]
@gwg That probably explains why I can't detect fields.
#
GWG
[arush]: What are you trying to do?
#
[arush]
@gwg I was going to use WP All Import to take some CSV archives and import the data into appropriate post kinds, because it seemed easier than manually entering data, but when I attempt to map custom fields to columns that doesn't work out.
#
GWG
It should, if you know the microformats
#
[arush]
@gwg I'm familiar with the microformats for the various post kind taxonomies, but not their properties. Is there a file in the plugin where those are defined? Specific to properties.
#
GWG
As I said, it is the property name with the prefix mf2_
#
GWG
So, in-reply-to would be mf2_in-reply-to
#
blindnerd
So, if I'm posting a video, what do I need to set the post kind and post format to? Going to try this...
#
blindnerd
I'm assuming Watch & Video respectively?
#
[arush]
@blindnerd post kind needs to be video, you shouldn't need to set post format.
#
GWG
blindnerd: The Post Kinds plugin is a replacement for post formats, so you shouldn't need both.
#
GWG
Video is the format for posting your own video, watch is that you watched a video.
#
[arush]
@gwg OK thanks.
#
GWG
[arush]: There are things I want to do to improve it, but that always works.
#
blindnerd
oh, then for a couple of read posts, I did it wrong. I'll need to delete those posts and their related tweets then and repost them correctly. Didn't quite understand the relationship between kinds and formats
#
[arush]
@blindnerd I'd just edit the posts instead of deleting them. That way your syndicated copies still work.
#
GWG
You can change the kind in the interface
#
GWG
It will change the properties
#
[arush]
Yeah what @gwg said re: changing kind.
#
blindnerd
Hmm, just plugged the link from YouTube into the URL box and it didn't automatically parse
#
GWG
blindnerd: That I can look into. What is the link?
#
GWG
Parsing tends to break occasionally.
#
blindnerd
I set the kind to video, should I use watch instead?
#
GWG
That is strange, it fills in for me on video or watch.
#
GWG
You don't have javascript disabled, do you?
#
blindnerd
Oof, this is getting frustrating, and I'm not sure what I'm doing wrong. I have the link, and am sitting on the new post screen. Set the kind to video and I get the URL bit at the top. Plug in the URL from YouTuve and nothing. What the heck am I doing wrong?
#
GWG
That is very odd. I have the same thing, and it works.
#
GWG
I'm not sure how I can figure out the difference.
#
[arush]
@gwg @blindnerd I wonder if there's a plugin conflict going on? I can do the same thing with your vide o link and it parces correctly.
#
blindnerd
Hmm. wonder if it's NextDNS futzing with something since it blocks ads & tracking
#
GWG
blindnerd: Can you check the dev console in the browser? It should show the parsed URL in JSON
#
[arush]
God I can't type today.
#
blindnerd
Thing is I'm not getting that little dialog that says it's been parsed
#
GWG
That is why I suggested the dev console.
#
blindnerd
Hmm, if I hit the add media button in the editor, it gave me the option to add from a URL, but I'm not sure if that's what I wanted
#
GWG
That's for posting a video from the media library
#
blindnerd
okay, starting from scratch here... first thing I've done is set the kind to video, that's when I get the bit at the top about response propties
#
GWG
Yes, and video is posting a video, whereas watch is watching a video.
doug_c_im joined the channel
#
blindnerd
am I supposed to put the URL in the response propties area, there are two fields, url and name. Below that is a button labeled add media
#
GWG
blindnerd: In the URL box
#
blindnerd
So, since I couldn't get it to work and am not technical enough to futz around with the dev console, I just posted it as is. I dobut it created any HEntry data
RasAlGhoul, gRegor and doug_c_im joined the channel
#
GWG
blindnerd: You can always manually enter in the name. Also, there's an option, which would work for Youtube, to show the Youtube embed instead
#
blindnerd
It wasn't behaving for me, so to save my sanity I'll set the idea aside and keep that particular item on my itches list
#
GWG
Sorry
#
blindnerd
I'll admit I get frustrated easily and I'm not the best explainer when frustrated
#
GWG
Tell me if there is anything I can do.
#
blindnerd
ponders for a few moments
#
blindnerd
Which plugin controls the parsing functionality? Maybe mine isn't up to date, but I do have all the installed plugins set to auto-update
#
GWG
IndieWeb Post Kinds bundles it.
#
blindnerd
Let's see, according to the Site Health screen, I have all required and recommended PHP extensions installed. I will note that the one-click installer Linode provides in their marketplace does install PHP 8.1, only extension I had to install was the INTL one, so that might not be the issue
#
GWG
I'm stumped.
#
blindnerd
could be that parsing just decided to crap out... Does having xml-rpc.php blocked have anything to do with it? Linode in their infite wisdom as part of the script that installs everything puts a small snipet in the config file for the domain that causes XML-RPC to show as 403. I doubt it has anything to do with this, but making sure I cover my bases
#
GWG
Nope, I use the WordPress REST API. Do you have something that disables that?
#
blindnerd
Not that I know of, if I remember, the site health page states that is available
#
GWG
The URL of your video post is?
#
blindnerd
I took the post down, and it was a music video off of YouTube
#
blindnerd
do you need that URL? The YouTuve video wasn't mine, but came directly from the band's channel over there
#
GWG
No, just wanted to see how it looked in case there was a clue.
#
GWG
Short of you giving me a contributor account on the site, so I could create a draft post to test, not sure what else I could think of
#
blindnerd
Okay, I enabled registration, so you can create a temporary account and once you do, I can upgrade you to whatever level needed to allow you to diagnose this
#
GWG
The URL was again?
#
GWG
Should be added now.
#
blindnerd
okay, upgraded you to contributor status
#
GWG
Doing a little experiment
#
GWG
Do you have access to the error logs? I just triggered an error, but need to know what it is
#
blindnerd
I have root access, but not sure where to look
#
GWG
If this is a standard linux box, the error log file should be in /var/log/apache2 or /var/log/nginx depending on the browser
#
GWG
server, not browser, excuse me.
#
GWG
Just need to know what it said failed.
#
GWG
My assumption is something isn't installed.
#
blindnerd
server is a dedicated 4GB Linode running Ubuntu 22.04
jeremycherfas joined the channel
#
GWG
And it is Apache, so likely it is /var/log/apache2 where you'd find the error logs for the apache server
#
blindnerd
hmm, odd... folder is there, but according to WinSCP there's nothing in it. Of course, different user owns it then root, but the files should be visible
#
GWG
Then I wonder where the errors are being logged
#
blindnerd
found it, was looking in the wrong place... silly greg
#
blindnerd
should I send this via msg, possibly has sensitive info
#
blindnerd
assuming you're on irc not a bridge
#
GWG
There shouldn't be anything sensitive in the error logs, but happy to receive it any way you wish.
#
blindnerd
[Mon Jan 02 06:03:32.892056 2023] [php:error] [pid 25708] [client 159.250.159.12:46936] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this-youtube.php:15\nStack trace:\n#0 /var/www/wordpress/wp-content/plugins/indieweb-p
#
blindnerd
Activitypub\\Rest\\Server->dispatch()\n#7 /var/www/wordpress/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()\n#8 /var/www/wordpress/wp-includes/class-wp-hook.php(308): rest_api_loaded()\n#9 /var/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#10 /var/www/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action()\n#11 /var/www/wordpress
#
blindnerd
inds/lib/parse-this/includes/class-parse-this-youtube.php on line 15, referer: https://www.gregsplace.net/wp-admin/post-new.php
#
blindnerd
[Mon Jan 02 06:05:30.412792 2023] [php:error] [pid 26449] [client 159.250.159.12:56960] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this-youtube.php:15\nStack trace:\n#0 /var/www/wordpress/wp-content/plugins/indieweb-p
#
blindnerd
Activitypub\\Rest\\Server->dispatch()\n#7 /var/www/wordpress/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()\n#8 /var/www/wordpress/wp-includes/class-wp-hook.php(308): rest_api_loaded()\n#9 /var/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#10 /var/www/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action()\n#11 /var/www/wordpress
#
blindnerd
inds/lib/parse-this/includes/class-parse-this-youtube.php on line 15, referer: https://www.gregsplace.net/wp-admin/post-new.php
#
blindnerd
[Mon Jan 02 06:07:02.318309 2023] [php:error] [pid 26340] [client 159.250.159.12:43918] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this-youtube.php:15\nStack trace:\n#0 /var/www/wordpress/wp-content/plugins/indieweb-p
#
blindnerd
Activitypub\\Rest\\Server->dispatch()\n#7 /var/www/wordpress/wp-includes/rest-api.php(410): WP_REST_Server->serve_request()\n#8 /var/www/wordpress/wp-includes/class-wp-hook.php(308): rest_api_loaded()\n#9 /var/www/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#10 /var/www/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action()\n#11 /var/www/wordpress
#
blindnerd
inds/lib/parse-this/includes/class-parse-this-youtube.php on line 15
#
GWG
That is very instructive.
#
GWG
Strict type errors didn't come in until PHP 8, and I test on PHP7.4
#
GWG
So, that would explain the problem.
#
blindnerd
sounds like I just found a bug then... hmm
#
blindnerd
that was the last three entries, there's probaly more, but the one before that was Apache slapping someone down for trying to access the xml-rpc.php file
#
GWG
Yes. It would be a warning on PHP7.4, but an error on PHP8
#
blindnerd
this is 8.1.2 I believe but same major version I suppose
#
GWG
Yes, I can't upgrade my test server to 8 or above because I'm running something that doesn't work on 8.
#
blindnerd
so trying to parse YouTube content will fail for me due to that error 100 percent of the time... and maybe that's why manual entry didn't work either, or did you try that?
#
GWG
Okay, committed. Give me a minute, I should be able to release something for it.
#
GWG
Should be an update in a second
#
blindnerd
not sure if this is one of yours, but...
#
blindnerd
[Mon Jan 02 06:34:32.762669 2023] [php:warn] [pid 26763] [client 2600:1900:2000:ea::7:59785] PHP Warning: Undefined variable $comment_id in /var/www/wordpress/wp-content/plugins/semantic-linkbacks/includes/class-linkbacks-notifications.php on line 102
#
GWG
blindnerd: That's a different plugin.
#
blindnerd
sorry, just watching the error log to see what's going on
#
blindnerd
okay, just installed the update to Post Kinds
#
GWG
My test using my contributor account worked
jsbach joined the channel
#
blindnerd
going to test it myself now
#
GWG
[snarfed]: I think I fixed your issue with 4.4.3
#
GWG
[snarfed]: I also added a log metabox to the editor to show the returns from Bridgy or the errors
#
blindnerd
Hmm, found another error with Post Kinds... [Mon Jan 02 07:43:40.046094 2023] [php:warn] [pid 27459] [client 24.18.62.102:63621] PHP Warning: Undefined array key "url" in /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/templates/reply-metabox.php on line 20, referer: https://www.gregsplace.net/wp-admin/post.php?post=76&action=edit
jeremy, jeremycherfas, gRegor and [TMichelleMoore] joined the channel; blindnerd left the channel
#
[TMichelleMoore]
[tantek] or anybody - Can you tell me how to repost Tantek’s Mastodon post - https://fed.brid.gy/r/https://tantek.com/2023/001/t1/own-your-notes from my WordPress blog post? (I also want to reply, but thought I would start with the repost.) I tried using straight html but it produced an independent Mastodon post. (I syndicated the post with Share on Mastodon. Brid.gy backfeed is setup for Mastodon, if that matters.
#
[TMichelleMoore]
Can’t publish through Brid.gy on Mastodon. Thanks in advance for help! Michelle
#
Loqi
[preview] I am once again asking you to own your notes, rather than tweeting them into Big Chad's garage. Maybe you left the big garage and now toot ...
ben_thatmustbeme, blindnerd and [John_Eckman] joined the channel
#
[John_Eckman]
Yeah, I’ve got the same question [TMichelleMoore] - more broadly, if you’re using ActivityPub, Friends, Webfinger etc on a WordPress blog, how do you boost, comment on, or reply to posts from another ActivityPub instance?
#
[John_Eckman]
I’ve managed to follow some folks, and see in the WordPress Friends page their own updates, and an option to add a reaction, but how about the other kinds of interactions?
#
[John_Eckman]
My initial read is those actions/verbs aren’t yet supported - but is there some kind of magic whereby if I mention a federated author or a federated status update (I struggle to call them “toots”) it will get treated as a reply ?
#
[TMichelleMoore]
[John_Eckman] Do you like that Friends interface for viewing the posts of your ActivityPub friends? I don’t like the addition of all of the users in WordPress and am trying to think if it is a paradigm that I should get over. :-)
#
[John_Eckman]
Haven’t really decided yet, to be honest. I don’t love the idea of creating an account on a mastodon instance for reading that isn’t the one I post from - trying to figure out how to model POSSE (post on your own site, syndicate elsewhere) in a federated era.
#
[John_Eckman]
I like posting on my own WP instance, but then I also don’t want to just publish, I want to read and interact - using the Friends interface lets me do that locally
#
[TMichelleMoore]
[John_Eckman] Understood. Until I decide, I am ok with the Mastodon account. But still experimenting with federating.
blindnerd joined the channel
#
[tantek]
Does the WP activitypub plugin support “boosts”? I would start there, check its docs
#
[tantek]
[TMichelleMoore] the other alternative is to try the Bridgy Fed route rather than the WP AP plugin route
#
[John_Eckman]
I’m not sure, to be honest - hopefully [pfefferle] will be around at some point as I know he is active here.
#
[John_Eckman]
The FAQ says:
#
[John_Eckman]
> • functional inbox/outbox
#
[John_Eckman]
> • receive comments/reactions
#
[John_Eckman]
> • share posts
#
[John_Eckman]
> • follow (accept follows)
#
[John_Eckman]
> • signature verification
#
[John_Eckman]
> To implement:
#
[John_Eckman]
> • better WordPress integration
#
[John_Eckman]
> • better configuration possibilities
#
[John_Eckman]
> • threaded comments support
#
[John_Eckman]
> Implemented:
#
[John_Eckman]
> • custom links
#
[John_Eckman]
> • profile pages (JSON representation)
#
[TMichelleMoore]
[tantek] Are you viewing the people you are following through Brid.gy? Or maybe there is a way to view that using an RSS feed?
#
blindnerd
How easy is BridgyFed to setup compared to ActivityPub?
#
GWG
Unless someone writes a simple plugin..it needs some manual steps
#
blindnerd
I'll stick with ActivityPub despite its beta status then
#
GWG
ActivityPub is less feature filled, but it is self-hosted. Bridgy Fed is hosted by [snarfed] .
#
GWG
There is no trust issue with [snarfed], but I tend to try to look for the self-hosted options.
mehulkar and [pfefferle] joined the channel
#
[pfefferle]
↩️ No, that simply works (or not ☺ 😆)
#
[pfefferle]
↩️ Updates will be sent, but I am not sure if mastodon supports updates. For deletes, there is a bug that will be fixed with https://github.com/pfefferle/wordpress-activitypub/pull/231
#
Loqi
[preview] [pfefferle] #231 Security & privacy related fixes
#
[tantek]
Before retweets / boosts people just posted links. That still works.
#
GWG
[pfefferle]: You'll have to show me how you use the ActivityPub plugin. Expert level advice
#
[pfefferle]
↩️ Mastodon does not require Microformats, but it only allows some html elements. So you do not need to verify the html against indiewebify.me, but it could be that mastodon strips out some of your html tags.
gRegor and RasAlGhoul joined the channel
#
[TMichelleMoore]
@blindnerd I managed to install BridgyFed. I used a different redirection plugin and figuring out the e settings was the hardest part. I have tried both.
#
[TMichelleMoore]
↩️ Thank you [pfefferle] !
jeremycherfas, doug_c_im, angelo and RasAlGhoul_ joined the channel
#
GWG
[snarfed]: Did you get a chance to see if I fixed your problem?
#
[snarfed]
GWG not yet. I'll let you know when I do!
#
[snarfed]
did you test it with BF?
blindnerd joined the channel
#
[snarfed]
you don't really want to ship untested code 😀
#
GWG
[snarfed]: I fixed the response to an unhandled error, I intend to get a Bridgy Fed setup going. Need to set up a new instance
#
GWG
I rewrote error handling for everything first
doug_c_im and [iambismark] joined the channel
#
GWG
i need to decide what to call my fed test site
[fluffy] joined the channel
#
[snarfed]
GWG I tried a couple posts with BF, it at least doesn't crash now, and it's sending the wm ok, but it's still not adding the synd link
#
[snarfed]
Definitely test yourself before pushing another release!
#
GWG
[snarfed]: I didn't fix it setting a link because you told me there isn't an actual link...so I was debating that
#
GWG
I just removed it having the generic fed link if successful
#
GWG
I figured I need to debate whether I should take your thought and link to the user profile link
#
[snarfed]
Ahh ok. Yeah fair, we don't really know what to do for federated synd links yet
#
GWG
That's why I'm going back and forth on it
#
GWG
But I want the syndication itself to work
#
[TMichelleMoore]
[snarfed] Question - Could Brid.gy’s Mastodon authentication for publishing use the same mechanism that Jan Boddez’s WordPress Share on Mastodon plugin uses?
#
[snarfed]
[TMichelleMoore] hmm I'm not familiar with that
#
[snarfed]
It looks like that uses Mastodon OAuth, same as Bridgy
#
[TMichelleMoore]
[snarfed] There is also another plugin - Mastodon Autopost. Both make you authenticate to Mastodon and work. Would however they are doing it work for that issue with the character limit?
#
[snarfed]
Sorry, which character limit issue?
#
[snarfed]
Character limits are generally unrelated to auth
#
[TMichelleMoore]
[snarfed] Lol, that’s my interpretation. Give me a sec to pull the issue link.
#
[TMichelleMoore]
[snarfed] It’s the problem that I think is preventing some from being able to authenticate for Mastodon Publishing - https://github.com/mastodon/mastodon/issues/12915.
#
Loqi
[preview] [snarfed] #12915 reproducible HTTP 502 error in OAuth /oauth/authorize
#
[snarfed]
Ohhh ok
#
[snarfed]
Everyone uses the same auth mechanism. That issue is pretty far down in the plumbing, and there's a clear solution, but neither Mastodon nor doorkeeper have prioritized it, so I feel stuck there, and not very motivated
#
[TMichelleMoore]
[snarfed] Understood!
#
[TMichelleMoore]
[dshanske] +++ For helping me with a custom post type issue yesterday. We discovered that they are behaving differently than the post post type.
#
Loqi
[dshanske] has 2 karma over the last year
#
GWG
I'm taking a break from coding to do some content.