• Hi,

    I’ve migrated my site from LAMP to NGINX server, now if I activate the plugin and I try to edit any kind of post (product, post, page) I get blank page and ERROR 500.

    It happen only on NGINX not on the old LAMP.
    It happen also with no plugin installed/activated but just “extended-post-status” and WooCommerce with WordPress default theme.

    This is the log I got:
    2020/06/03 19:31:11 [error] 994#994: *417 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WP_Screen::is_block_editor() in /sites/stage.mysite.it/files/shop/wp-content/plugins/extended-post-status/admin/class-extended-post-status-admin.php:443
    Stack trace:
    #0 /sites/stage.mysite.it/files/shop/wp-includes/class-wp-hook.php(288): Extended_Post_Status_Admin->add_status_meta_box(‘product’)
    #1 /sites/stage.mysite.it/files/shop/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #2 /sites/stage.mysite.it/files/shop/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /sites/stage.mysite.it/files/shop/wp-admin/edit-form-advanced.php(334): do_action(‘add_meta_boxes’, ‘product’, Object(WP_Post))
    #4 /sites/stage.mysite.it/files/shop/wp-admin/post.php(174): include(‘/sites/stage.sp…’)
    #5 {main}
    thrown in /sites/stage.mysite.it/files/shop/wp-content/plugins/extended-post-status/admin/class-extended-post-status-admin.php on line 443″ while reading response header from upstream, client: 000.000.000.000, server: stage.mysite.it, request: “GET /shop/wp-admin/post.php?post=181710&action=edit HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.3-spwstage.sock:”, host: “stage.mysite.it”, referrer: “https://stage.sportway.it/shop/wp-admin/edit.php?post_type=product”

    Thanks in advance to your help! ??

    Ronny

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Felix W.

    (@welly2103)

    Hi @monkey-theatre

    I just setup a nginx on ubuntu 18 and installed the default mysql and php (7.2) setup and can’t reproduce the problem.

    The called class “WP_Screen” is a core class, which should always be callable.

    Could you provide the content of phpinfo()?

    Greetings Felix

    Thread Starter Ronny Briolotti

    (@monkey-theatre)

    Hi Felix,

    I could do that with a WP plugin.
    Hope this is readable. ??

    https://www.dropbox.com/t/akNIpnfBnV5n7E9E

    Thanks!
    Ronny

    Plugin Author Felix W.

    (@welly2103)

    Hi @monkey-theatre

    my setup is nearly exactly the same as yours and I’m not able to reproduce the error ??

    But the error message is interesting. Do you use nginx as reverse proxy and php is still deliveread via FastCGI – Apache? Maybe you could try to use FPM for PHP, just to have a quickfix.

    Greetings Felix

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘nginx error 500’ is closed to new replies.