#wordpress 2018-07-24

2018-07-24 UTC
[eddie] and tantek__ joined the channel
#
[matpacker]
GWG: have been working through my WP install to try and get this location header / endpoint error sorted.
#
GWG
Oh?
#
[matpacker]
Have been using micro.blog as the endpoint and token provider and it's working, still getting location errors, but the post from Quill goes through.
#
GWG
Interesting, I never built the interface for that, but micro.blog's endpoint should work
#
[matpacker]
Ideally, I'd prefer to be using the full stack of the IndieWeb plugins...and therefore my own endpoints, but I can't seem to get them working
[miklb] joined the channel
#
[miklb]
anyone use post kinds and post photos from the WP admin?
#
GWG
[miklb]: I have, why?
#
[miklb]
well, if I insert the image into a post, then it shows up twice using the gallery shortcode example in the default photo kind template.
#
[miklb]
how do I attach the image without inserting it into the content
#
GWG
I do it as the featured image
#
GWG
I tried to code it to avoid the duplicate issue.
#
[miklb]
ah, so you add a single image as a featured image, otherwise a gallery. Gotcha
#
[miklb]
thanks
#
GWG
[miklb]: I figured out the next generation of Post Kinds that may cause issues for implementers. I'm still in the Micropub weeds though
#
GWG
It basically involves generating the UI and properties by adding to the system that sets up the kinds.
tantek__, [snarfed] and jhsheridan joined the channel
#
jgmac1106
still stuck with these darn header authorization issues, micropub is work(ish) but can’t use a microsub reader yet
#
sknebel
that seems odd for a header issue
#
jgmac1106
"header": "HTTP/1.1 403 Forbidden\r\nServer: nginx/1.14.0\r\nContent-Type: application/json\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nX-Powered-By: PHP/7.2.7-1+ubuntu16.04.1+deb.sury.org+1\r\nCache-Control: no-cache, private\r\nDate: Tue, 24 Jul 2018 10:01:34 GMT",
#
jgmac1106
weird thing I am on an Apache server not nginx
#
sknebel
when do you get that?
#
jgmac1106
but similar token issues the header authorization used to throw with micropub "body": "{\"error\":\"forbidden\",\"error_description\":\"The token endpoint could not verify this access token\",\"token_endpoint\":{\"url\":\"https:\\/\\/jgregorymcverry.com\\/wp-json\\/indieauth\\/1.0\\/token\",\"code\":400,\"response\":\"{\\\"error\\\":\\\"parameter_absent\\\",\\\"error_description\\\":\\\"Bearer Token Not Supplied\\\"}\"}
#
jgmac1106
I tried logging into monocle
#
jgmac1106
Eddie told me to try that as it gives better error reporting than Indigenous
#
jgmac1106
!tell Pfefferle I am not recommending SemPress to my class because I want them to build a static homepage. Only reason leaving it out of my tutorial
#
Loqi
Ok, I'll tell them that when I see them next
#
jgmac1106
its WordPress and header authorizations I am sure, always something
#
GWG
I am not 100% sure of that
#
jgmac1106
hmm when I read this on thw wiki about Independent Publisher: “There is a separate and related, but forked, version of Independent Publisher in the WordPress.com repository that does not have these indieweb friendly elements.” I wonder if it references the theme available from WordPress.org to best of my knowledge the h-card is missing in the theme
#
sknebel
does it tell you anything else than the "header": "HTTP/1.1 403 For.... stuff?
#
sknebel
cause from that it isn#t even clear what it is trying to do at that point
#
jgmac1106
okay neither version of indpendent publisher comes with an hcard, I will go back and revise wiki at another date, tried the one available from WordPress and direct from GitHub
[pfefferle] joined the channel
#
[pfefferle]
[jgmac1106] this is fixable I think... Do we have already an issue for that?
#
Loqi
[pfefferle]: jgmac1106 left you a message 48 minutes ago: I am not recommending SemPress to my class because I want them to build a static homepage. Only reason leaving it out of my tutorial
#
jgmac1106
No but I can make one, just wanted to let you know why I wasn’t showing SemPress any love in my class and just recommending 2016 and Indpendent
#
[pfefferle]
No problem 😁
#
GWG
We probably need to invest more time in themes, as discussed
#
[pfefferle]
Would be nice if you can file the issue
#
GWG
pfefferle, I have some PRs I sent you
#
[pfefferle]
I am not sure this is a good solution... because it is always limiting
#
jgmac1106
I didn’t have time to go in and diagnose and show what happens when you select a static homepage, etc
#
[pfefferle]
Perhaps we start a brainstorming discussion in the wordpress-indieweb repo
#
[pfefferle]
[jgmac1106] no problem, I can do this
#
jgmac1106
[pfefferle] my work around was to recommend either 2016 or Independent and then I bought a site license to Elementor to give everyone a page builder
#
GWG
pfefferle, I started labelling the issues in various repos
#
Loqi
gwg has 75 karma in this channel (387 overall)
#
jgmac1106
we love issue labels
#
GWG
That's what got you to notice an old question recently
#
[pfefferle]
GWG sorry for the offensive sounding comments 😞
#
jgmac1106
it’s a two minute tutorial [pfefferle] I can go back and add your theme
#
[pfefferle]
Would be nice, ZenPress might be also an option!
#
jgmac1106
I am also gonna include it in a tutorial on “keep the theme you love…just indieweb from subdomain”
#
jgmac1106
I will check it out, limiting kids to two themes sounds so un indieweb but makes my support job easier…then I can focus on teaching
#
[pfefferle]
Microformats are a nice solution, but very hard for CMSs...
#
[pfefferle]
[jgmac1106] sure, I would love to find a solution for this problem
#
jgmac1106
yes, I no loner recommend to people try adding mf2 plugin and see if your existing theme works..well you can try once but your WP choice is either A: abandon your theme and use IndieWeb or B: use a subdomain
#
jgmac1106
well I need to go hop in the shower and head to work, I will be around in a few hours and back at tutorial making
#
GWG
[pfefferle]: I wasn't offended, by the way. I have a lot of questions I put in the issues that I wasn't expecting to be answered immediately.
#
GWG
Because people keep commenting we have so many plugins, I always ask if there is a consolidation opportunity to make fewer ones. But considering the issues some people still have with IndieAuth and Micropub, not sure if we're there yet.
jhsheridan and donblanco joined the channel
#
jgmac1106
[gwg] it ain’t that bad since the indieweb plugin wraps up all the plugins into one
#
donblanco
Trying to narrow down my site issues, feel like I just go around in circles :(
#
donblanco
current problem - indiewebify.me doesn't like my h-card - not representative https://indiewebify.me/validate-h-card/?url=https%3A%2F%2Fglenn.thedixons.net
#
donblanco
WordPress w/ IndieWeb plugins
[jgmac1106] joined the channel
#
[jgmac1106]
@donblanco what is the url indiewebify.me likes more than the basic h-card requires
#
[jgmac1106]
Peeking at your site might be easier
#
donblanco
the validator complains that there is no u-url with a matching rel=me
jgmac1106 joined the channel
#
jgmac1106
glenn.thedixons.net?
#
jgmac1106
found this in your sidebar: author vcard h-card
#
jgmac1106
followd by this: div class="hcard-header
#
jgmac1106
I think the two are tripping up the parser
#
jgmac1106
yep not working
#
donblanco
So I'm guessing one of those is coming from the main IndieWeb plugin, the other from maybe the Indieweb-2016 theme?
#
jgmac1106
here is mine: <div class="hcard-display h-card vcard p-author"><div class="hcard-header">
#
donblanco
I've done no hand-coding of any indieweb anything, not the h-* stuff any way
#
jgmac1106
I am using the same thing with the plugin
#
jgmac1106
you could easily deactivate the hcard plugin and manually add your h-card
#
jgmac1106
ours are exactly the same
#
jgmac1106
but you do have two of the hcard widgets in your sidebar it looks lie
#
jgmac1106
I see one here: <aside id="secondary" class="sidebar widget-area" role="complementary"> and one here <div class="hcard-display h-card vcard p-author"><div class="hcard-header"><a class="u-url url fn" href="https://glenn.thedixons.net/"
#
jgmac1106
line 637 and 648
#
jgmac1106
double h-cards has been known to trip things up
#
donblanco
in WordPress Appearance > Widgets I have the H-card Widget and the rel=me widget in the sidebar. (plus search and recent comments) - that's it - both of those widgets come from the IndieWeb plugin
#
donblanco
so what is the source of the doubling?
#
jgmac1106
but I can’t find the one in your aside and clearly see the sidebar widget.
#
jgmac1106
I am not sure
#
jgmac1106
I have to head to work, but toggle of the widget and see it you still have the hcard in line 637 in your aside
#
jgmac1106
worse case scenario you can use a plain html widget and just manually add the h-card.
#
donblanco
yeah - not sure what the 'aside' is?
#
jgmac1106
yeah me neither
#
jgmac1106
my aplogies it is in the sidebar widget: <aside id="secondary" class="sidebar widget-area" role="complementary">
#
jgmac1106
but whatever it is that is causing the problem, delete the widget temporarily and let’s see if both h-cards dissapear,,
#
donblanco
strange - not sure what is creating the aside - seems to be in/around the search function, not displaying on the site. I'll have to futz with the widgets and/or plugins, like you said. Thanks!
#
jgmac1106
I think it is the recent comment widget
#
jgmac1106
I think that has your h-card in it as well
#
jgmac1106
try toggiling off recent comments and I bet you will be all set
#
jgmac1106
well I got to go , good luck
#
sknebel
I don't think any duplicate h-card is an issue here
#
sknebel
indiewebify me seems to find the main one just fine
#
[jgmac1106]
Okay. I know the hcard in the recent comment widget sidebar messed up others on the past
#
sknebel
there's a hidden second h-card that's not really necessary and probably should be removed, but it's got nothing to do with there being no representative one
#
sknebel
(in the sidebar, class "byline". it ends up as just another h-feed entry, which doesn't really make sense)
#
donblanco
the byline is being inserted by the indieweb-twentysixteen theme, then set to display:none
#
sknebel
ah, I guess that brings its own h-card feature too?
#
donblanco
if I turn remove the h-card widget (from the IndieWeb plugin) then the indiewebify.me validator just finds the first h-card on the page. Unfortunately it is finding Chris Aldrich' h-card, from some interaction between us
#
donblanco
and it still complains that it isn't the 'representative' h-card because no u-url and rel=me match
#
donblanco
I'm guessing this is the source of some of the problems I've run into when trying to use various indieweb services
#
sknebel
what kind of problems? I think few things check for that
#
donblanco
the Indigenous app gives me a Micropub 403 error
#
sknebel
that's something else
#
donblanco
Indiepaper let's me authorize, then drops me back to the login page
#
donblanco
I've reached out on github but I forget what the result was
#
donblanco
issue with tokens i think
#
donblanco
ok, switched back to 2017 theme, added h-card widget back to sidebar - indiewebify.me finds *my* h-card, but still wants u-url. Not sure why the plugin doesn't add that
#
[jgmac1106]
@donblanco try removing recent comment widget. Not sure why it works but it fixed [mrkrndvs]
#
sknebel
there is a u-url in the h-card, you're just missing a rel=me pointing to your site
#
[jgmac1106]
@sknebel I saw those right after <a= in his social media links was a rel=me back to his site
#
[jgmac1106]
I am stuck at the swing bridge in my town
#
[jgmac1106]
Get to sit for ten-twenty minutes
#
sknebel
there's one to thedixons.net, but not to glenn.thedixons.net
[pfefferle] joined the channel
#
[pfefferle]
[jgmac1106] I can not reproduce the problem with SemPress and a static Front Page
#
donblanco
in the extended user profile, there is a spot for 'website' where I have entered my own URL
#
donblanco
Indiewebify.me finds that in the sidebar
#
donblanco
removed my URL from profile, added it into 'other sites' area - Indiewebify.me results are same - it keeps telling me "Almost there!" *sigh*
#
donblanco
ok, gotta go do a bit of hiking - back in a few hours to work on this a bit more - thanks for all the tips!
jeremycherfas joined the channel
#
[jgmac1106]
Sweet [pfefferle] will re-record tutorial and include SemPress
#
[jgmac1106]
Will close issue
[schmarty], jgmac1106, [jgmac1106], [snarfed], taragon-pdx, [eddie], [cleverdevil], [generativist], jhsheridan, tantek__ and [ryan339] joined the channel
#
dougbeal
I wonder if we could do all the uf2 mods as a child theme
#
dougbeal
And how much shared code there would be between different children
jhsheridan and MarcoZDe joined the channel
#
MarcoZDe
Hi there! Indieweb newcomer here. :-)
[joewillmott] joined the channel
#
jgmac1106
Hey MarcoZDe you don’t feel like a newcomer at all since the feed has been capturing your journey and sharing it with us.
#
jgmac1106
Congrats
#
MarcoZDe
jgmac1106: oh, you mean my tweets on the subject?
#
MarcoZDe
And thank you! I got the most important WP plugins installed and running and am now starting to experiment, gain experience etc.
#
jgmac1106
yeag Marco we followed your story the whole time. I am actually interviewing new users about their onboarding experience, if you feel like sharing your story some time let me know
[ryan339], [eddie], [kevinmarks], [generativist], tantek__, [jgmac1106], [cleverdevil], [chrisaldrich] and dmcweeney joined the channel