Title: Errors and layout issues
Last modified: August 31, 2016

---

# Errors and layout issues

 *  Resolved [MitchellAU](https://wordpress.org/support/users/mitchellau/)
 * (@mitchellau)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/errors-and-layout-issues/)
 * 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/](https://wordpress.org/plugins/publish-to-apple-news/)

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

[←](https://wordpress.org/support/topic/errors-and-layout-issues/?output_format=md)
[1](https://wordpress.org/support/topic/errors-and-layout-issues/?output_format=md)
2

 *  Plugin Author [Bradford Campeau-Laurion](https://wordpress.org/support/users/potatomaster/)
 * (@potatomaster)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/errors-and-layout-issues/page/2/#post-7180320)
 * 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](https://wordpress.org/support/users/mitchellau/)
 * (@mitchellau)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/errors-and-layout-issues/page/2/#post-7180321)
 * 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](https://wordpress.org/support/users/mitchellau/)
 * (@mitchellau)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/errors-and-layout-issues/page/2/#post-7180322)
 * 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)

[←](https://wordpress.org/support/topic/errors-and-layout-issues/?output_format=md)
[1](https://wordpress.org/support/topic/errors-and-layout-issues/?output_format=md)
2

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

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

## Tags

 * [Apple News](https://wordpress.org/support/topic-tag/apple-news/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 18 replies
 * 3 participants
 * Last reply from: [MitchellAU](https://wordpress.org/support/users/mitchellau/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/errors-and-layout-issues/page/2/#post-7180322)
 * Status: resolved