• Resolved Purnendu

    (@impurnendu)


    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

    (@davidanderson)

    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

    Hi @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

    (@davidanderson)

    @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://www.ads-software.com/support/plugin/wp-optimize/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error’ is closed to new replies.