Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter vishalrathod21

    (@vishalrathod21)

    So after looking into my nginx logs i was able to see the actual issue

    FastCGI sent in stderr: “PHP message: PHP Warning:

    Undefined array key "post_content" in wp/wp-includes/post.php on line 4046

    After debugging i was able to resolve it using follows :

    File : wp/wp-includes/post.php #Line 4046

    Replace Following

    if ( ('' == $postarr['post_content']) || ('' == $postarr['post_title'])  )

    With

    if ( (array_key_exists("post_content",$postarr) && '' == $postarr['post_content']) || (array_key_exists("post_title",$postarr) && '' == $postarr['post_title'])  )

    Not sure if it is optimal solution as it is wordpress core file and likely to be updated upon updating the wordpress version upgrade in future but for now it works.

    Any suggestions for alternative solutions which may fix it on web stories plugin specific scope and not core level ?

Viewing 1 replies (of 1 total)