Title: get_current_screen bricks wordpress on update
Last modified: June 9, 2025

---

# get_current_screen bricks wordpress on update

 *  Resolved [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * (@herrzhull)
 * [1 year ago](https://wordpress.org/support/topic/get_current_screen-bricks-wordpress-on-update/)
 * Hi,
 * The latest update seems to cause a fatal error. Rerolling to 1.2.0 works fine.
   
   _Fatal error: Uncaught Error: Call to undefined function ACFFieldBlocks\get\_current\
   _screen() in plugins/acf-field-blocks/inc/class-blocks.php:135_Edit:I think the
   issue is you do $current_screen = get_current_screen(); before checking if (is_admin).
   When updating, for example, the admin screen isn’t set up and the site crashes
   due to this call.
    -  This topic was modified 1 year ago by [herrzhull](https://wordpress.org/support/users/herrzhull/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fget_current_screen-bricks-wordpress-on-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [gamaup](https://wordpress.org/support/users/gamaup/)
 * (@gamaup)
 * [1 year ago](https://wordpress.org/support/topic/get_current_screen-bricks-wordpress-on-update/#post-18503238)
 * Hi,
 * Thank you for noticing. It has been fixed in the latest update (v1.2.2).
 *  Thread Starter [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * (@herrzhull)
 * [1 year ago](https://wordpress.org/support/topic/get_current_screen-bricks-wordpress-on-update/#post-18503244)
 * That was fast! I can confirm this fixed the issue.

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

The topic ‘get_current_screen bricks wordpress on update’ is closed to new replies.

 * ![](https://ps.w.org/acf-field-blocks/assets/icon-256x256.png?rev=3153438)
 * [Blocks for ACF Fields — Display Custom Fields in the Block Editor](https://wordpress.org/plugins/acf-field-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-field-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-field-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-field-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-field-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-field-blocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/get_current_screen-bricks-wordpress-on-update/#post-18503244)
 * Status: resolved