#wordpress 2017-12-12

2017-12-12 UTC
#
wagle
well, it installed fine, but that path was tested
#
wagle
geez, trivial bug fix
#
GWG
Yes. It doesn't
#
GWG
We never thought it was worth it
#
GWG
Without the plugin, they'll just display as comments
#
wagle
the data coulda changed
#
wagle
i think deleting it flased "data deleted", but I'm not sure
tantek and chimo joined the channel
#
wagle
"Are you sure you want to delete Semantic-Linkbacks and its data?"
#
wagle
if its data were corrupt, then...
zb111 joined the channel
#
wagle
I'm not actually doing much yet, so my having corrupted data would be surprising
#
GWG
wagle: Anything we can do to help
#
GWG
We're at your service
#
wagle
ok, how do I get it to log something next time? 8)
#
GWG
Not sure what was going on, honestly
#
wagle
i find nothing in them
tantek joined the channel
#
wagle
[11-Dec-2017 15:23:52] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
#
[miklb]
that a php-fpm setting?
#
wagle
my server is a $5/mo digitalocean saturday night special, so I better be cautious about blindly raising limits
tantek_ joined the channel
#
GWG
What about the web server logs?
#
GWG
Also, try on-demand PHP-FPM
#
GWG
It's good for low end
#
wagle
well, will need to scale if I actually do something.. and i tend to forooget what I did
#
wagle
but hmm
#
[miklb]
yeah, that’s why I just went with the $10 linode so I can’t totally screw it up with a low traffic site
#
wagle
problem is that it took extreme dark magick to get this to work, and I'm not sure I can recreate thatwork
#
wagle
multi-site with all sorts of chimes and tubas (bells and whistles?)
#
[miklb]
I like chimes & tubas better 🙂
#
wagle
I see port 443 being blocks by ufw
#
wagle
what ports do II need to unlock?
#
wagle
nginx/wordpress/indieweb
#
wagle
things are trying to telnet in?
#
[miklb]
80. 443 if you are setting up SSL. 22 for ssh is default port but you can change that. Beyond that, you shouldn’t need anything else for WP and IndieWeb doesn’t require anything beyond WP.
#
GWG
And we will help if you need it
#
wagle
didnt wp used to use ftp?
#
wagle
but nothing is trying ftp
#
wagle
but things ARE trying to TELNET
#
wagle
which is bizarre
#
[miklb]
I don’t allow my live site to auto-update anything
#
GWG
It can, but things evolve
#
GWG
Just security
#
wagle
(I wall off ssh completely, except from my home ipaddr)
#
wagle
and i dont do ipv6.. hrm
#
[miklb]
I don’t block by IP, but I have root login off and require ssh key
#
wagle
yeah, ii tried that for a long time, and hadizombies endlessly bouncing off
#
[miklb]
and change SSH port. Then I just block everything else and open up as needed. 80 & 443.
#
wagle
thought i'd try this until I burned myself
#
[miklb]
sure. I’m no server admin.
tantek and tantek_ joined the channel
#
GWG
But my point was good intentions
#
wagle
hmm.. why might I have deactivated "IndieWeb Press This"
#
wagle
vaguely remember some problem
#
GWG
wagle, because with 4.9 it needs you to install Press This
#
GWG
I meant to push an update to just handle the documentation
#
wagle
so not a problem anymore with 4.9.1?
#
GWG
It is, you now have to install a plugin
#
wagle
which one?
#
[miklb]
Press This is now a plugin, which you need for the IW Press This. Yes, we know, it’s less than ideal
#
GWG
My solution requires a token, so not ideal
#
wagle
nothing is prodding me to install press this
#
wagle
though: "Warning: This plugin has not been tested with your current version of WordPress."
#
GWG
Let it
joha joined the channel
#
wagle
ooo! microformats make much more sense if you understand css
#
GWG
They do?
#
wagle
in the html anyway
#
GWG
joha, who is hosting your site?
#
wagle
"wtf is class=?"
#
wagle
its been a year since i last tried to make sense, now its kinda obvious
#
wagle
I'm slowly spiralling in in a breadth first fashion
#
wagle
progress!
#
wagle
I'll serious need this to actually something in about 6 months
#
wagle
I'll serious need this to actually DO something in about 6 months
#
GWG
Class is not just foe style
#
aaronpk
😂 next microformats t-shirt tagline?
#
wagle
yes, i know
#
wagle
I'm good, just was amazed to have my brain go "ooooooh!"
#
wagle
(been taking html/css/javascript moocs recently)
[andrea_arbogast joined the channel
#
[andrea_arbogast
So am I the only one who is having issues with retrieve with the post kinds plugin?
#
[andrea_arbogast
I am totally baffled— it worked a couple of days ago, now it doesn’t.
#
wagle
looking, but I know nothing
#
GWG
[andrea_arbogast: I still don't know why
#
GWG
As I said, I didn't even touch that.
#
GWG
I did after you said, but didn't push anything
#
GWG
I haven't touched that file in several versions. Javascript isn't my strength, so I use very little of it
#
[andrea_arbogast
I am having the slack bug where I can’t really tell who is talking.
#
[andrea_arbogast
@GWG I believe you— I tried to roll back to 2.7.3 manually, and it still didn’t work.
#
GWG
[andrea_arbogast: I last touched it in 2.7.0, when I tried to add better error reporting.
#
[andrea_arbogast
At this point, not sure if it is a theme conflict or something my hosting is doing]
#
[andrea_arbogast
And i started after that— so the version I was using was later than that
#
[andrea_arbogast
I have gremlins
#
[andrea_arbogast
I am having weird things happen that don’t seem to be happening to anyone else. Like then syndication links not filling in, and also the main IW plugin not adding rel=me to the head
#
GWG
[andrea_arbogast: If we can figure it out, we'll try
#
[andrea_arbogast
Thanks. :) I’m not giving up.
#
[andrea_arbogast
I am using zenpress, it should work fine with that theme right?
#
GWG
Yes
#
wagle
i'm using sempress, since its been purported to be the only theme to support mf2.. but zenpress does too?
#
GWG
As far as I know
#
GWG
wagle: Zenpress is a newer theme by the same author
#
wagle
well, I cansee if it works in my mess, as a learning experience for me.. possibly helping you.. what should I try?
#
wagle
telling me what to do might be like rubber duck debugging? I dunno
#
[andrea_arbogast
Try to create a bookmark or like with post kinds, using the “retrieve” button. When I click that button, nothing happens In the UI, the browser throws a Js error and I can’t publish the post
#
wagle
which browser?
#
wagle
what js error?
#
wagle
or should I scrollback?
#
[andrea_arbogast
(just switched from ipad to Mac so I can see who is talking)
#
[andrea_arbogast
@wagle I have tried Safari, Chrome, and FIrefox, same error
#
wagle
umm.. I'm kinda slow, so dont wait for me..
#
wagle
ok. looking for retrieve button now.. 8/
#
[andrea_arbogast
error is on line 71 of retrieve.js
#
[andrea_arbogast
looking it up
#
[andrea_arbogast
Uncaught ReferenceError: response is not defined
#
[andrea_arbogast
nothing in WP logs
#
wagle
ah thanks
#
wagle
staring on code now.. i think the js would be run on your browser, so might show up on browser consoles, or whatever
#
[andrea_arbogast
Yes, seeing js error in browser console. That is the only place I can find any error
#
[andrea_arbogast
The retrieve button usually pulls in all kinds of metadata about the post, and worked for me for several days before breaking
#
wagle
soo I type an url? you have one that I can use? or should I see that one?
#
[andrea_arbogast
and it got me hooked and now I can’t live without it. 🙂
#
[andrea_arbogast
this is what we have been testing with: http://time.com/time-person-of-the-year-2017-silence-breakers/
#
[andrea_arbogast
worked for me once, will not work for me now
#
[andrea_arbogast
works for @GWG
#
wagle
retrieve button does nothing for me for that url (alone)
#
wagle
nm, found browser console
#
wagle
(same error)
#
GWG
Odd
#
[andrea_arbogast
interesting. If you try to publish with just that url in the url field, does it go through? FOr me , it looks like it publishes, but then never shows up on the site. If I click “view post” within wordpress, I get a Page not FOund
#
GWG
I wonder why it doesn't work
#
[andrea_arbogast
So, I switched from 2016 theme to zenpress around that time. That is the only thing I can think of. Turned off the mf2 plugin at that time, because it was messing up the hcard
#
wagle
.. and I'm running sempress
#
[andrea_arbogast
But when I tried today switching back to 2016 plus mf2 it still didn;t work
#
wagle
oh, so much for that idea
#
[andrea_arbogast
maybe stuff was cached?
#
[andrea_arbogast
do you have the mf3 plugin activated @wagle?
#
wagle
no idea... yt 8)
[tantek] joined the channel
#
wagle
3? egads I thought I was current with 2
#
[andrea_arbogast
sorry mf2
#
[andrea_arbogast
lol
#
wagle
ok, should be, but I havent pprooven that
#
[andrea_arbogast
well, it is a small comfort that I am not the only one that is seeing this issue.
#
GWG
But I can't think of a reason why
#
wagle
my post now comes out with this:
#
wagle
Posted on 2017-05-17 by <span class='p-author h-card'>Perry Wagle</span> in Status | Leave a comment | Edit
#
GWG
wagle, turn off Microformats 2
#
GWG
That is only for non Microformats 2 theme
#
GWG
That is only for non Microformats 2 themes
#
wagle
hahaha
#
Loqi
rofl
#
[andrea_arbogast
yes, tht is something I’d like to clarify in the plugin info/docs
#
[andrea_arbogast
@GWG if I try your fork of 2016, would that get me close to what you are running, to see if that will work?
#
wagle
still there.. trying harder
#
GWG
You can try.
#
GWG
But as I said, I'm stumped.
#
wagle
how do I turn off microformats 2?
#
[andrea_arbogast
Me too. Will try that tomorrow. I am thinking it must have to do with with the theme, or with the order of activation of the plugins-- should that matter?
#
GWG
wagle: It's a plugin
#
wagle
i neetwork deactiivated it
#
[andrea_arbogast
@wagle go to plugins > installed plugins. Then you will see a list, and you can click “Deactivate” underneath the plugin
#
GWG
wagle: You are on a multi-site?
#
GWG
I never tested on multi-site
#
wagle
i did deactivate it
#
[andrea_arbogast
oh, I don’;t have experience with multisites
#
wagle
not seeing the time.com url show up in the post, and if I reedit, the url isnt remembered
#
[andrea_arbogast
The only non-indieweb plugins I have activated are Jetpack, SNAP, and Post Met Inspector
#
[andrea_arbogast
@wagle sounds very similar to what is happening for me
#
wagle
reading the js now
#
wagle
no call stack?
#
wagle
getting somewhere, need 5 minutes
#
[andrea_arbogast
👍
#
GWG
This is very odd.
#
[andrea_arbogast
I agree
#
[andrea_arbogast
But when it works it is so great that I have to have it back! 🙂
#
GWG
[andrea_arbogast: Anything you figure out...
#
GWG
I definitely want to make sure it works for all
#
wagle
ajax error function is ignoring args, adding them and seeing what they say
#
GWG
wagle: I'm not really a JS person. PHP is more my speed.
#
[andrea_arbogast
I’m sure we will figure it out
#
wagle
oh, i think thats the bug
#
GWG
What? What did you find?
#
wagle
testing now, will let you know, but I think the bug is that the error caallback can't see the "response"" var
#
GWG
But, why is there an error in the first place?
[eddie] joined the channel
#
GWG
Waiting eagerly
#
wagle
different js engines?
[miklb] joined the channel
#
[miklb]
andrea.arbogast to confirm, what version of post kinds are you on?
#
wagle
dunno, not js expert, just a dman good JOAT
#
[andrea_arbogast
miklb I am on 2.7.4
#
GWG
[miklb]: Are you having this trouble?
#
[miklb]
Not since you updated for those last issues, but my problems were similar to the error andrea.arbogast is seeing
#
GWG
[miklb]: If we can figure this out, I intend to push a version soon after
#
[miklb]
I was able to retrieve the Time URL. That’s Safari stable with post kinds 2.7.4
#
wagle
i should have fix or info in 5
#
[andrea_arbogast
miklb Argh. Safari stable is what is not working for me
#
[andrea_arbogast
What OS version
#
[miklb]
High Sierra 10.13.1
#
wagle
getting an impossible error, please stand by
#
[andrea_arbogast
I am on 10.12.6, have been resisting the latest update
#
[miklb]
what version of Safari?
#
[miklb]
I tested with 11.0.1
#
[andrea_arbogast
11.0.2
#
[andrea_arbogast
lo
#
[andrea_arbogast
lol
#
[andrea_arbogast
I have tried Chrome and Firefox too
#
[miklb]
I normally run Safari Tech Preview
#
[miklb]
andrea.arbogast do have a way to check debug.log? Are you seeing any errors there?
#
[miklb]
check/enable debugging I should ay
#
GWG
I am seeing this persistent REST erorr,, but not sure it is related
#
[miklb]
s/ay/say
#
[andrea_arbogast
yes, turned it on a couple of days ago, nothing related to this
#
GWG
[andrea_arbogast: I spent a while looking at that link. It identified a parsing issue.
#
[miklb]
OK, the issues I was having with post kinds I was getting a fatal error in my logs
#
[miklb]
and so we are on same page, you are on 4.9.1?
#
[andrea_arbogast
yes, 4.9.1
#
[miklb]
do you know what version of php your host runs? not that the js should be affected by that, but worth checking
#
[andrea_arbogast
Pretty sure I am on 7, but need to confirm. Got to take the dogs out-- past their bedtime. I will keep working on it tomorrow. Thanks all for your help! @GWG++ miklb++ @wagle++
#
wagle
[andrea_arbogast: oki!
#
GWG
I'll just track the items issue if I can.
#
wagle
ajax is returning this as an error: "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
#
wagle
do you know what that would be?
#
GWG
Odd, the JSON data is handled by the REST API
#
wagle
not sure what json data it's looking at (yet)
#
wagle
callback style is as bad as bash programming.. who knew?
#
wagle
no, I see now
#
miklb.com
edited /WordPress/Development (+562) "WordPress planning discussion"
(view diff)
#
[miklb]
GWG ^ does that look OK?
#
GWG
Be with you shortly
#
[miklb]
no rush
#
wagle
"<br /><b>Notice</b>: Undefined index: items in <b>/var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php</b> on line <b>328</b><br />{"name":"TIME Person of the Year 2017: The Silence Breakers","summary":"The Silence Breakers who spoke out against sexual assault and harassment are TIME&#x27;s Person of the Year 2017","author":{"url":["http:\/\/time.com\/author\/stephanie-zacharek\/","http:\/\/time.com\/author\/eliana-
#
wagle
dockterman\/","http:\/\/time.com\/author\/haley-sweetland-edwards\/"],"name":["Stephanie Zacharek, Eliana Dockterman, Haley Sweetland Edwards"]},"featured":"https:\/\/timedotcom.files.wordpress.com\/2017\/12\/taylor-swift-rose-mcgowan-tarana-burke-time-magazine-person-of-year-2017.jpg?w=720","publication":"Time","category":["time person of the year"," person of the year"," person of the year 2017"," person of the year silence breakers"," time person
#
wagle
of the year 2017"," time magazine person of the year"," person of the year sexual assault"," p"
#
GWG
Where did that come from?
#
wagle
i think thats the actuall error
#
wagle
error takes three args, a, b, and c.
#
wagle
a is an object
#
wagle
that the responseText field value
#
wagle
the "response" variable is not defined in error
#
wagle
case 'array':
#
wagle
$schema['items'] = $this->set_additional_properties_to_false( $schema['items'] );
#
wagle
break;
#
wagle
$schema is an array.. doessnt that mean it has integer indexes/
#
[miklb]
that’s some sherlock debugging
#
[miklb]
wagle++
#
Loqi
wagle has 1 karma in this channel (250 overall)
#
wagle
woohoo!
#
wagle
woohoo++
#
Loqi
woohoo has 1 karma
#
wagle
is wp in a repo like git?
#
wagle
* @since 4.9.0
#
wagle
there you go.. wp was upgraded recently
#
wagle
[andrea_arbogast: ^^^
#
[miklb]
git://develop.git.wordpress.org/
#
Loqi
[WordPress] wordpress-develop: WordPress Develop, Git-ified. Synced from git://develop.git.wordpress.org/, including branches and tags! This repository is just a mirror of the WordPress subversion repository. Please do not send pull requests. Submit patches to https://core.trac.wordpress.org/ instead.
#
wagle
untested until now code path detected. eject! EJECT!
#
wagle
if this were typescript....
#
wagle
i have no idea how to submit a wordpress bug
#
[miklb]
ah, that’s another place
#
wagle
noo wait, thisi is php
#
wagle
egads
#
wagle
same diff, only integer indexes
#
[miklb]
what’s odd is that I’m not getting the error. Guess that’s why it’s a bug?
#
wagle
which php are you running?
#
[miklb]
PHP 7.0.26-1~dotdeb+8.1 on my live site
#
[miklb]
PHP 7.1.12 locally
#
wagle
I dont see what that code would even mean
#
wagle
for some reason we are gettting arrays in the datastructure, and you arent
#
wagle
how do you tell which version?
#
[miklb]
of php? `php -v` at command line is what I use
#
wagle
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
#
wagle
maybe newer phps are more forgiving? that would be odd
#
GWG
I had some issues there
#
[miklb]
you know what, I’m on master not the 2.7.4 tagged release, wonder if that has anything to do with it
#
[miklb]
nope, same success on the tagged release
#
GWG
Sorry about that. My mother called.
#
GWG
wagle: PHP allows associative arrays
#
wagle
GWG: yeah, but the type is "array"
#
GWG
Yes.
#
GWG
That's fine in PHP
#
wagle
urghhh
#
GWG
Also, not using their schema
#
GWG
They must have introduced something
#
GWG
I need to look through the 4.9 logs to see
#
GWG
But it isn't affecting me, even though I see the errors.
#
wagle
its dying because "response" variable isnt bound
#
wagle
in the error callback
#
wagle
the error routine is being called because of the indexing issue
#
GWG
And the indexing issue shouldn't be one
#
GWG
But I'm seeing the same error thrown on the wp-oembed
#
wagle
well, ok, i agree
#
wagle
switch ( $schema['type'] ) {
#
wagle
so its definitely an associative array
#
[miklb]
I also see the notice in logs
#
wagle
but there ARE integer-only-indexed arrays in php
#
wagle
rrrr in php5
#
wagle
i hate webrot
#
wagle
[miklb]: which notice?
#
GWG
I just deactivated everything but Post Kinds
#
wagle
how do you printf from wordpress php?
#
[miklb]
Undefined index: items in wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 328 I *think* that’s the same one
#
wagle
yes.. how'd you see the error?
#
wagle
I had to work to see it
#
[miklb]
debug.log
#
wagle
OOOoo hmmm
#
wagle
triple checks that file now
#
[miklb]
`define( 'WP_DEBUG_LOG', true );` in your wp-config.php file
#
GWG
I'm going to try to figure out why
#
wagle
already done, didnt think that was related
#
[miklb]
I guess `define( 'WP_DEBUG', true );` & `define( 'WP_DEBUG_DISPLAY', false );` wouldn’t hurt. I honestly forget. I just copy/paste that stuff now
#
wagle
.. and had the wrong timesstamp, i thinlk
#
GWG
Okay. I'm getting somewhere.
#
GWG
I disabled and reenabled and I'm now getting an error
#
wagle
ruh roh
#
GWG
I've added a notation to test if the error is triggered.
#
GWG
But now I need to figure out why
#
GWG
I use the REST controller in three places
#
GWG
What is different here?
#
Loqi
It looks like we don't have a page for "different here" yet. Would you like to create it? (Or just say "different here is ____", a sentence describing the term)
#
wagle
how do you print stuff from wordpress php code?
[manton] joined the channel
#
wagle
* Errors are never displayed for XML-RPC, REST, and Ajax requests.
#
GWG
wagle, turn off WP_DEBUG and try it again
#
wagle
rilly? wow
#
GWG
The debugging message is coming through the response
#
wagle
eeet works
#
wagle
how'd you determine that?
#
wagle
needs to improve his mad debugging skillz
#
GWG
Guessed
#
wagle
hahaha
#
Loqi
rofl
#
[miklb]
wait, if you have debug on it doesn’t break, but if you don’t it breaks?
#
GWG
No.
#
GWG
Opposite
#
wagle
I had debug on.. andreas apparently turned it on recently
#
wagle
I turned it off, and it worked
#
[miklb]
I have WP_Debug set to true…
#
wagle
maybe its the log
#
GWG
Once I deactivated and reactivated the plugin...
#
[miklb]
but WP_DEBUG_DISPLAY to false
#
wagle
that would do it
#
wagle
but i only had
#
wagle
../../wp-config.php:define( 'WP_DEBUG_LOG', true );
#
wagle
../../wp-config.php:define('WP_DEBUG', true);
#
wagle
which didnt work, but commenting both out, worked
#
wagle
The default is 'true' for WP_DEBUG_DISPLAY
#
[miklb]
that’s so WordPress™
#
wagle
yeeeeup
#
wagle
confirmed that you have to turn off WP_DEBUG_DISPLAY for the ajax to work.
#
wagle
if you turnon debugging
#
[miklb]
so, so weird
#
wagle
its mixing the debugging messages withthe html
#
wagle
!tell [andrea_arboga to turn off WP_DEBUG_DISPLAY: define( 'WP_DEBUG_DISPLAY', false );
#
Loqi
Ok, I'll tell them that when I see them next
#
wagle
GWG++
#
Loqi
gwg has 26 karma in this channel (285 overall)
#
wagle
but hmm.. where is this url supposed to show up?
#
[miklb]
the retrieved URL? Depends on what you are doing with the post.
#
wagle
added the url, then update post
#
[miklb]
if you were bookmarking the Time url for instance, it would be part of the post displayed on the front end, via the kind view template for bookmarks
#
[miklb]
a note by default will not save the post meta for the retrieved URL
#
GWG
I really need to have a popup if you try
#
wagle
[miklb]: so how to get this to show up somewhere ?
#
wagle
GWG: popup?
#
GWG
If you try to save a URL on a note
#
GWG
By the way, figured out the issue
#
wagle
i hit retrieve and is pops up "successful!, blah blah blah"
#
wagle
whats the issue?
#
GWG
WordPress introduced a change
#
GWG
So, I register a setting the default kinds, which is an array.
#
GWG
They introduced that function on line 328
#
[miklb]
wagle: if you retrieve the meta of a url but the post-kind is a note, the data is not saved.
#
wagle
[miklb]: ok, but how do i get it to save?
#
[miklb]
use a different kind, like, bookmark, reply, etc
#
[miklb]
feature, not a bug
#
wagle
did, but no diff.. trying again
#
GWG
I declared it an array.
#
GWG
They now check for that
#
wagle
ah, there i go!
#
GWG
I'm hiding that from REST now to avoid same.
#
wagle
GWG: cool
#
Ruxton
there seems to be a small timing issue between wordpress-micropub and bridgy-publish. Micropub plugin saves attachments after post creation, bridgy publish triggers sends at publication, so in a very small window, bridgy receives a publish request for a page that doesnt have the image/video/etc. on it yet.
#
wagle
ok how to delete the bookmark?
#
[miklb]
wagle move the post to the trash?
#
wagle
(and/or do more than one)
#
wagle
[miklb]: short of doing that?
#
GWG
Ruxton: I originally had a delay for that reason
#
Ruxton
A better option might be to insert the post unpublished, attach the stuff then publish it
#
[miklb]
wagle I’m not sure. That’s kinda the only way I know how to delete posts in WP
#
GWG
Ruxton: File a Micropub issue?
#
wagle
[miklb]: flipping it back from bookmark to note seemed to work
#
[miklb]
ah, yes, that would change it
tantek joined the channel
#
wagle
location box thinks it can use the full width of my firefox window, when it cant because of my sidebar
#
[miklb]
so I’m still intrigued by how having debug_display false allows the retrieve to work
[jeremycherfas] joined the channel
#
GWG
[miklb]: The debug entry was gettiing embedded in the REST response
#
GWG
Generating the error
#
wagle
hence the json being corrupted
#
wagle
"something was scribbling on the json buffer"
[eddie] joined the channel
#
[miklb]
Ruxton it would be great if you were available for that too ^
tantek joined the channel
#
Ruxton
[miklb]: potentially, it'll be 4am on a Tuesday for me :(
#
Ruxton
GWG: testing patches to fix it atm, if they behave for a day i'll submit a fix
#
[miklb]
ah, yes.
#
GWG
Ruxton: Any time
#
GWG
Working on fixing mine
#
GWG
[miklb]: I'm linting
#
Loqi
gwg has 27 karma in this channel (286 overall)
#
GWG
I found the WordPress JS coding standards
#
wagle
is that sacrilege?
#
[miklb]
what’s that, js & coding standards in teh same sentence?
#
wagle
but atually, I'm curious
#
Ruxton
nah WordPress and coding standards is more sacrilege ;P
#
GWG
They have them
#
[miklb]
to be fair, they just brought the code base up to the WP Coding Standards
#
[miklb]
like 100,000 lines of code
#
wagle
ah no wonder. <input ... size="95%" ... /> overflows the region if its narrower than it hoped to be
#
wagle
ah no wonder. <input ... size="95%" ... /> overflows the region if THE REGION is narrower than it hoped to be
#
wagle
sorry, been wondering that for a while now
tantek joined the channel
#
[miklb]
nice work everyone. Let’s do it again soon.
#
GWG
Changes committed. Will see the other changes I was working on and will release a new version.
#
wagle
so it was a bug in post kinds, not wp core?
#
GWG
wagle: No. It was a bug in Core tripped by something in Post Kinds
#
GWG
I don't think declaring a setting of type array should generate an error
tantek_ joined the channel
#
GWG
As array is a listed type
#
GWG
They introduced that
#
wagle
you might post your analysis to https://core.trac.wordpress.org/ticket/42875 (or else, I shou;d INVALID it?)
#
GWG
You shouldn't
#
GWG
It isn't invalid
#
wagle
seemed like i mis id'd the problem, but ok
#
GWG
I am just happy we solved it
#
wagle
yeah.. fun.. and now I understand js and php a little more
#
GWG
wagle, a good thing
[pfefferle] joined the channel
#
[pfefferle]
Good morning
#
[pfefferle]
Oh... a lot to read 😳
#
Loqi
rise and shine!
#
wagle
shou;d I now use zenpress instead of sempress?
#
[pfefferle]
SemPress is tested a lot and does not really change a lot
#
[pfefferle]
ZenPress is my actual project and might change over time and you have to update it manually
#
wagle
well, I've very gradually spiralling in on figuring about mf2, etc
#
[pfefferle]
The both use the same Microformats 2
#
[pfefferle]
So it‘s more about taste 😉
#
wagle
at the moment I actually expect to be actually doing something real in 6-12 months
#
[pfefferle]
You want to write your own theme?
#
wagle
well, i did hack the vertical whitespace so it'd fit ona screen.. didnt do it right, but it works well enough for a prototype
#
wagle
(sempress)
#
wagle
2013 (?) was fine for me, but no mf2
#
wagle
which I *think* I want
#
[pfefferle]
Perhaps you can try to fork it and add mf2
#
[pfefferle]
Like GWG did with 216
#
wagle
oh, hmm
#
wagle
i did apparently make progress recently on figuring out what the heck mf WAS
#
wagle
thats it?
#
[pfefferle]
Not completely, but most of it... there are also some classes, you have to add directly to the templates
#
wagle
ok, thanks.. heading for sleep now
#
[pfefferle]
You’re welcome, good night
jeremycherfas, [xavierroy] and [andrea_arbogast joined the channel
#
[andrea_arbogast
good morning!
#
[andrea_arbogast
I’m amazed at your debugging skills! About to turn off the debug log…
#
[andrea_arbogast
Woohoo!!
#
Loqi
does a happy dance!
#
[andrea_arbogast
wagle++
#
Loqi
wagle has 2 karma in this channel (251 overall)
#
[andrea_arbogast
milkb++
#
Loqi
milkb has 1 karma
#
[andrea_arbogast
GWG++
#
Loqi
gwg has 28 karma in this channel (287 overall)
#
jeremycherfas
It was amazing to read all of that this morning.
#
[andrea_arbogast
not sure I’m doing the karma right
#
[andrea_arbogast
jeremycherfas I agree!
[eddie] joined the channel
#
GWG
Good morning
#
Loqi
morning!
#
[andrea_arbogast
morning @GWG
#
[andrea_arbogast
It is fixed 🙂
#
GWG
[andrea_arbogast: Glad we were able to figure out that issue.
#
[andrea_arbogast
me too!!
#
[andrea_arbogast
so weird. I would never have thought that turning on the logs could break something…
#
GWG
[andrea_arbogast: I committed the changes to the branch of fixes I was working on. I want to do some more testing, but I intend to push it
#
GWG
[andrea_arbogast: When I make this change, it should allow them back on again
#
[andrea_arbogast
cool. Hopefully Wordpress will fix it on their end
#
GWG
To be honest, there is no reason the settings for Post Kinds need to be accessible via the REST API anyway.
#
[andrea_arbogast
well, I’m just happy to have everything working again. 🙂
#
GWG
[andrea_arbogast: How is everything else working? Does it work as you expect it to? Regardless of whether it is a bug or a feature
#
[andrea_arbogast
🙂 Still need to look into the format/kind mapping, now that I can retrieve.
#
[andrea_arbogast
And also the syndication links issue i was having. I did find that if I use Bridgy publish rather than SNAP it works as expected, so have been doing that
#
[andrea_arbogast
But, I am able to POSSE and get webmentions backfed from Twitter and FB, which was my main goal, so I am happy
[xavierroy] joined the channel
#
GWG
[andrea_arbogast: More improvements will come as well
[pfefferle] joined the channel
#
[pfefferle]
good morning
#
GWG
pfefferle, saw you transferred Indieauth
#
[pfefferle]
you were so enthusiastic yesterday 🙂
#
GWG
pfefferle, I bought aaronpk's Oauth 2.0 Simplified book
#
[pfefferle]
in the best case we can use the OAuth 2 stuff of the REST API
#
GWG
How are you with JavaScript?
#
[pfefferle]
can I help you with something?
#
GWG
Just that you are excited about Gutenberg. I am worried about integration. I am not big in JS
#
GWG
I probably need to learn some
#
[pfefferle]
ah ok 🙂
#
GWG
pfefferle, also, how do blocks work with Microformats 2 properties? We may need to think about that
#
GWG
Would that possibly solve the meta rendering issue?
#
[pfefferle]
possibly… you can provide new blocks like “RSVP”
#
[pfefferle]
for example
#
[pfefferle]
I mean event
[miklb] joined the channel
#
[miklb]
good morning
#
GWG
That is what is implied, but I'm not 100% sure of the details.
#
GWG
I think custom blocks are going to replace post meta. But there is still the problem that puts post meta inside content. Whereas mf2 properties should be often outside content.
#
[pfefferle]
what about a widget area under each post, to support per post widgets?
#
[miklb]
and structured. Can’t just haphazardly place mf2 blocks in a post
#
GWG
I feel as if someone needs to start writing Gutenberg docs.
#
GWG
They simultaneously claim it is too early, yet are moving at top speed to get this into 5.0
#
GWG
It is the part about it I don't like
#
[miklb]
At least they are being honest now that the goal is to beat the Wix & Squarespaces out there
#
GWG
That is why I'm hedging my bets and looking to support alternate posting UIs as well
#
[pfefferle]
I am ok with it… if you publish docs too early you are limited later or you have to discuss changes
#
GWG
[pfefferle]: I'd be okay with it if they weren't also saying, "Try This. Get ready for this."
#
GWG
You can't have it both ways
#
[pfefferle]
gutenberg IS WordPress 5.0
#
[pfefferle]
but is this also the communication with developers or only with endusers?
#
[pfefferle]
I think the main fokus is still the user
#
GWG
I'm a user and a developer
#
GWG
And I don't know what to do.
#
[miklb]
they demoed it at WCUS to build the hype. They think 3-4 months, I’m guessing June
#
[pfefferle]
what till they are finished 😉
#
[pfefferle]
I mean “wait”
#
GWG
[pfefferle]: I am still hedging my bets
#
[pfefferle]
googling “hedging my bets”
#
GWG
[pfefferle]: Preparing for worst case scenarios?
#
[pfefferle]
“auf nummer sicher gehen” in german
#
[miklb]
well, literally it means making safer bets to possibly cover a big loss, but yeah
#
GWG
My IWC Austin project was automating as much as possible for users
#
GWG
So, Post Kinds parses URLs in order to generate a link preview to display
#
GWG
It now will do that automatically on Micropub posting.
#
GWG
It also will do that if you add query variables to the post-new.php URL
#
GWG
?kind=like&kindurl=example.com
#
[pfefferle]
why not OExchange compatible?
#
GWG
And finally, through a custom REST API handler.
#
GWG
OExchange?
#
GWG
What is OExchange?
#
Loqi
OExchange is a simple web-based convention for sharing any website via any platform on the web https://indieweb.org/OExchange
#
GWG
I'll have to look into that
#
GWG
And the OExchange plugin was written by....
#
GWG
[pfefferle]: I'll see about that
#
[pfefferle]
it is more or less a definition how to name the get params
#
GWG
But, the REST API handler requires authentication, but I was able to demo posting URLs to my site using a simple app I found online.
#
GWG
[pfefferle]: It doesn't support context though
#
GWG
'flash'?
#
[pfefferle]
it is an old spec 😄
#
GWG
I suppose I could do non-standard typing
#
GWG
I do 'like', 'bookmark', etc.
#
[pfefferle]
:thumbsup:
#
GWG
[pfefferle]: I'll have a look
#
GWG
In the meantime, I pass three variables
#
[pfefferle]
or ctype link and uftype
#
GWG
kind, kindurl, and status.
#
GWG
Status being the post status, 'publish', 'draft', etc. If not passed, it defaults to publish
#
GWG
I might add more if needed.
#
GWG
But mostly I'm reproducing a simpler version of Micropub, so I might as well use that.
#
GWG
Although getting PRs in is not easy for me
#
[pfefferle]
hmmm, I think there are two usecases: 1. have an API to use a different POST-UI 2. have a simple way to generate share-links/-widgets to call a post-UI with preset data
#
[miklb]
doesn’t the REST API and micropub fill the 1st one pretty well?
#
[pfefferle]
and (from my perspective) Post-Kinds is filling the 2nd
#
GWG
[pfefferle]: There is a 3rd one
#
GWG
3. Have a simple way to generate share links/widgets without any Post UI
#
GWG
So, just send the link and it publishes
#
GWG
Although that could be considered a different type of #1
#
[pfefferle]
but do you trust a widget that it posts everything correct?
#
GWG
[pfefferle]: Not necessarilly, but I have both options
#
[pfefferle]
if so, you could use micropub 😉
#
GWG
I'll let the users(including me as a user) decide what to use.
#
GWG
[pfefferle]: I could. And I'm working on that support as well.
#
[miklb]
wtf. Linode migrated my vps last night and now it’s inaccessible
#
GWG
Everything short of writing an Android app
#
[pfefferle]
you have too much free time, if you code a micropub fallback for Post-Kinds 😉
#
GWG
[pfefferle]: I don't really.
#
[pfefferle]
and I think we should perhaps restart the monolith discussion
#
GWG
[pfefferle]: I want to own my bookmarks and I can't wait, I guess
#
GWG
[pfefferle]: What about the monolith?
#
[pfefferle]
perhaps it is the only way to make a good indieweb experience
#
[pfefferle]
otherwise it is a fallback/polyfill/dependency hell
#
GWG
We could switch to a WooCommerce type model
#
GWG
Core plugin and extensions
#
GWG
But the core part has to have all the features it needs
#
GWG
For example, stop bundling PHP-MF2 in multiple plugins
#
[miklb]
https://indieweb.org/WordPress/Development#Planning maybe make some notes ^ there of this discussion?
#
[pfefferle]
I am not sure if there were findings that are not part of the uf2 discusiion
#
david.shanske.com
edited /WordPress/Development (+381) "/* Planning */"
(view diff)
#
GWG
But Avatar caching and MF2 Parsing are two areas multiple plugins overlap.
#
[pfefferle]
do you have an example?
#
GWG
Semantic Linkbacks, Post Kinds, and Indieweb plugin all have an interest in caching avatars from H-Card
#
[pfefferle]
if you say so 😉
#
GWG
A nicknames cache/avatar cache would be a great shared feature
#
[pfefferle]
me and my big mouth 😄
[tantek] and [manton] joined the channel
#
GWG
What's wrong, pfefferle?
#
GWG
Multiple plugins have an interest in parsing h-entry and h-card
[manton], [eddie], dougbeal|mb1, [xavierroy], tantek, [andrea_arbogast, [aaronpk], [chrisaldrich], raretrack, Loqi_, drkokandy, j12t, khurtwilliams, [tantek] and [pfefferle] joined the channel
tbbrown, dougbeal|imac, [manton] and [tantek] joined the channel