#wordpress 2017-11-11

2017-11-11 UTC
[kevinmarks] and tantek joined the channel
#
jackivan88
+GWG I am just trying to integrate my WP site with IndieWeb as much as possible.
#
GWG
jackivan88: Using the existing plugins?
#
jackivan88
Correct.
#
jackivan88
I want to make sure I'm using what's there effectively instead of coming up with something hacky.
#
GWG
jackivan88: If you have any comments on the plugins, please do submit them. We're always trying to make them better
[miklb] joined the channel
#
[miklb]
GWG if figured out why checkins weren’t showing up in settings, it’s still set to `show => false` in the taxonomy `get_kind_info` Want a PR for that or will you switch in a different branch?
#
GWG
[miklb]: I am positive I changed that. Must have not committed. But, either way, when I finish fixing these changes, I intend to see which false ones I can turn on.
#
[miklb]
maybe you committed in a different branch? I’m just looking at the mf2_post branch. Didn’t know if wanted me to test checkins in that branch as well. I can edit locally otherwise.
#
GWG
I've only been working in that branch for this.
#
GWG
[miklb]: Test them, but bear in mind that I didn't add any UI for them yet. I just fixed how the micropub ones displayed.
#
[miklb]
oh, so a micropub checkin via Swarm will work. I miss understood.
#
[miklb]
OwnYourSwarm to be clear
#
GWG
[miklb]: Yes, the OYS integration. The next part is tryng to figure out a UI.
#
[miklb]
gotcha I’m going to the beach tomorrow so I’ll do some OYG/OYS testing as well so I can check my templates for that stuff too. Kite festival!
#
GWG
We're in a cold snap here.
#
GWG
[miklb]: If you have any ideas about how to make the UI work with check-ins. That might take a few more versions.
#
GWG
But at least it will work 'better'.
#
[miklb]
I think the problem is going to be making it 1st for a mobile view, which is going to be hard with the default WP admin imo
#
[miklb]
Otherwise, not sure if many people do checkins from a laptop. Maybe if working in a coffeeshop?
#
GWG
[miklb]: Well, I have an old project for a custom UI
#
jackivan88
So, how do I integrate my H-Card without doubling up on the avatar and other info the theme provides?
#
GWG
jackivan88: Where do you want your H-Card to appear?
#
jackivan88
When I put my site through the validator it pulls the h-card of someone that I replied to, but not me. When I explicitly add an h-card widget it clashes with the info displayed by the theme.
#
GWG
jackivan88: Which theme?
#
jackivan88
Independent Publisher
#
GWG
jackivan88: I have a Pull Request for Independent Publisher to fix a bunch of Indieweb compatibility issues.
#
GWG
You can always try my branch, I suppose
#
jackivan88
I'll give it a shot
#
jackivan88
Could you post the URL for your branch?
#
GWG
One second.
#
jackivan88
Thanks +GWG
#
jackivan88
I'll keep working on it tomorrow
#
GWG
jackivan88: Keep us posted
tantek, jeremycherfas and mrhenko joined the channel
#
mrhenko
I moved my WP site from a shared host to a VPS and I may have broken webmentions support in the process. Does anyone here have the time to help me test it by webmentioning on of my posts, for instance this one: http://blog.henrikcarlsson.se/2017/11/9520/
#
Loqi
It seems like my site has lost the ability to receive webmentions since I moved it to my VPS. I wonder that the F is going on…
#
Loqi
[Jeremy Cherfas] That's a real pity. And these things are so hard to troubleshoot. I can't help with that, but I can send replies.
#
mrhenko
Thanks Jeremy! It seems like it doesn't show up at my site, so something is probably broken on my end.
#
jeremycherfas
Let me try via Telegraph. That may offer a clue.
#
jeremycherfas
Which returns this error The webmention endpoint did not return a status URL
#
mrhenko
Okay, so that confirms that there is a problem. I need to do some digging to see what it is.
#
jeremycherfas
Can't help with that, I'm afraid.
#
mrhenko
Do you or anyone else know if there's a particular php library that's needed for webmentions for WordPress?
#
jeremycherfas
I do not. But I believe that everything you need is in the plugins. If you migrated the site to the VPS and it was receiving webmentions before, then I wouldn't expecrt that to be the problem.
#
jeremycherfas
But it might be.
#
petermolnar
mrhenko when you moved WP, how did you do it?
#
petermolnar
export/import? did you also import all the configuration options or re-did it by hand? do you have all the same plugins? is it the same WP version?
#
mrhenko
I exported the MySQL database as an SQL dump and imported that into a new db on the new server. Then I moved all WP files (including wp-content) to the new server and updated wp-config with the new db credentials.
#
petermolnar
that should work, in theory
#
mrhenko
I did have some problems after installation. First of was a problem with permalink rewrites that I fixed by changing group to www-data on all the WP files as well as adding a couple of configurations to apache: http://blog.henrikcarlsson.se/2017/11/allowing-rewrite-of-permalinks-on-wordpress/
#
Loqi
Allowing rewrite of permalinks on WordPress
#
mrhenko
Then yesterday I realized that only some XMLRPC clients where able to communicate with the site. It turned out to be because I didn't php-xml or php-xmlrpc (or the correct version of the) installed. So maybe there's something similar with this, some kind of php package/library that's missing?
#
mrhenko
jeremycherfas: It worked prior to the move, so I also expected it to work. I've tried to delete and reinstall the plugin and then I mentioned it on my dev site but it didn't seem to work.
#
jeremycherfas
Sorry I can't help.
#
mrhenko
No problem. Thank you for helping me test it! :)
#
mrhenko
Here's a thought. Is it possible that the problem is due do my apache settings for virtual hosts?
#
doubleloop[m]
mrhenko: have you tried running the tests in webmention.rocks? It might give you some debug output that could help.
#
mrhenko
Thanks doubleloop[m], I'll try those now. Just tried Checkmention without much luck.
tantek and sebsel joined the channel
#
petermolnar
it looks like an internal wordpress routing error to me; one of the things I'd try is to purge the permalink router table: go to setting -> permalinks change it, save it, change it back, save it
#
mrhenko
doubleloop[m]: I've tried it with webmention.rocks now and got what I assume is the same error message that jeremycherfas got earlier: "Your Webmention endpoint did not return a valid HTTP status code. The raw response from your Webmention endpoint is displayed above."
#
mrhenko
petermolnar: I'm pretty sure I've tried that already, but I can do it again to be sure.
#
petermolnar
if that's not the case, I have no idea
#
mrhenko
Same error again, sadly. Thanks for the suggestion though. I'm grateful to anyone who tries to help me. :)
#
mrhenko
BTW, now I've also tried to setup a fresh WP installation with just the basic indieweb plugins and repoint my virtual host to that one and webmentions fails to that one as well.
[keithjgrant] and raretrack joined the channel
#
mrhenko
Progress! When I de-activated the Sematic-Linkbacks plugin, it suddenly started working.
[miklb] joined the channel
#
[miklb]
mrhenko do you have debugging turned on? Anything in the logs?
#
mrhenko
This is what my apache log said (that's how I found it):
#
mrhenko
[:error] [pid 20719] [client 173.230.155.197:60082] PHP Fatal error: Uncaught Error: Call to undefined function Mf2\\mb_convert_encoding() in /home/mrhenko/public_html/blog.henrikcarlsson.se/wp-content/plugins/indieweb-post-kinds/includes/Mf2/Parser.php:96\nStack trace:\n#0 /home/mrhenko/public_html/blog.henrikcarlsson.se/wp-content/plugins/indieweb-post-kinds/includes/Mf2/Parser.php(304): Mf2\\unicodeToHtmlEn
#
mrhenko
I am currently looking into this (while doing dishes and putting kids to bed).
#
[miklb]
sounds like your php doesn’t have mbstring installed.
#
mrhenko
Yep, that seems to have been it. You are a genius! Thank you!
#
[miklb]
yay! I’m pretty sure mbstring is a WP requirement, not just something the semantic linkback uses, fwiw.
#
Loqi
woot
#
[miklb]
hmm. Looks like the wp functions use a `if function_exists` might be worth looking at closer then.
#
GWG
miklb, that is the php mf2 package that should have that.
#
GWG
I am in for the afternoon rewiring my computer
#
[miklb]
should have what?
#
GWG
The function exists...
#
GWG
php mf2 uses composer, so...
#
[miklb]
I didn’t dig that deep, just grepped for `mb_convert_encoding` and saw it is used in the IW plugins and core WP wrap it in the if exists. Didn’t look at the source of where the IW plugins were using it.
#
GWG
I will have a look
#
GWG
Once my computer is reconnected
[kevinmarks] joined the channel
#
petermolnar
don't spend time on that
#
petermolnar
wrapping in if_function
#
petermolnar
because this is an edge case of a copy-pasted wp instance
#
petermolnar
this would have been prevented if the plugin was installed before it got activated
#
petermolnar
as it would have failed on activation
#
petermolnar
maybe not, but in that case, the activation hook needs some tests
#
[miklb]
throwing a fatal error because a php extension isn’t active doesn’t sound like an ideal situation
#
GWG
That is what I wanted to look at
#
mrhenko
Please note that I also tried installing a brand new WP instance on the same server and enabled the webmentions plugin and semantic linkbacks plugin. Activating semantic linkbacks didn't fail but receiving webmentions did fail.
#
[miklb]
that’s good to know. Thanks for the report mrhenko
#
mrhenko
No problem. Let me know if I should report anything about my problem in any more detail or anything.
#
mrhenko
And thanks to everyone who has tried to help me solve this.
[kevinmarks], GWG, [jeremycherfas] and [miklb] joined the channel
#
[miklb]
I documented it in a GitHub issue, feel free to clarify anything I may have missed https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/122
#
Loqi
[miklb] #122 Absence of `mbstring` php extensions causes webmentions to fail