Title: Fatal Error
Last modified: July 23, 2019

---

# Fatal Error

 *  Resolved [Purnendu](https://wordpress.org/support/users/impurnendu/)
 * (@impurnendu)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3261/)
 * My site became white screen and telling “experiencing technical difficulties”.
 * Then debugging the error I found this—
 * `Fatal error: Uncaught Error: Call to undefined function get_current_screen()
   in /home/***/public_html/wp-content/plugins/wp-optimize/includes/class-updraft-
   smush-manager.php:1048 Stack trace: #0 /home/***/public_html/wp-includes/class-
   wp-hook.php(286): Updraft_Smush_Manager->add_compress_button_to_media_modal(Array,
   Object(WP_Post)) #1 /home/***/public_html/wp-includes/plugin.php(208): WP_Hook-
   >apply_filters(Array, Array) #2 /home/***/public_html/wp-admin/includes/media.
   php(1784): apply_filters('attachment_fiel...', Array, Object(WP_Post)) #3 /home/****/
   public_html/wp-includes/media.php(3409): get_compat_media_markup(5187, Array)#
   4 /home/****/public_html/wp-content/themes/flatsome/inc/shortcodes/ux_image.php(
   51): wp_prepare_attachment_for_js(Object(WP_Post)) #5 /home/****/public_html/
   wp-includes/shortcodes.php(325): ux_image(Array, '', 'ux_image') #6 [internal
   function]: do_shortcode_tag(Array) #7 /home/***/public_html/wp-includes/shortcodes.
   php(199): preg_replace_callback('/\\[(\\[?)(ux_ima. in /home/***/public_html/
   wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php on line
   1048`

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

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3261/#post-11760525)
 * Hi,
 * Thank you for the report. The details enabled us to find the issue. The shortcode
   in the theme calls a function that’s only normally called on the back-end, which
   WP-O hooks into. A fatal error results because WP-O then calls a function that
   is only available on the back-end. We’ve now rectified this in the just-released
   version 3.0.5 – please update, and all should be well.
 * David
 *  [skovall](https://wordpress.org/support/users/skovall/)
 * (@skovall)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3261/#post-11763397)
 * Hi [@davidanderson](https://wordpress.org/support/users/davidanderson/) – I am
   unable to post a new one but letting you know I upgraded to 3.0.5 and I got the
   error on my end.
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3261/#post-11764028)
 * [@skovall](https://wordpress.org/support/users/skovall/) You can’t have got the
   same error as this topic is about, as that is certainly fixed. Please post what’s
   in your PHP log. To open a new topic, go to the bottom of the page: [https://wordpress.org/support/plugin/wp-optimize/](https://wordpress.org/support/plugin/wp-optimize/)

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

The topic ‘Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-3261/#post-11764028)
 * Status: resolved