#dev 2018-05-17
2018-05-17 UTC
snarfed, KartikPrabhu, eli_oat, [xavierroy], [wiobyrne], renem and [grantcodes] joined the channel
# [grantcodes] Calling adventurous testers!
# [grantcodes] The inline micropub client have been working on is in kind of a working state, so I'd love for some people to try it on their sites
snarfed joined the channel
# [grantcodes] Yeah
# [grantcodes] It's better now too 😄
# [grantcodes] No, it should work for any site
# [grantcodes] And actually look like your site
# [grantcodes] Microformats!
# [grantcodes] It clones the first post, removes all the text and adds editors to the p-name and e-content
# [grantcodes] But that can be a bit buggy so I added the option to include a template
# [grantcodes] I'm kind of amazed I didn't think of it earlier 😛
[manton] joined the channel
# [grantcodes] It is like the ultimate publish from your own site! If only all mobile browsers supported WebExtensions...
# [grantcodes] But it definitely works in desktop chrome and firefox at least
# KartikPrabhu [grantcodes]: nice! I was planning to making something like this for my own site, looks neat though. I should try it out but all this "npm" stuff prevents me :)
mblaney joined the channel
# [grantcodes] Video of the newest version
# [grantcodes] KartikPrabhu: I'll release a bundled version once it's fully ready 🙂
# KartikPrabhu neat!
eli_oat and snarfed joined the channel
# [grantcodes] Now I am wondering how I will handle other properties that are either never inline or more difficult to edit inline like category, photo, post-status and syndication stuff. I guess I'll need to add a pop out editor on the side or something for those sort of things
dougbeal|iOS and dougbeal|mb1 joined the channel
# [grantcodes] aaronpk agreed, whatever I add it will almost certainly be hidden by default
loicm, strugee, KevinMarks_, iasai, AngeloGladding, cweiske, tantek__ and swentel joined the channel
jjuran joined the channel
# @mapkyca ↩️ @jgmac1106 @withknown Webmentions work for me, have you tried sending a webmention via curl and watching the logs? (twitter.com/_/status/997036514277314560)
KevinMarks joined the channel
tantek__, eureka, jeremycherfas, KevinMarks and [jgmac1106] joined the channel
# jgmac1106 @mapkyca all I get is Gregs-iMac:~ jgmac1106$ curl -I https://quickthoughts.jregorymcverry.com
# jgmac1106 jgmac1106$ curl -I https://jgregorymcverry.com
# Zegnat Could you humour me, grab the PHP file here, drop it on your server (anywhere accessible is fine), and visit it in your browser? https://gist.github.com/Zegnat/f4192c3cce05d847af3547eea80e383c
# Zegnat I think they meant to do this: https://indieweb.org/Webmention-developer#How_to_send_webmentions_with_cURL
# jgmac1106 didn’t display correctly: http://zegnattest.jgregorymcverry.com/
barpthewire joined the channel
# Zegnat `http://zegnattest.jgregorymcverry.com/authdiag.php` is the URL of the page.
# [jgmac1106] Okay i will file an issue with Reclaimhosting as this is probably the provider of 80% of the people I am onboarding
mblaney left the channel
# [jgmac1106] ...ohhh I thought it was a url test for all pages and its https
# [jgmac1106] thank you following up with my host
# [jgmac1106] convenient test @zegnat thx for building
tantek__ and [kimberlyhirsh] joined the channel
# @unoabraham pstuifzand/ekster: microsub server https://abraham.link/900/pstuifzand-ekster-microsub-server/ (twitter.com/_/status/997078842501206016)
KevinMarks and swentel joined the channel
swentel joined the channel
# [jgmac1106] @gwg working with Reclaim Hosting now to try and figure out a way to reproduce problem on their end. Timmy will figure it out
# [jgmac1106] Yeah so what exactly happens when MicroPub looks for an endpoint and header authorization. [aaronpk] posted a work around if a host won't whitelist. Wonder if something like that could just be built in.
# [jgmac1106] I could also just stop using WordPress and choose a different platform
KevinMarks and swentel joined the channel
# Zegnat GWG: basically what my diag tool does is POST to an endpoint it controls. The post body includes the expected authorization header content, and the actual header gets send as well. Then the test endpoint just returns a JSON of where in $_SERVER / getallheaders it was able to find the auth: https://gist.github.com/Zegnat/f4192c3cce05d847af3547eea80e383c#file-authdiag-php-L3-L20
swentel joined the channel
# [jgmac1106] my Host is trying to resolve problem they asked how to recreate the problem. I said this: Not sure how you could recreate the issue. It would require a WordPress install with the micropub and indieauth plugins installed and then you would have to try and publish a post using a micropub client like: https://quill.p3k.io/
# Zegnat Recreate the issue: go to http://zegnattest.jgregorymcverry.com/authdiag.php, input `http://zegnattest.jgregorymcverry.com/authdiag.php` in the field, hit “Run Test”.
# Zegnat Not sure what specific thing aaronpk may have suggested. But the usual fix is in snarfed’s FAQ: https://wordpress.org/plugins/micropub/#faq-header
# Zegnat jgmac1106, here is another test your host could try, as documented in the WP micropub thread: https://github.com/snarfed/wordpress-micropub/issues/56#issuecomment-299344751 - not a WP specific test though, just like my test file, straight up listing the received headers you can see authorization doesn’t come through.
# [jgmac1106] @zegnat Known works
# [jgmac1106] Yeah
# jeremycherfas Zegnat I finally have time to get back into micropub and Grav; should I update mintoken before starting?
# jeremycherfas Will do.
# jgmac1106 Maybe I was putting line in wrong place and we need to be specific where it goesOk I added an .htaccess file to zegnattest.jgregorymcverry.com with the following: SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 and the test comes back positive so I've added that line to your WP .htaccess before everything else. See if that works.
# jgmac1106 but I pass the zegnat test at least: http://zegnattest.jgregorymcverry.com/authdiag.php
# Zegnat I have updated the file to asp PHP to display errors, maybe that’ll tell us why the page is blank on the Known subdomain: https://gist.githubusercontent.com/Zegnat/f4192c3cce05d847af3547eea80e383c/raw/737e07c26a76306804e762836396303aadaa635d/authdiag.php
# jgmac1106 Known is working that way: http://quickthoughts.jgregorymcverry.com/zegnattest.php
# jeremycherfas Zegnat Not sure you can handle two remote debugging sessions at once, but since updating endpoint.php (pointing to same tokens.db) I am getting an error again. $curl_response is empty string. In skippy's common.php
# jeremycherfas Maybe I need to try your testfile?
# jeremycherfas Aaargh. OK, I'll do that. So, dump the old one, recreate, move, reauthroise Omnibear?
snarfed joined the channel
# jeremycherfas Omnibear is doing that thing where it hangs on Retrieving access token, and I can't remember how we got round that.
# jeremycherfas Nope, that didn't do it.
# jeremycherfas shakes fist at the same things zegnat shakes fist at
# jeremycherfas Going to check token.db first.
# [jgmac1106] [jeremycherfas] yeah I get hung on the token page but what is weird when I go back to check sometimes I am logged in
# [jgmac1106] not always sometime
KevinMarks joined the channel
# jeremycherfas No entry in tokens.db so it isn't getting that far.
leg joined the channel
# jeremycherfas Endpoint.php is sending `error fetching token
{message: "Error getting token", status: 400, error: null}
`# Zegnat You can try https://gist.github.com/Zegnat/f4192c3cce05d847af3547eea80e383c just to make sure it isn’t the Authorization header again
# jeremycherfas Put it alongside endpoint.php?
# jgmac1106 but it does have me thinking back to the Ghost article [chrisaldrich] shared about never being able to compete on ease of sign up and onbaording. Leaving open source to only the technical makes it a more privledged silo than any for profit compmnay open to the world. Funny folks talk about #OpenSource and #OER changing the world but if we can’t make it eay then its a “some pigs are more equal than others” problem
# jeremycherfas I get red green green
# jeremycherfas So, no $_SERVER['HTTP_AUTHORIZATION']
# jeremycherfas I suppose it is ... But as [jgmac1106] said, it is also deeply frustrating.
# jeremycherfas As this is all local, I suppose I could switch away from MAMP and uses nginx -- but I really don't want to get into that swamp.
[wiobyrne] joined the channel
# jeremycherfas I'm going to start with those quit(debug) tests again ...
[pfefferle] joined the channel
# jeremycherfas Yes.
# jeremycherfas Me neither. The first time I try to sign in from Omnibear, I get "Error getting token". Then I do it again and I get "Retrieving access token..." but it hangs. And when I click on the Omnibear icon again, it has not saved the endpoint.
tomasparks and snarfed joined the channel
# jeremycherfas !tell skippy are you skpy on github? Reading the issues on Omnibear and wondering what happened to https://github.com/keithjgrant/omnibear/issues/54
# jeremycherfas I just wonder now whether I should try and use Firefox rather than Chrome for this sort of local develop[ment/debugging.
KevinMarks joined the channel
# jeremycherfas Exactly the same weird behaviour in firefox, and a different kind of developer console to learn my way around. So I don't really see the point. Suggests to me that the problem is not all with Omnibear. But I suppose I ought to try and authorise with my Known instance to see what happens there.
# jeremycherfas That's interesting (I think). Omnibear does not seem to retrieve a token from Known.
# jeremycherfas Possibly not ...
leg joined the channel
# jeremycherfas Revoked previous access token in Known. Omnibear now does it's thing perfectly.
leg joined the channel
# jeremycherfas SOO frustrating.
# jeremycherfas Not tried with mintoken. This is on production Known.
# jeremycherfas Maybe I should take another closer look at mintoken at my end.
# Zegnat You mean like https://gist.github.com/Zegnat/a2ff8835a6bfc59e076ec7779cf01dc7 ? :P
# jeremycherfas Do you think it would be worthwhile me duplicating your stack exactly? I have about 45 minutes left, after an extremely frustrating 2 hours and more, and I would be willing to try anything at this stage.
# jeremycherfas I cannot move on to a micropub endpoint for Grav -- which is the ultimate goal -- until I can get auth and token working properly.
# jeremycherfas I'm going to give it a go now, carefully.
# jeremycherfas Following exactly. Not a good start. Cloning nanopub fails!
snarfed joined the channel
# jeremycherfas Permission denied (publickey)
# jeremycherfas Https, I think
# jeremycherfas No prob. I have now cloned it into offlinepub.test
# jeremycherfas But yopu want the directory to be called /mp Right?
# Zegnat jeremycherfas, yeah. The idea is that you run all those bash commands within the directory that then gets served as “http://offline.test”
# Loqi skippy: jeremycherfas left you a message 43 minutes ago: are you skpy on github? Reading the issues on Omnibear and wondering what happened to https://github.com/keithjgrant/omnibear/issues/54
# jeremycherfas Yup. So, some of the dependencies are out of date, but I'm going to ignore that.
[xavierroy] joined the channel
# Zegnat So in my case, I have a folder “offlinepub” that automatically maps to that domain. I go into that folder, and run all these bash lines one by one. (The clones specify the directory names already.) And yes, ignore any outdated whatevers. You are grabbing the latest settings straight from git for all 3 projects is the idea. If the projects are behind, not your problem ;)
KevinMarks joined the channel
# jeremycherfas All that now done. But what is the pw if I want to point Omnibear at index.html?
# jeremycherfas Cool.
# Zegnat yeah, just the index.html. OR rather “http://offlinepub.test”
# jeremycherfas Getting there ...
# jeremycherfas Login failed with "offline"
# jeremycherfas Yes, on selfauth. Let me try again without involving Omnibear.
# jeremycherfas Oh, but then the $me is invalid. Need to extract that.
# jeremycherfas I copied your bash stuff exactly, apart from the cloning.
# jeremycherfas define('USER_HASH', '474b5c6d3123fdc961989dec4b955244');
# jeremycherfas One minute; I have define('APP_URL', 'http://offlinepub.test/auth/');
# Zegnat You should have this: https://i.imgur.com/Z4TVB8d.png
# jeremycherfas But it should be http://localhost:8888/offlinepub.test/auth/
# jeremycherfas So let me edit that.
# jeremycherfas Right.
# Zegnat My bash lines edit all the settings files for all of the systems. But they assume the URL http://offlinepub.test ... if I had beter bash foo I might have been able to make that configurable :(
# jeremycherfas There must be some other setting of the URL I have missed. Looking now.
# jeremycherfas Yup. Just found the one in nanopub.php
# jeremycherfas I changed them all -- nanopub, nanopub config, tokensdb -- still getting a login failure. And now I have to go.
# jeremycherfas I'll try. Thanks anyway. Maybe tomorrow afternoon.
KevinMarks, maingo and snarfed joined the channel
# jgmac1106 not sure if this is a WordPress only issue so I thought I would post it here: https://github.com/pfefferle/wordpress-webmention/issues/176
[tantek] joined the channel
KevinMarks joined the channel
[manton] joined the channel
snarfed and [chrisaldrich] joined the channel
# jgmac1106 I am off to sit through Commencment enjoy all, and thanks for all the help this morning trying to get my micropub endpoints functioning. I will keep trying. Even though it is unrelated this much stuff always breaks when you switch themes, or a random plug in updates that breaks some niche but important part of your workflow. WordPress teachers patience more than PHP.
snarfed and KevinMarks joined the channel
gRegorLove joined the channel
# [tantek] www.creasian.de https://files.slack.com/files-pri/T03QR2B2T-FARKWE92P/image_uploaded_from_ios.jpg?pub_secret=a6395b9c01&name=Image uploaded from iOS.jpg
snarfed joined the channel
# Zegnat They are actually on http://www.creasian.berlin/
chimo and snarfed joined the channel
# pstuifzand skippy, I'm here now, I saw you had some questions
KartikPrabhu, snarfed, [wiobyrne], eli_oat, [kevinmarks] and [jgmac1106] joined the channel
[jeremycherfas], [wiobyrne] and snarfed joined the channel
# [jeremycherfas] !tell Zegnat I’ll be ready to try again tomorrow afternoon.
# [jeremycherfas] No, I learn a lot by going through it.
snarfed, chimo, leg, snarfed1, AngeloGladding, KartikPrabhu, mblaney and strugee joined the channel