Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello Phil,
    I reproduced the issue. Here’s a quick fix.

    open the frmGetPosts.php file in plugins folder and replace line 30 ( <?php wp_head; ?> ) with this line:
    <?php do_action(‘admin_enqueue_scripts’); ?>

    I will also include this fix in the next plugin update.

    Regards,
    Alex L.

    Thread Starter stones001

    (@stones001)

    Dear Alex,

    After doind this, the fatal error is now in woocomerce instead of graphene.
    The following issue appears:
    Fatal error: Call to undefined function get_current_screen() in /home/eexpl870/public_html/wp-content/plugins/woocommerce/admin/woocommerce-admin-init.php on line 401

    Anyway, i’m able to correct the issue by adding comments in the theme-head.php located in Graphene folder like this:

    // if ( ! $hook_suffix && is_admin() ) {
    // $current_screen = get_current_screen();
    // $hook_suffix = $current_screen->base;
    // }

    and then add comment in the woocommerce-admin-init.php line 401:
    //$screen = get_current_screen();

    I don’t know at this time what would be the collateral effects of this change ??

    Take care,
    Phil

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to undefined function get_current_screen()’ is closed to new replies.