Title: getting error when opening theme customizer
Last modified: September 1, 2016

---

# getting error when opening theme customizer

 *  Resolved [acropora](https://wordpress.org/support/users/acropora/)
 * (@acropora)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-error-when-opening-theme-customizer/)
 * I get a weird error when opening theme customizer: Fatal error: Call to undefined
   function get_current_screen() wp-content/plugins/new-user-approve/includes/user-
   list.php on line 200
 * on line 200 in php file it says : $screen = get_current_screen();
 * How would i fix this?
 * [https://wordpress.org/plugins/new-user-approve/](https://wordpress.org/plugins/new-user-approve/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jscongdon](https://wordpress.org/support/users/jscongdon/)
 * (@jscongdon)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-error-when-opening-theme-customizer/#post-7558197)
 * I was getting the same thing. Here’s how I fixed it.
    I commented out lines 201-
   204 in the /wpcontent/plugins/new-user-approve/includes/user-list.php
 * If you are accessing the file via the GUI editor, edit the New User Approve plugin…
   and select file new-user-approve/includes/user-list.php
    Look for the filter_by_status
   function and comment out:
 *     ```
       $screen = get_current_screen();
       if ( isset( $screen ) && 'users' != $screen->id ) {
       return;
       }
       ```
   
 *  [Josh Harrison](https://wordpress.org/support/users/picklewagon/)
 * (@picklewagon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/getting-error-when-opening-theme-customizer/#post-8351325)
 * I am not able to recreate this bug. Perhaps it has been fixed on the WordPress
   side of things. Is anybody still seeing this problem?
 *  [jasonblackdog](https://wordpress.org/support/users/jasonblackdog/)
 * (@jasonblackdog)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/getting-error-when-opening-theme-customizer/#post-8534533)
 * We are also experiencing this issue. Same error using WordPress 4.7. We did not
   have this issue prior to WP 4.7 so not sure what may have changed. Please help!
 *  [jscongdon](https://wordpress.org/support/users/jscongdon/)
 * (@jscongdon)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/getting-error-when-opening-theme-customizer/#post-8535048)
 * I am still seeing this issue. It appears a plugin update had wiped out my comments
   that corrected the issue.
    I am running WP version 4.6.1, NUA version 1.7.4 When
   in the Dashboard and go to Appearance > Customize I get the following error message:
   Fatal error: Call to undefined function get_current_screen() in [SITE_INFO_REDACTED]/
   wp-content/plugins/new-user-approve/includes/user-list.php on line 203 The lines
   of code that I mentioned in a previous comment are found at the referenced location.
   A little digging brings me to the WordPress.org Function referene page: [https://codex.wordpress.org/Function_Reference/get_current_screen](https://codex.wordpress.org/Function_Reference/get_current_screen)
 * As noted in the Usage Restrictions section:
    This function is defined on most
   admin pages, but not all. Thus there are cases where is_admin() will return true,
   but attempting to call get_current_screen() will result in a fatal error because
   it is not defined. One known example is wp-admin/customize.php.
 * So, this function can not be called on this page.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘getting error when opening theme customizer’ is closed to new replies.

 * ![](https://ps.w.org/new-user-approve/assets/icon-128x128.gif?rev=2544141)
 * [New User Approve](https://wordpress.org/plugins/new-user-approve/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/new-user-approve/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/new-user-approve/)
 * [Active Topics](https://wordpress.org/support/plugin/new-user-approve/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/new-user-approve/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/new-user-approve/reviews/)

## Tags

 * [approve user](https://wordpress.org/support/topic-tag/approve-user/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 4 replies
 * 4 participants
 * Last reply from: [jscongdon](https://wordpress.org/support/users/jscongdon/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/getting-error-when-opening-theme-customizer/#post-8535048)
 * Status: resolved