Support #24595
closedproblems with publishing posts
0%
Description
Syelle Graves reports problems with publishing posts on https://textbasedtasks.commons.gc.cuny.edu/. When she tries, they come up looking like the attached screenshot.
I cannot figure out what is causing this.
Files
Updated by Boone Gorges 8 days ago
- Status changed from New to Resolved
- Target version set to 2.6.8
This is not a problem with the publishing process, but it's happening on posts that are published by certain authors, which happens to be Syelle (and luckily my own test account). The problem is that the Bravada theme (which is ancient) builds its 'Posted by' string using an author avatar. This author avatar can sometimes contain the % character, at least for certain accounts. When this happens, Bravada passes the string into the sprintf() function, which breaks when it sees the % character and expects it to indicate a placeholder sequence.
In https://github.com/cuny-academic-commons/cac/commit/90566950abccafd6ab956425af5e7256af3bedb9 I put a fix in place that escapes avatar URLs properly so that this error doesn't occur. This is deployed as a hotfix.
Updated by Marilyn Weber 8 days ago
Thanks. Boone! I've asked her to let us know.
Updated by Marilyn Weber 6 days ago
All good. She asked who solved it and I told her it was you, Boone. She replied "I figured Boone or Scott, Wizards who Walk among us"
Updated by Boone Gorges 5 days ago
I'm realizing that this is not the first time I've fixed this error in Bravada - it happened once before, during the migration to Reclaim.
I've opened a support ticket with Bravada and hopefully they'll roll in the fix before the next release https://wordpress.org/support/topic/fatal-errors-due-to-percent-signs-in-avatars/