#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.
# [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.
# 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.
# 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.
# [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.
# [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.
# 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.
# [arush] @gwg OK thanks.
# 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.
# [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
# blindnerd https://www.youtube.com/watch?v=8fGLiIvKKys
# blindnerd I set the kind to video, should I use watch instead?
# 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?
# [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
# [arush] God I can't type today.
# blindnerd Thing is I'm not getting that little dialog that says it's been parsed
# 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
# 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
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
# 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
# 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
# blindnerd I'll admit I get frustrated easily and I'm not the best explainer when frustrated
# 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
# 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
# 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
# blindnerd Not that I know of, if I remember, the site health page states that is available
# 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
# 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
# blindnerd https://www.gregsplace.net
# blindnerd okay, upgraded you to contributor status
# 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
# 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
# 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
# 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 ost-kinds/lib/parse-this/includes/class-parse-this-youtube.php(15): preg_match()\n#1 /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this.php(446): Parse_This_YouTube::parse()\n#2 /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-rest-parse-this.php(164): Parse_This->parse()\n#3 /var/www/wordpress
# blindnerd /wp-includes/rest-api/class-wp-rest-server.php(1171): REST_Parse_This::read()\n#4 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request()\n#5 /var/www/wordpress/wp-content/plugins/activitypub/includes/rest/class-server.php(22): WP_REST_Server->dispatch()\n#6 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(442):
# 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 /wp-includes/class-wp.php(399): do_action_ref_array()\n#12 /var/www/wordpress/wp-includes/class-wp.php(780): WP->parse_request()\n#13 /var/www/wordpress/wp-includes/functions.php(1332): WP->main()\n#14 /var/www/wordpress/wp-blog-header.php(16): wp()\n#15 /var/www/wordpress/index.php(17): require('...')\n#16
{main}
\n thrown in /var/www/wordpress/wp-content/plugins/indieweb-post-k# 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 ost-kinds/lib/parse-this/includes/class-parse-this-youtube.php(15): preg_match()\n#1 /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this.php(446): Parse_This_YouTube::parse()\n#2 /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-rest-parse-this.php(164): Parse_This->parse()\n#3 /var/www/wordpress
# blindnerd /wp-includes/rest-api/class-wp-rest-server.php(1171): REST_Parse_This::read()\n#4 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request()\n#5 /var/www/wordpress/wp-content/plugins/activitypub/includes/rest/class-server.php(22): WP_REST_Server->dispatch()\n#6 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(442):
# 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 /wp-includes/class-wp.php(399): do_action_ref_array()\n#12 /var/www/wordpress/wp-includes/class-wp.php(780): WP->parse_request()\n#13 /var/www/wordpress/wp-includes/functions.php(1332): WP->main()\n#14 /var/www/wordpress/wp-blog-header.php(16): wp()\n#15 /var/www/wordpress/index.php(17): require('...')\n#16
{main}
\n thrown in /var/www/wordpress/wp-content/plugins/indieweb-post-k# 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 ost-kinds/lib/parse-this/includes/class-parse-this-youtube.php(15): preg_match()\n#1 /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-parse-this.php(446): Parse_This_YouTube::parse()\n#2 /var/www/wordpress/wp-content/plugins/indieweb-post-kinds/lib/parse-this/includes/class-rest-parse-this.php(164): Parse_This->parse()\n#3 /var/www/wordpress
# blindnerd /wp-includes/rest-api/class-wp-rest-server.php(1171): REST_Parse_This::read()\n#4 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Server->respond_to_request()\n#5 /var/www/wordpress/wp-content/plugins/activitypub/includes/rest/class-server.php(22): WP_REST_Server->dispatch()\n#6 /var/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php(442):
# 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 /wp-includes/class-wp.php(399): do_action_ref_array()\n#12 /var/www/wordpress/wp-includes/class-wp.php(780): WP->parse_request()\n#13 /var/www/wordpress/wp-includes/functions.php(1332): WP->main()\n#14 /var/www/wordpress/wp-blog-header.php(16): wp()\n#15 /var/www/wordpress/index.php(17): require('...')\n#16
{main}
\n thrown in /var/www/wordpress/wp-content/plugins/indieweb-post-k# blindnerd inds/lib/parse-this/includes/class-parse-this-youtube.php on line 15
# 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
# blindnerd this is 8.1.2 I believe but same major version I suppose
# 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?
# 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
# blindnerd sorry, just watching the error log to see what's going on
# blindnerd okay, just installed the update to Post Kinds
jsbach joined the channel
# blindnerd going to test it myself now
# 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
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
# [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?
# blindnerd I'll stick with ActivityPub despite its beta status then
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
# [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.
# [pfefferle] 😊
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
blindnerd joined the channel
doug_c_im and [iambismark] joined the channel
[fluffy] joined the channel
# [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?
# [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?
# [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
# [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.