• Hi
    I’m using Organization and Web Site and they are ok.

    But when I want to add Article, Blog Posting or News Article on Posts or Custom Post the page stop rendering..

    It stop right after this:

    <!-- Markup (JSON-LD) structured in schema.org ver.3.1.4 START -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Organization",
        "name": "XXX",
        "url": "https://www.XXX.com:8443",
        "logo": "https://www.XXX.com:8443/wp-content/uploads/2016/12/logo.png",
        "sameAs": [
            "https://www.facebook.com/XXX.FR",
            "https://www.twitter.com/XXX_fr",
            "https://google.com/+XXX",
            "https://www.youtube.com/user/XXX"
        ]
    }
    </script>

    I’m using PHP 5.6
    I enable WordPress debug but no errors shows up.

    Thanks

    • This topic was modified 8 years, 3 months ago by pako69.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter pako69

    (@pako69)

    I look into you code and has find where it stopped :
    File: wp-structuring-display.php
    Function: set_schema_blog_posting ()
    Line: 385 (if ( !has_post_thumbnail( $post->ID ) ) { })
    Return: $args["message"][] = __( "Featured Image not set.", $this->text_domain );

    I have echo the $args and it is:

    Array
    (
        [@context] => https://schema.org
        [@type] => BlogPosting
        [message] => Array
            (
                [0] => Featured Image not set.
            )
    )

    So I suppose that should echoing ‘Featured Image not set’ somewhre but instead it block the rendering of the page.

    BUT if I understand, it is nos possible to use Article, Blog Posting or News Article IF they do not have a feature image?

    Plugin Author miiitaka

    (@miiitaka)

    Hi, @pako69

    The image is mandatory before AMP release, and an error occurs if it is not set.
    I think that the error state is not appropriate.
    As it is now recommended, it should be rendered even if the feature image is not set up. I will make a challenge. ??

    Thanks.

    Thread Starter pako69

    (@pako69)

    Hi @miiitaka

    As I’m not english, I’m not sure about your answer… so…Will the featured image remain mandatory for your plugin to work or not?

    Thanks

    Plugin Author miiitaka

    (@miiitaka)

    Hi @pako69

    Version 3.1.6 changed the feature image from required to recommended.
    Please upgrade and try it. ??

    Thanks.

    Thread Starter pako69

    (@pako69)

    hi @miiitaka

    Updated to 3.1.6 and no sorry… it do not work for me, I alway get no output on the page..

    If it can help you, I’m using your plugin on a dev webite with an URL like this:
    https://www.my-site.com:8443/

    And I use it with custom posts, not WordPress relugar posts.

    Thanks for helping me ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank page’ is closed to new replies.