Title: Fatal error in theme customizer
Last modified: June 13, 2020

---

# Fatal error in theme customizer

 *  Resolved [webrightnow](https://wordpress.org/support/users/webrightnow/)
 * (@webrightnow)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/)
 * Plugin causes a fatal error when clicking on theme customizer in the admin:
 * `Fatal error: Uncaught Error: Call to undefined function get_current_screen()
   in /home1/graceaft/public_html/newsite/wp-content/plugins/new-user-approve/includes/
   user-list.php:206 Stack trace: #0 /home1/graceaft/public_html/newsite/wp-includes/
   class-wp-hook.php(287): pw_new_user_approve_user_list->filter_by_status(Object(
   WP_User_Query)) #1 /home1/graceaft/public_html/newsite/wp-includes/class-wp-hook.
   php(311): WP_Hook->apply_filters('', Array) #2 /home1/graceaft/public_html/newsite/
   wp-includes/plugin.php(544): WP_Hook->do_action(Array) #3 /home1/graceaft/public_html/
   newsite/wp-includes/class-wp-user-query.php(582): do_action_ref_array('pre_user_query',
   Array) #4 /home1/graceaft/public_html/newsite/wp-includes/class-wp-user-query.
   php(77): WP_User_Query->prepare_query(Array) #5 /home1/graceaft/public_html/newsite/
   wp-includes/user.php(579): WP_User_Query->__construct(Array) #6 /home1/graceaft/
   public_html/newsite/wp-content/themes/grace/inc/customizer.php(66): get_users(
   Array) #7 /home1/graceaft/public_html/newsite/wp-includes in /home1/graceaft/
   public_html/newsite/wp-content/plugins/new-user-approve/includes/user-list.php
   on line 206`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-in-theme-customizer%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * (@wpexpertssupportteam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-12985931)
 * Hi [@webrightnow](https://wordpress.org/support/users/webrightnow/),
    Thank you
   for contacting us, We have tested the mentioned scenario on our stagging environment
   and we are unable to replicate this issue we have tested this on the default 
   WordPress theme and it is working perfectly fine can you please let me know the
   theme you are using also please share the list of those plugins which are currently
   activated on your website so we can test accordingly.
 * Thanks!
 *  Thread Starter [webrightnow](https://wordpress.org/support/users/webrightnow/)
 * (@webrightnow)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-12986326)
 * Hi, the theme is OnePress and the plugins that were active when I encountered
   the error were:
 * AddToAny Share Buttons
    Advanced Custom Fields BackupBuddy Captcha Booster Classic
   Editor Event Organiser Gallery Custom Links GDPR Cookie Compliance Gravity Forms
   MemberPress Member New User Approve PayPal Donation Really Simple SSL Slider 
   Revolution Velvet Blues Update URLs Yoast SEO
 * Latest version of all plugins and WordPress 5.4.2–en_GB.
 * Since then, I disabled the Member plugin and the New User Approve plugin, and
   installed Ultimate Member which provides a combination of those features, so 
   I can’t debug things myself, but hopefully you can work it out.
 * Thanks
 *  [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * (@wpexpertssupportteam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-12987099)
 * Hi [@webrightnow](https://wordpress.org/support/users/webrightnow/),
    We have
   forwarded the details to the QA team we will get back to you once we hear back
   from them.
 *  [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * (@wpexpertssupportteam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-12998506)
 * Hi [@webrightnow](https://wordpress.org/support/users/webrightnow/),
    As we have
   tested, there is an issue with One press themes when this theme is active, an
   error is displaying in customizers please have a look at the screencast video
   shared below.
 * [https://drive.google.com/file/d/1zxOVRpZGmWN1OLlp1t1wPDUXoT17m5KZ/view?usp=sharing](https://drive.google.com/file/d/1zxOVRpZGmWN1OLlp1t1wPDUXoT17m5KZ/view?usp=sharing)
 *  Thread Starter [webrightnow](https://wordpress.org/support/users/webrightnow/)
 * (@webrightnow)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-12998800)
 * Ok thanks for testing, I suspected the theme was to blame. Unfortunately I can’t
   change theme, but I have found another solution for user approval.
 *  [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * (@wpexpertssupportteam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-13001692)
 * Hi [@webrightnow](https://wordpress.org/support/users/webrightnow/),
    Thanks 
   for bringing this to our attention, our team is testing if the issue is from 
   our end we will fix it and release an update soon.

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

The topic ‘Fatal error in 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [wpexpertssupportteam](https://wordpress.org/support/users/wpexpertssupportteam/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-in-theme-customizer/#post-13001692)
 * Status: resolved