Fatal error: Uncaught Error: Call to undefined function get_current_screen()

Installed Groups & Groups Restrict Categories and everything works as it should with respect to WooCommerce Product Catgeories.

But when I want to go to Appearance -> Customise I get the following error:

Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/bsuragen/public_html/uatprincessbutler/wp-content/plugins/groups-restrict-categories/lib/admin/class-groups-restrict-categories-taxonomy-admin.php:367 Stack trace: #0 /home/bsuragen/public_html/uatprincessbutler/wp-includes/class-wp-hook.php(298): Groups_Restrict_Categories_Taxonomy_Admin::get_terms_args(Array, Array) #1 /home/bsuragen/public_html/uatprincessbutler/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #2 /home/bsuragen/public_html/uatprincessbutler/wp-includes/class-wp-term-query.php(361): apply_filters('get_terms_args', Array, Array) #3 /home/bsuragen/public_html/uatprincessbutler/wp-includes/class-wp-term-query.php(291): WP_Term_Query->get_terms() #4 /home/bsuragen/public_html/uatprincessbutler/wp-includes/taxonomy.php(1119): WP_Term_Query->query(Array) #5 /home/bsuragen/public_html/uatprincessbutler/wp-includes/nav-menu.php(557): get_terms(Array, Array) #6 /home/bsuragen/public_html/uatprincessbutler/wp-in in /home/bsuragen/public_html/uatprincessbutler/wp-content/plugins/groups-restrict-categories/lib/admin/class-groups-restrict-categories-taxonomy-admin.php on line 367

When I de-activate the Groups Restrict Categories plugin everything works normally again.

P.S. Disabling Legacy settings in Options did't help.

Regards,

Lennert

3 Responses to Fatal error: Uncaught Error: Call to undefined function get_current_screen()

  1. Lennert February 20, 2017 at 2:18 pm #

    The Group Restrict Categories 2.0.1 plugin update fixed the issue.

    Thanks!

    Lennert

    • antonio February 21, 2017 at 9:10 am #

      Perfect !!

  2. antonio February 16, 2017 at 7:37 pm #

    Hi Lennert,
    Please check if you have installed the last Groups Rectrict Categories and Groups version.
    If you have the last and the problem persists, please let me know.
    Kind Regards,
    Antonio B.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share