• Resolved Harish Tewari

    (@harishtewari)


    Fatal error: Uncaught Error: Google\Web_Stories\Admin\Admin::prefill_post_content(): Argument #2 ($post) must be of type WP_Post, null given, called in /var/www/wp-includes/class-wp-hook.php on line 307
    in /var/www/wp-content/plugins/web-stories/includes/Admin/Admin.php on line 134

    For Fixing this issue we change this WP_Post to $post

    public function prefill_post_content( $content, WP_Post )

    public function prefill_post_content( $content, $post )

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Heya, thanks for reaching out and reporting this. This param coming from WordPress is really supposed to always be a WP_Post instance, so a bit odd that it isn’t for you.

    Does this still happen if you disable all other plugins on your site?

    We’ll look into adding a workaround on our side in the meantime.

    @harishtewari We are going to mark your topic as resolved as we haven’t received a response. Please feel free to open a new support topic if you experience any other issues. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Web stories Plugin Fatal error’ is closed to new replies.