#wordpress 2023-05-19

2023-05-19 UTC
gRegor, [jeremycherfas], [aciccarello], gregsplace, KMF, [timothy_chambe] and [Caleb_Hearth] joined the channel
#
gregsplace
So, I'm trying to figure out why I can't fix a post title after it was published via Micropub... the example I have is this: https://gregsplace.net/2023/05/19/67/
#
Loqi
[preview] [Greg Lopez] Starting out my day, hopefully on a good note veranda green apartment - Burien, Washington <?xml version="1.0" encoding="utf-8"> 17°C Smoke
#
gregsplace
Hmm, is that XML stuff supposed to be there?
#
GWG
gregsplace: Does the post have a title?
#
GWG
Some themes, if the title is empty, doesn't show it
#
gregsplace
GWG, it does not as it was a check-in via Swarm that was posted via OwnMySwarm
#
gregsplace
guess I need to properly configure tags on the OwnMySwarm side also
#
GWG
gregsplace: Checkins don't have titles, so what would you want the title to be?
#
gregsplace
Okay, think I figured out a solution... once I set a tag in the OwnMySwarm interface. I'll just need to get used to the idea that I can't successfully edit a post in the web interface if it contains a location and was added via Micropub
gRegor joined the channel
#
GWG
gregsplace: That shouldn't be
#
[chrisbergr]
I don't have any problems editing posts importet via ownyourswarm.
#
[chrisbergr]
I'm aslo using a filter for 'the_title' checking if post kind is checkin and then adding a default title "Checked in at location name"
#
gregsplace
I do, when I click on the update button, it's like nothing happened. I'm wondering if it's a PHP error, but there's not any indication of what might be blocking the changes
#
[chrisbergr]
Are you using the classic editor or gutenberg?
#
gregsplace
classic editor
#
[chrisbergr]
strange. Do you output errors or write debug.log?
#
gregsplace
Gutenberg isn't accessible to a screen reader, or it isn't as accessible as the classic editor
#
gregsplace
I may need to configure PHP to log errors... trying to use Apache's logs is just confusing
#
[chrisbergr]
You can set
#
[chrisbergr]
define('WP_DEBUG', true);
#
[chrisbergr]
define('WP_DEBUG_LOG', true);
#
[chrisbergr]
define('WP_DEBUG_DISPLAY', false);
#
[chrisbergr]
in wp-config.php
#
[chrisbergr]
this will write into wp-content/debug.log
#
GWG
I'm happy to try to try troubleshoot to the extent I can
#
gregsplace
any help would be appreciated, as I struggle at times with things that go over my head
#
[chrisbergr]
If you have any debug log, copy it e.g. into a new gist on github and share the link here.