Title: PHP Fatal error: Uncaught Error: Call to undefined function
Last modified: February 24, 2020

---

# PHP Fatal error: Uncaught Error: Call to undefined function

 *  [alx359](https://wordpress.org/support/users/alx359/)
 * (@alx359)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-2/)
 * 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.

 * ![](https://ps.w.org/wp-nested-pages/assets/icon-128x128.png?rev=1690043)
 * [Nested Pages](https://wordpress.org/plugins/wp-nested-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-nested-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-nested-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-nested-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-nested-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-nested-pages/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [alx359](https://wordpress.org/support/users/alx359/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-2/)
 * Status: not resolved