#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
#
aaronpk
Wait what
#
aaronpk
Those screencasts have been this Micropub client??
#
[grantcodes]
It's better now too 😄
#
aaronpk
I assumed that was just a built in editing interface
#
[grantcodes]
No, it should work for any site
#
aaronpk
how does it work with other ppls sites??
#
[grantcodes]
And actually look like your site
#
[grantcodes]
Microformats!
#
aaronpk
amazing
#
[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
#
aaronpk
Whoa that is incredible... I had no idea !
#
aaronpk
okay definitely checking this out tomorrow!
#
[grantcodes]
I'm kind of amazed I didn't think of it earlier 😛
[manton] joined the channel
#
[manton]
[grantcodes] That is really cool!
#
[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 🙂
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
#
mblaney
grantcodes nice work, I have a very similar inline editor in dobrado. I use a pop out editor too to do exactly what you're describing.
dougbeal|iOS and dougbeal|mb1 joined the channel
#
aaronpk
I feel like most of the time i just want a quick way to edit a typo and I don't actually want to load up a whole giant editing interface that gives me all the knobs, so this is great
#
[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
#
Zegnat
jgmac1106, you think you have like ~2 minutes to try out my Auth-header-diagnostic tool?
#
tantek__
does anyone post on their own site their issues, comments, reacji on *private* GitHub repos? curious what others are doing (private posts?)
#
swentel
hmm seems tricky no
#
swentel
I don't think backfeed with bridgy works then right
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
#
petermolnar.net
edited /DNS (+327) "adding more criticism"
(view diff)
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
curl: (6) Could not resolve host: quickthoughts.jregorymcverry.com
#
jgmac1106
might help if I type my url
#
jgmac1106
okay here it is: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)
#
jgmac1106
curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)
#
Loqi
[Greg McVerry] Online Research and Media Skills
#
Zegnat
jgmac1106, what were you trying there?
#
jgmac1106
I am hoping I did a curl test correctly
#
jgmac1106
I probably didn't
#
Zegnat
Works on my end. Though not sure what you exactly are trying to test there
#
jgmac1106
I am currently stuck with no micropub access due to a problem in .htaccess I have tried everything @aaronpk recommended to no avail
#
jgmac1106
I have some header authorization problems but I think my issues on Known and WordPress could be realted to same problem, eveything was working and then it all stopped
#
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
#
jgmac1106
Definitely will humor you…until kids wake up…it was going to be my next step
#
Zegnat
If I did my job right, it should fully test the authorization header. If all the things come up red, it is definitely a server config issue
#
jgmac1106
Had the biggest loser dream last night, thought reclaimhosting had moved their devo server to Europe and blocked all bridgy access to be compliant with GDPR. yes that really happened
#
Zegnat
(BTW: Webmentions do not use Authorization headers, so if those have issues, it is separate from micropub.)
#
jgmac1106
I know but my dreaming self didn’t
#
jgmac1106
but mapkyca asked me to do a curl test on my header
#
Zegnat
In the known chat?
#
Zegnat
goes to take a look
#
jgmac1106
I assuming in this example I am the source url
#
jgmac1106
[zegnat] all set on test
barpthewire joined the channel
#
jgmac1106
but nothing happens when I click run test
#
jgmac1106
scratch webmentions not working on Known, they just took day or so to show up
#
Zegnat
Wow. That is a crazy result on the test
#
Zegnat
(You have to copy the URL of the page in the box before hitting run)
#
Zegnat
Test works for me
#
Zegnat
On your server
#
Zegnat
So, yeah, without some server jiggering, with .htaccess or by your hosting provider, micropub is not going to work.
#
Zegnat
At least not with the settings you have used to setup the zegnattest subdomain
#
Zegnat
That’s not the URL for “this 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
#
Zegnat
Basically the script will make a POST request to itself, with an Authorization header, and feed itself back the results of checking for the header.
#
Zegnat
There is no way for it to know if any other URLs receive the Authorization header or not. It has to be on the receiving end of the request itself.
#
[jgmac1106]
thank you following up with my host
#
Zegnat
I would love to make it automatic, but there is no 100% surefire way for PHP to know on what URL it is being served :(
#
[jgmac1106]
convenient test @zegnat thx for building
#
jgmac1106
and all before I have to wake up kids, thx
#
Zegnat
This at least confirms what the problem is with Auth headers. Webmentions, I got no clue, haha
#
jgmac1106
zegnat, strangley all my test webmentions that were not displaying yesterday are there today, weill not the likes, but the one reply, and its supposed to be two weeks of WordPress so I can deal with that latet
tantek__ and [kimberlyhirsh] joined the channel
#
jgmac1106
congrats [grantcodes] I can’t wait for for more micropub browser extenstions
KevinMarks and swentel joined the channel
#
GWG
This whole authorization header problem, trying to figure out what a server should do about it, as many installers of code are not technically minded and expect it to just work.
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
#
GWG
That's you. You are not alone
#
GWG
I am talking about from the code side
#
[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
#
Zegnat
GWG, if WordPress knows on what URL it is hosted, it could run my diag code automatically without user interference
#
Zegnat
So you could atleast inform the user
KevinMarks and swentel joined the channel
#
GWG
It does know
#
GWG
Or some variant of your code
#
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
#
GWG
I get the idea
#
Zegnat
GWG++
#
Loqi
gwg has 33 karma in this channel (352 overall)
#
Zegnat
No clue how easy it is to make WP do those parts, but it might be an option :)
#
jgmac1106
[zegnat] You aren’t the only one. Working with ReClaim Hosting now to try and recreate the issue
#
GWG
What about apache_request_headers?
#
GWG
I see some search results that mention it might be in there
#
Zegnat
getallheaders() should be an alias for apache_request_headers() ... but because this is PHP, who knows. My diag tries both functions.
#
GWG
Zegnat, I am considering adding an attempt to try both to my code
#
Zegnat
For Mintoken I just used apache_request_headers as the fallback for $_SERVER. If getallheaders() is only an alias, I see no reason to use it.
#
Zegnat
But no harm done trying both!
#
GWG
Exactly
#
GWG
Also, I want to return a.... authorization not provided error instead of unauthorized
#
Zegnat
That sounds good
#
GWG
The problem is, the way the system is designed, if there isn't a header, it passes things back to the WordPress auth system to allow for multiple authentication methods
#
GWG
So that would break
#
GWG
How do I know that something was a failed oauth request without an authorization header?
#
Zegnat
You don’t
#
GWG
Exactly
#
GWG
So, your diagnostic idea is probably the best move
swentel joined the channel
#
Zegnat
But note that the Micropub spec only accepts OAuth 2.0 Bearer Tokens. So in reality, for your specific Micropub endpoint URL, there is no reason to let WordPress try other authentication methods
#
GWG
Zegnat, but this is IndieAuth, not Micropub
#
GWG
Micropub knows about IndieAuth, but not vice versa
#
Zegnat
But IndieAuth doesn’t depend on the Authorization header, does it?
#
Zegnat
Ooh, I guess token endpoints do.
#
GWG
See the issue?
#
GWG
But I am sure we'll figure out something
#
[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
As long as text is showing red for $_SERVER['HTTP_AUTHORIZATION'] on my diag tool, the issue is there, [jgmac1106] ;)
#
jgmac1106
they also asked if folks knew what [aaronpk] suggested to whitelist. Hating WordPress more and more very day
#
Zegnat
This isn’t even a WP problem. Does any Micropub dool work with Known for you? They will not unless you have different server settings there.
#
Zegnat
s/dool/tool/
#
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
What you need is the Apache-PHP setup to not make the Authorization header disappear. You would expect HTTP_AUTHORIZATION to show up, which is what that fix documented in the FAQ does.
#
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.
#
Loqi
[tamaracks] Thanks for the help. Before I contact the host, I am trying to see if I can break it down into a simple test to check for the Authorization header without Wordpress or anything else in the mix. Can you tell me if the following should work? I creat...
#
[jgmac1106]
@zegnat Known works
#
Zegnat
It shouldn’t be able to :/ Can you put my diag file on the same server instance / domain as Known? We can check if authorization headers are somehow enabled there
#
jgmac1106
My Known instance has two ht-access files...strange
#
jgmac1106
nevermind
#
jeremycherfas
Zegnat I finally have time to get back into micropub and Grav; should I update mintoken before starting?
#
Zegnat
jeremycherfas, yes, version 2 is way more secure
#
Zegnat
And should basically be production ready too
#
jgmac1106
weird same error but iit works: $_SERVER['HTTP_AUTHORIZATION'] is unavailable on this server. You may need to change some configurations to get tools working.
#
Zegnat
You should probably drop the test file next to Known’s index.php file. That’s the only way to test the exact same environment.
#
Loqi
totally
#
jgmac1106
I did that first and it wouldn’t load, then when I created the subdomain and put it there it did load
#
Zegnat
It wouldn’t load? That’s super weird.
#
Zegnat
checks Known htaccess file
#
Zegnat
Because running on a subdomain could mean different Apache settings and htaccess files apply. Which means it isn’t testing anything.
#
Zegnat
Huh. That is. Weird.
#
jgmac1106
I do eberything on subdomains. I can’t afford a gajillion domains
#
Zegnat
Yeah, subdomains are awesome. But if you need to test a specific environment, it is very hard to guarantee they are both the same from Apache’s point of view
#
Zegnat
I wonder if some PHP error is happening that it is hiding
#
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
quiill still throws endpoint error
#
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
let me clear my cache and see if that works
#
jgmac1106
didn’t work. I now pass the header test but it now says I need a location header
#
jgmac1106
HTTP/1.1 500 Internal Server Error Date: Thu, 17 May 2018 13:28:48 GMT Server: Apache Upgrade: h2,h2c Connection: Upgrade, close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8
#
jgmac1106
weird Known gives same error but MicroPub publishing is successful (using indigenous for Known and quill for wordpress)
#
jgmac1106
…ummmm file mot have displayed on subdomain because said file is blank….sorry
#
jgmac1106
huzah I fixed it. I fixed it
#
Zegnat
Not sure what has changed to make it work on Known, but whatever
#
Zegnat
It seems that Known by default has code in its .htaccess to allow the Authorization header.
#
jgmac1106
I added this from Known RewriteCond %{ENV:BASE} ^$ RewriteCond $1::%{REQUEST_URI} ^(.*)::(.*?)\1$ RewriteRule ^(.*)$ - [ENV=BASE:%2]
#
jgmac1106
No idea why it worked
#
Zegnat
that is really weird, I would have expected the lines above it with HTTP_AUTHORIZATION to be what fixes it
#
jgmac1106
…it passes test but I can’t still publish with Quill. Let me try Indigienous
#
jgmac1106
I already had that line
#
jgmac1106
Nope Indigenous throws 500 error as well
#
Zegnat
Well, I’ll leave further debugging to the respective tools’ authors then :P If my test file comes up green, it means Authorization gets through
#
jgmac1106
yeah It is coming through, thx for all your help this morning
#
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?
#
Zegnat
You will need to recreate tokens.db, jeremycherfas, the schema has changed
#
jeremycherfas
Aaargh. OK, I'll do that. So, dump the old one, recreate, move, reauthroise Omnibear?
#
Zegnat
It wasn’t really possible to migrate old tokens with the security update, because the old tokens simple didn’t have the new “secured” part
snarfed joined the channel
#
skippy
morning.
#
Loqi
morning!
#
jeremycherfas
Omnibear is doing that thing where it hangs on Retrieving access token, and I can't remember how we got round that.
#
skippy
clear your browser cache?
#
Zegnat
shakes fist at indecipherable errors, including his own
#
jeremycherfas
Nope, that didn't do it.
#
jeremycherfas
shakes fist at the same things zegnat shakes fist at
#
skippy
ugh. I forget, too. but I had plenty of those erors.
#
skippy
check your micropub logs? it might be crashing out there?
#
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
#
Zegnat
Omnibear has 2 different views to see what is going on. You can either right-click the icon and inspect popup, or you need to go to your extensions page and inspect the “background page”.
#
Zegnat
Different steps of the login happen in different parts though. I think for the token retrieval you need to inspect the background page.
KevinMarks joined the channel
#
jeremycherfas
No entry in tokens.db so it isn't getting that far.
#
skippy
i've also noticed that when I'm logged in to Omnibear, my browser seems to make requests for non-existent resources on vairous pages...
#
Zegnat
That sounds odd skippy, what sort of resources?
leg joined the channel
#
skippy
it is odd. i need to look into it some more.
#
jeremycherfas
Endpoint.php is sending `error fetching token {message: "Error getting token", status: 400, error: null}`
#
skippy
"GET /idb.js HTTP/2.0", "GET /store.js HTTP/2.0", "GET /sw.js HTTP/2.0"
#
skippy
looks like those are the ones that i see.
#
skippy
not sure what's triggering. need to dig in some more. not super critical; just somethign i noticed.
#
Zegnat
jeremycherfas, yep, definitely dieing somewhere then. *sigh*
#
Zegnat
You can try https://gist.github.com/Zegnat/f4192c3cce05d847af3547eea80e383c just to make sure it isn’t the Authorization header again
#
jgmac1106
Well when I do figure out the issue Reclaim Hosting asked me to write a community guide as it isn’t the first trouble ticket that have had on the issue
#
jeremycherfas
Put it alongside endpoint.php?
#
jgmac1106
at least we know what has to happen in the .htaccess file. thx [zegnat]
#
Zegnat
jeremycherfas, yeah
#
Zegnat
jgmac1106, indeed. You better have documented your journey, haha
#
jgmac1106
you can follow the thrown books and smashed windows from my kitchen to the office. It is a pretty well defined journey
#
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
#
jgmac1106
alright back to learning css grid to get ready for classes starting on Monday. I love the tools and tutorials built into Firefox Developer edition.
#
Zegnat
Alright, so it isn’t the authorization then, jeremycherfas, good to know.
#
jeremycherfas
So, no $_SERVER['HTTP_AUTHORIZATION']
#
Zegnat
Which is fine, as I fall back to the apache_* function
#
jeremycherfas
I suppose it is ... But as [jgmac1106] said, it is also deeply frustrating.
#
Zegnat
Yes, blame Apache
#
Zegnat
If only everyone was on nginx with PHP 7.2. But alas. :P
#
jgmac1106
This was the line that fixed my header authorization: SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
#
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.
#
Zegnat
Don’t
[wiobyrne] joined the channel
#
Zegnat
It is just a problem, especially with PHP, where all products are super dependent on the rest of the server stack :(
#
jeremycherfas
I'm going to start with those quit(debug) tests again ...
#
Zegnat
jeremycherfas, after recreating the db, did you add the endpoint back to the settings table?
[pfefferle] joined the channel
#
Loqi
*sniff*
#
Zegnat
Just making sure you didn’t skip that step, before you start debugging line-for-line
#
jgmac1106
I was just about to write same thing [jeremycherfas] I could just spin up an Ubuntu instance on AWS, not even use my shard hosting company and start over
#
Zegnat
Then I am not sure what it is complaining about this time, jeremycherfas :(
#
jgmac1106
[wiobyrne] can you try publishing using a micropub client for me?
#
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
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[keithjgrant] #54 Show step-by-step feedback during authentication
#
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
#
Zegnat
I have had problems with Omnibear in Firefox. One of the reasons I keep Chromium around at all
#
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.
#
Zegnat
So, possibly not even a mintoken issue then?
#
Zegnat
All these alternative setups. Why isn’t everyone just using *exactly* my stack?! :P
#
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.
#
Zegnat
But still not with mintoken? Hmm.
#
jeremycherfas
Not tried with mintoken. This is on production Known.
#
jeremycherfas
Maybe I should take another closer look at mintoken at my end.
#
jgmac1106
[zegnat] do a post on your stack so we can all copy the set up. Whack-a-mole gets tiring
#
Zegnat
Offline I run valet, but that is macOS only I’m afraid
#
Zegnat
That is the confusing thing to me though. I test Mintoken with that setup. And it works with Omnibear. So it should really work for jeremycherfas too, who is using a nearly identical setup
#
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.
#
Zegnat
Sure you could try. I would also be happy to take out some time later where we go through it together from scratch.
#
jeremycherfas
I'm going to give it a go now, carefully.
#
Zegnat
Note that it sets things up for “offlinepub.test”
#
Zegnat
So you might need to change that. Else, following that gist should get you a functioning setup of nanopub with completely local indieauth
#
jeremycherfas
Following exactly. Not a good start. Cloning nanopub fails!
#
jgmac1106
random question why do you need u-photo for parsers to know a url is coming up? How come img or a doesn’t suffice?
snarfed joined the channel
#
jeremycherfas
Permission denied (publickey)
#
Zegnat
How do you usually clone from github, jeremycherfas?
#
jeremycherfas
Https, I think
#
Zegnat
That might be it then, yeah.
#
jeremycherfas
No prob. I have now cloned it into offlinepub.test
#
jeremycherfas
But yopu want the directory to be called /mp Right?
#
aaronpk
jgmac1106: the idea with Microformats is to consistently use parser prefixes (u-) instead of relying on html tags, to separate the data from the html
#
aaronpk
Without the prefix the parser wouldn't know which class name on an img tag is an mf2 property
#
Zegnat
jeremycherfas, yeah. The idea is that you run all those bash commands within the directory that then gets served as “http://offline.test”
#
Zegnat
Or offlinepub.test, actually
#
skippy
I dont use Apache or nginx. I use caddy. I love it.
#
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.
#
skippy
jeremycherfas: yes, I am skpy
[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?
#
Zegnat
the password is “offline”
#
Zegnat
yeah, just the index.html. OR rather “http://offlinepub.test”
#
Zegnat
If you have that domain setup?
#
Zegnat
Any luck, jeremycherfas?
#
jeremycherfas
Getting there ...
#
jeremycherfas
Login failed with "offline"
#
Zegnat
on selfauth?
#
Zegnat
“offline” works for me in the password prompt for selfauth.
#
jeremycherfas
Yes, on selfauth. Let me try again without involving Omnibear.
#
jeremycherfas
Oh, but then the $me is invalid. Need to extract that.
#
Zegnat
That password can’t be wrong if you created the config file the same os me :/
#
jeremycherfas
I copied your bash stuff exactly, apart from the cloning.
#
Zegnat
What is the user_hash when you do `less auth/config.php` ?
#
jeremycherfas
define('USER_HASH', '474b5c6d3123fdc961989dec4b955244');
#
Zegnat
Yep, so password should be “offline”
#
jeremycherfas
One minute; I have define('APP_URL', 'http://offlinepub.test/auth/');
#
Zegnat
APP_URL should be where selfauth is available
#
jeremycherfas
So let me edit that.
#
Zegnat
Best run selfauth’s setup file then, jeremycherfas! Because APP_URL actually uses some of those URLs to create its hash.
#
Zegnat
Uuh. USER_HASH uses those URLs
#
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 :(
#
Zegnat
will have to redo this in PHP so he knows what everything does
#
jgmac1106
!tell [aaronpk] thanks
#
Loqi
Ok, I'll tell them that when I see them next
#
jeremycherfas
There must be some other setting of the URL I have missed. Looking now.
#
Zegnat
All 3 systems need the URL to be set, so, yeah. Look at the bash lines you executed
#
jeremycherfas
Yup. Just found the one in nanopub.php
#
Zegnat
And the mintoken one is in the sqlite settings table, as you know :)
#
jeremycherfas
I changed them all -- nanopub, nanopub config, tokensdb -- still getting a login failure. And now I have to go.
#
Zegnat
Ugh. Well. Maybe we’ll do a voice call next and see what we can do
#
Zegnat
Have a good one!
#
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
#
Loqi
[jgmac1106] #176 Change message when webmention already exist.
[tantek] joined the channel
#
[tantek]
How to debug this kind of (simple) error?
#
Zegnat
Is that the right repo jgmac1106? I don’t see the “class-linkbacks-mf2-handler.php” file there :/
KevinMarks joined the channel
#
jgmac1106
I didn’t know. Didn’t have the time to recreate the bug on my own time. Have to head to campus for graduation. Point me to correct rpo and happy to move
#
jgmac1106
so I cross posted as it came up in WordPress. I wante to capture the use case
#
Zegnat
jgmac1106, yeah, good issue nevertheless
#
Zegnat
404, [tantek]?
[manton] joined the channel
#
jgmac1106
yeah I was hoping to do my first webmention github issue filing from there if that is what that page does
snarfed and [chrisaldrich] joined the channel
#
jgmac1106
You can see the context of conversation in #wordpress and isssues related to that plug-in
#
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
#
skippy
oooh, recent commits to omnibear suggest that the syndication targets will get corrected. That's exciting!
#
[tantek]
Zegnat specially root index file naming problem?
#
Zegnat
I don’t know. Don’t know where you got “creasian.de” from. All I know is I get a not found there :)
#
skippy
i get a 404 on that domain, too.
gRegorLove joined the channel
#
[tantek]
It's a restaurant here in Berlin
#
[tantek]
Zegnat that's where I got it from ^^^
snarfed joined the channel
#
Zegnat
hahaha
#
Loqi
awesome
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
#
Zegnat
dgold, thanks for the token endpoint merge!
#
Loqi
yay!
#
Zegnat
Now I need to change my offline testing workflow again
[jeremycherfas], [wiobyrne] and snarfed joined the channel
#
[jeremycherfas]
!tell Zegnat I’ll be ready to try again tomorrow afternoon.
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
I am probably online then :) I’ll see if I can’t make it even easier to set up the selfauth+mintoken+nanopub set
#
[jeremycherfas]
No, I learn a lot by going through it.
snarfed, chimo, leg, snarfed1, AngeloGladding, KartikPrabhu, mblaney and strugee joined the channel