• From time to time I’m getting this error in the logs:

    PHP Fatal error: Uncaught Error: Call to undefined function NestedPages\get_current_screen() in wp-content/plugins/wp-nested-pages/app/Redirects.php:64

    A recommended fix for similar cases elsewhere seems adding this line:
    require_once( ABSPATH . 'wp-admin/includes/screen.php' );

    plugins\wp-nested-pages\app\Redirects.php line ~63:

    public function linkDeleted($post_id)
    {
    	require_once( ABSPATH . 'wp-admin/includes/screen.php' );
            $screen = get_current_screen();

The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function’ is closed to new replies.