• Resolved MitchellAU

    (@mitchellau)


    I can’t submit articles for approval because I’m getting publishing errors like this:

    [body] => {“errors”:[{“code”:”INVALID_DOCUMENT”,”keyPath”:[“root”,”components”,”[6]”,”text”],”message”:”\”text\” was \”\\\”\\\”\” should be not (null or an empty string)”},{“code”:”INVALID_DOCUMENT”,”keyPath”:[“root”,”components”,”[6]”],”message”:”no components defined for role=body”},{“code”:”INVALID_DOCUMENT”,”keyPath”:[“root”,”components”,”[8]”,”text”],”message”:”\”text\” was \”\\\”\\\”\” should be not (null or an empty string)”},{“code”:”INVALID_DOCUMENT”,”keyPath”:[“root”,”components”,”[8]”],”message”:”no components defined for role=body”}]}

    Also have layout issues where the Post’s Title is being placed above the Feature Image (Cover) and titles are truncated rather than wrapping in the draft list view in Apple Publisher.
    I have yet to work out which file to edit to change the how the json file is sent nor how to introduce additional style rules for h3 tags etc??

    https://wordpress.org/plugins/publish-to-apple-news/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    When you say “no errors” is that no errors in your PHP log? Because if you’re getting a whitescreen, there has to be an error somewhere.

    Thread Starter MitchellAU

    (@mitchellau)

    Yes, there would be errors but WP debug mode isn’t reporting anything. Will have to look at hosting. I don’t have any logs in my base directory.

    Will get back to you.

    Thread Starter MitchellAU

    (@mitchellau)

    Changed this if ( 'heading' === $shortname ) { to this if($shortname === 'heading') {.
    Seems obvious, now. 😉

    Works a treat. Thanks Bradford.

Viewing 3 replies - 16 through 18 (of 18 total)

The topic ‘Errors and layout issues’ is closed to new replies.