#wordpress 2018-03-17

2018-03-17 UTC
[kevinmarks], tantek, cjac, sevsp302 and cbfishes joined the channel
#
cbfishes
hi all! I've got a wordpress site set up using all the indieweb plugins, including micropub. But when I try to publish using Quill, ownyourgram, etc. I get an error about not sending my location header
#
cbfishes
anybody seen this before?
#
Zegnat
Does the post get published on the WordPress side?
#
cbfishes
nope
#
sknebel
oh, and does quill show you more of the response? I thought it did?
#
cbfishes
yeah! quill says "Your endpoint did not return a Location header."
#
sknebel
does it show the actual response?
#
cbfishes
I just tried using Omnibear, firefox client for micropub. when I try to post something, the error is "Error authenticating to micropub endpoint. "
#
cbfishes
quill does show the response.. it's quite long, but starts with:
#
cbfishes
```
#
cbfishes
HTTP/1.1 200 OK Date: Sat, 17 Mar 2018 14:29:42 GMT Server: Apache/2.4.10 (Debian) X-Powered-By: PHP/5.6.30-0+deb8u1 Link: <https://tokens.indieauth.com/token>; rel="token_endpoint" Link: <https://chrisbeckstrom.com/feed/wp-json/webmention/1.0/endpoint>; rel="webmention" Link: <https://chrisbeckstrom.com/feed/wp-json/webmention/1.0/endpoint>; rel="http://webmention.org/" Link: <https://chrisbeckstrom.com/feed/wp-json/>; rel="https://api.w.o
#
cbfishes
<https://wp.me/9KCDg>; rel=shortlink Vary: Accept-Encoding Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8
#
cbfishes
trying to post using ownyougram, the raw response is:
#
cbfishes
HTTP/1.1 100 Continue HTTP/1.1 400 Bad Request Date: Sat, 17 Mar 2018 14:31:15 GMT Server: Apache/2.4.10 (Debian) X-Powered-By: PHP/5.6.30-0+deb8u1 Link: <https://tokens.indieauth.com/token>; rel="token_endpoint" Link: <https://chrisbeckstrom.com/feed/wp-json/webmention/1.0/endpoint>; rel="webmention" Link: <https://chrisbeckstrom.com/feed/wp-json/webmention/1.0/endpoint>; rel="http://webmention.org/" Content-Length: 225 Connecti
#
cbfishes
Content-Type: application/json <br /> <b>Warning</b>: array_diff(): Argument #1 is not an array in <b>/var/www/feed/wp-content/plugins/micropub/micropub.php</b> on line <b>252</b><br /> {"error":"invalid_request","error_description":"Invalid Post Status"}
#
sknebel
ok, that really looks like something more complicated
#
cbfishes
hmm
#
sknebel
we had cases in the past were Apache was stripping the "Authentication" header, but I think that gave a clearer error message complaining about an authentication problem
#
sknebel
yes, from a quick look at the code that would fail earlier
[kim_landwehr] joined the channel
#
cbfishes
aha! i may have found the issue.. just a sec
#
cbfishes
ok.. I edited the `<link rel="micropub"... link on my index page, and omnibear says "note added successfully". however, I don't see it in my WP posts
#
cbfishes
I wonder if the complication is that my WP installation is at chrisbeckstrom.com/feed, but I'm authorizing using IndieAuth at https://chrisbeckstrom.com
#
sknebel
that might be. try logging in as chrisbeckstrom.com/feed
#
sknebel
(if you have rel-me tags on that too)
#
cbfishes
ah! now I'm getting somewhere.. tried that with Quill and it saw my syndication options (twitter and facebook, configured by bridgy in WP I think) but when I posted I got "Your endpoint did not return a Location header."
#
GWG
Invalid Post Status? Is that happening to someone again?
#
Loqi
GWG: [miklb] left you a message 3 days, 9 hours ago: is the Get Location button when adding a venue in simple location plugin supposed to do anything if lat/long isn’t filled?
#
Loqi
GWG: [miklb] left you a message 3 days, 8 hours ago: I also noticed I can’t save a venue from the create checkin screen.
#
cbfishes
@GWG yeahr! this is part of the "raw" error from Quill: "<b>Warning</b>: array_diff(): Argument #1 is not an array in <b>/var/www/feed/wp-content/plugins/micropub/micropub.php</b> on line <b>252</b><br /> {"error":"invalid_request","error_description":"Invalid Post Status"}"
#
Loqi
[andrewgribben] #104 Invalid Post Status
#
GWG
Someone else reported this, but they seemed to be confused.
#
GWG
Because they were referencing options that don't exist.
#
GWG
But I never quite figured out what the problem was
#
cbfishes
ok.. I just changed "micropub_default_post_status option_value" to "status" in the db.. trying to post again
#
cbfishes
hmm weird. It looks like it worked, but I don't see a new post on my WP site
#
GWG
cbfishes: It shouldn't be 'status'.
#
GWG
It should be publish.
#
cbfishes
AHA! yes that was it. thanks!! that seems to have worked!
#
GWG
But, I need to go back and figure out why sometimes the default isn't being applied.
#
cbfishes
whooohoo! it's working! tested in quill and omnibear. I have to use chrisbeckstrom.com/feed instead of my root domain, but it works! thanks for your help!
Kyle-K, [kevinmarks], cbfishes, tantek, [snarfed], gerwitz, [eddie], [cb], [dshanske], [chrisaldrich], [gerwitz], chrisaldrich and [cleverdevil] joined the channel; Kyle-K left the channel