#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.
#
jackivan88 Correct.
#
jackivan88 I want to make sure I'm using what's there effectively instead of coming up with something hacky.
[miklb] joined the channel
#
jackivan88 So, how do I integrate my H-Card without doubling up on the avatar and other info the theme provides?
#
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.
#
jackivan88 Independent Publisher
#
jackivan88 https://www.johnolinda.com/
#
jackivan88 I'll give it a shot
#
jackivan88 Could you post the URL for your branch?
#
jackivan88 Thanks +GWG
#
jackivan88 I'll keep working on it tomorrow
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/
#
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 Offers this as endpoint http://blog.henrikcarlsson.se/wp-json/webmention/1.0/endpoint

#
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/
#
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
#
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 tities('<!DOCTYPE html>...')\n#1 /home/mrhenko/public_html/blog.henrikcarlsson.se/wp-content/plugins/semantic-linkbacks/includes/class-linkbacks-mf2-handler.php(116): Mf2\\Parser->__construct('<!DOCTYPE html>...', 'https://webment...')\n#2 /home/mrhenko/public_html/blog.henrikcarlsson.se/wp-includes/class-wp-hook.php(298): Linkbacks_MF2_Handler::generate_commentdata(Array)\n#3 /home/mrhenko/public_html/blog.hen
#
mrhenko rikcarlsson.se/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#4 /home/mrhenko/public_html/blog.henrikcarlsson.se/wp-content/plugins/semantic-linkbacks/includes/class-linkbacks-handler.php(141): apply_filters('semantic_linkba...', Array)\n#5 /home/mrhenko/ in /home/mrhenko/public_html/blog.henrikcarlsson.se/wp-content/plugins/indieweb-post-kinds/includes/Mf2/Parser.php on line 96
#
mrhenko I am currently looking into this (while doing dishes and putting kids to bed).
#
mrhenko Yep, that seems to have been it. You are a genius! Thank you!
[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 well

#
petermolnar maybe not, but in that case, the activation hook needs some tests

#
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.
#
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
