#wordpress 2018-05-26

2018-05-26 UTC
[cleverdevil], [jgmac1106], [tantek], [Natris1979], tantek_, toomim, [dougbeal], tantek, [chrisaldrich], sebsel, tae, jeremycherfas, [quinnvinlove], [kevinmarks], [kim_landwehr], Kyle-K and [miklb] joined the channel; Kyle-K left the channel
#
GWG
[miklb]: What do you think? Should I do anything with Pingbacks and Trackbacks or is it a waste of time?
#
[miklb]
Unless it’s a personal itch, I’d say no.
#
[miklb]
I went spelunking last night on that indieauth issue, and only thing relevant I could find was “requires WP_Rewrite, which means it can’t be called before the ‘init’ hook.”
#
GWG
[miklb]: Do you use Jetpack?
#
[miklb]
I do not
#
GWG
I think it may be interfering
#
GWG
Because that resolved the issue for one person
#
GWG
So, another plugin is causing an unexpected interaction
#
GWG
What are you using?
#
[miklb]
I started working on a blog post of all my plugins, but it’s a few. I can’t imagine my caching would affect micropub, but I’ll look at my rules closer
#
GWG
I just reproduced it on another site
#
[miklb]
progress
[cleverdevil] and [grantcodes] joined the channel
#
GWG
I think I can fix it
#
GWG
It is rest_url
#
GWG
It is being called to find the configuration
#
[miklb]
in get_indieauth_token_endpoint()
#
GWG
[miklb]: Correct
#
[miklb]
at least I was in the right time zone last night 😂
#
[miklb]
but that was just from reading the stack trace
#
GWG
[miklb]: Up for trying something?
#
[miklb]
yep. I haven’t started upgrading debian yet.
#
GWG
I just pushed a check to hooks that looks to see if wp_rewrite isn't set and tries to set it.
#
GWG
Hooks the branch
#
GWG
I just want to see if that solves the problem
#
GWG
If not, I can always cache the rest url
#
[miklb]
I’m seeing this now in Quill `{"error":"insufficient_scope","error_description":"scope insufficient to create posts"}`
#
[miklb]
I logged out and back in with wp-indieauth
#
[miklb]
then I get these errors PHP Warning: in_array() expects parameter 2 to be array, null given in /micropub/micropub.php on line 266
#
[miklb]
PHP Warning: in_array() expects parameter 2 to be array, null given in /micropub/micropub.php on line 269
#
[miklb]
but I don’t get the same error as before
#
GWG
That is promising
#
GWG
There is something off.
#
GWG
I found jgmac1106's problem on this site
#
[miklb]
which was?
#
GWG
I found it
#
GWG
Not fixed it
#
GWG
It isn't finding the auth header
#
GWG
So, it isn't a WordPress problem. It seems to be an nginx problem
#
[miklb]
are there any nginx.conf recommendations for Oath2/micropub/Indieauth
#
GWG
I'm going to be reading up on that
#
[miklb]
should that hooks branch work then? or the stable release
#
GWG
[miklb]: Well, the odd thing is this...my site and this other site, like him, are on the same server. But my site has a subdomain, the other is a www
#
GWG
Something in Nginx redirect maybe?
[chrisaldrich] joined the channel
#
[miklb]
I serve https and redirect all www traffic to no-www. I do have subdomains and just dawned on me I’m multi-site which is a new wrinkle
#
GWG
I think it is the redirect losing the headers
#
[miklb]
the endpoint looks right in the settings screen https://miklb.com/wp-json/indieauth/1.0/auth
#
GWG
Yes
#
GWG
The problem I fixed with the hooks branch was it not being able to generate that because rest_url was null
#
[miklb]
hmm. I thought I had checked that and it looked right with origin/master
#
Loqi
[mnelson4] #2512 All authentication methods use "Authorization" header, which is unreliable
#
GWG
fastcgi_param HTTP_AUTHORIZATION $http_authorization; Maybe?
#
[miklb]
should I test that against the origin/master or hooks branch? Hooks branch same micropub errors and 403 in Quill
#
[miklb]
origin/master still gives the error with using_index_permalinks
#
[miklb]
do I need `underscores_in_headers on`
#
[miklb]
didn’t make a difference. I’ve tried both origin/master and hooks with adding the fastcgi_param to fastcgi.conf and adding underscores_in_headers on to my site nginx conf file
#
[miklb]
But I’ll keep researching also
#
GWG
I asked bear
#
[miklb]
hmm`proxy_set_header X-Auth-Request-Redirect $request_uri;`
#
[miklb]
I’m looking at some nginx conf examples for oath2_proxy and that stood out
[cleverdevil] and [grantcodes] joined the channel
#
aaronpk
GWG: has the local auth code verification helped at all?
#
GWG
Not by anyone reporting in
#
GWG
And it broke pfefferle's use case
#
GWG
I am experimenting based on the miklb issue