• Resolved cosbe

    (@becosfx)


    I am trying this plugin and successfully created a first story. It saves and is displayed in the Dashboard; it can be edited and saved again, however, when I try to preview it, I only see a white page with a 0 (zero) generated (no html code generated). I don’t know exactly what is wrong.

    I have the AMP plugin enabled and set as transitional with /?amp links being validated all right for other web pages in the website, except not for web stories.

    I am using WPSSO plugin for SSO and the web-stories have the WebPage schema set.

    Note – I am not a pro developer, just a content creator.

    Could you point me into the right direction to have this plugin working?

    Thank you for your support.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    @jsmoriss Breaking in the sense of a “0” (zero) being printed as in this original bug report here. If you look at my reproducible demo above, you can see that the body tag is not invalid and no additional output buffering is involved. If your plugin is on GitHub I can open an issue with even more detailed steps to reproduce.

    A <body> tag without attributes is not a valid WordPress body tag. If a valid body tag is not found, an HTML comment is added to the output buffer and the buffer is returned. Since the WPSSO SSM add-on uses a callback, the callback is executed automatically when PHP closes the output buffer.

    js.

    @swissspidy The use PHP output buffers without callbacks is a known issue, which was an obvious first place to look when the user reported a blank page. I’ve since found that the code to append the HTML comment (for an incorrect body tag) contains a syntax error. I’ll release an update for WPSSO SSM in a few short moments. Thank you for suggesting that incorrect template test. ??

    js.

    Thread Starter cosbe

    (@becosfx)

    @jsmoriss I updated the Strip Microdata plugin following your resolve and the website crashed altogether:

     Fatal error: Uncaught Error: Too few arguments to function WpssoSsm::init_objects(), 1 passed in /....../wp-includes/class-wp-hook.php on line 287 and exactly 3 expected
    in /......./wp-content/plugins/wpsso-strip-schema-microdata/wpsso-strip-schema-microdata.php on line 69
    
    Call stack:
    
    WpssoSsm::init_objects()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-content/plugins/wpsso/wpsso.php:457
    Wpsso::set_objects()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-settings.php:546
    require_once()
    /....../wp-config.php:75
    require_once()
    wp-load.php:42
    require_once()
    wp-admin/admin.php:34
    require_once()
    wp-admin/plugins.php:10

    Now what?!…

    Plugin Author Pascal Birchler

    (@swissspidy)

    Yeah I ran into this fatal error too, but gladly the latest WPSSO update fixes this.

    Now I don’t see any issues with WPSSO and Web Stories anymore.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Cannot visualize/preview the web story’ is closed to new replies.