Title: Error: Call to undefined function get_current_screen()
Last modified: November 8, 2016

---

# Error: Call to undefined function get_current_screen()

 *  [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/error-call-to-undefined-function-get_current_screen/)
 * Hello,
 * Thank you for the plugin. I used it for a year but recently, I notice the following
   error message in the error log:
 * [162.158.151.247:34320] [STDERR] PHP Fatal error: Uncaught Error: Call to undefined
   function get_current_screen() in /public_html/wp-content/plugins/scheduled-post-
   guardian/scheduled-post-guardian.php:89
    Stack trace: #0 /public_html/wp-includes/
   plugin.php(235): Scheduled_Post_Guardian_Plugin->run_on_edit_dot_php(false) #
   1 /public_html/wp-content/plugins/scheduled-post-guardian/scheduled-post-guardian.
   php(59): apply_filters(‘scheduled_post_…’, false) #2 /public_html/wp-includes/
   plugin.php(524): Scheduled_Post_Guardian_Plugin->shutdown(”) #3 /public_html/
   wp-includes/load.php(671): do_action(‘shutdown’) #4 [internal function]: shutdown_action_hook()#
   5 {main} thrown in //public_html/wp-content/plugins/scheduled-post-guardian/scheduled-
   post-guardian.php on line 89
 * I use PHP7.0. Could you please take a look?
 * Thank you.

The topic ‘Error: Call to undefined function get_current_screen()’ is closed to 
new replies.

 * ![](https://ps.w.org/scheduled-post-guardian/assets/icon-256x256.jpg?rev=3032417)
 * [Scheduled Post Guardian](https://wordpress.org/plugins/scheduled-post-guardian/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scheduled-post-guardian/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scheduled-post-guardian/)
 * [Active Topics](https://wordpress.org/support/plugin/scheduled-post-guardian/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scheduled-post-guardian/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scheduled-post-guardian/reviews/)

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