• Resolved getyoowoo

    (@getyoowoo)


    When I create a NEW Sippet on the MAIN network site everything is oke (no mather what options I activate).

    But when I OPEN an earlier created Snippet on the MAIN network site en click the SAVE button, I ALWAYS get a FATAL ERROR just like below.

    Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/users/xxxxxxftp/xxxxxxo.nl/wp-content/plugins/code-snippets/php/class-db.php:50 Stack trace: #0 /home/users/xxxxxxftp/xxxxxxo.nl/wp-content/plugins/code-snippets/php/class-db.php(75): Code_Snippets_DB->validate_network_param(NULL) #1 /home/users/xxxxxxftp/xxxxxxo.nl/wp-content/plugins/code-snippets/php/class-admin.php(121): Code_Snippets_DB->get_table_name() #2 /home/users/xxxxxxftp/xxxxxxo.nl/wp-includes/class-wp-hook.php(298): Code_Snippets_Admin->prevent_exec_on_save(true, 3, 'yw_ms_snippets') #3 /home/users/xxxxxxftp/xxxxxxo.nl/wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #4 /home/users/xxxxxxftp/xxxxxxo.nl/wp-content/plugins/code-snippets/php/snippet-ops.php(499): apply_filters('code_snippets/a...', true, 3, 'yw_ms_snippets') #5 /home/users/xxxxxxftp/xxxxxxo.nl/wp-includes/class-wp-hook.php(298): execute_active_snippets('') #6 /home/users/xxxxxxftp/xxxxxxo.nl/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array in /home/users/xxxxxxftp/xxxxxxo.nl/wp-content/plugins/code-snippets/php/class-db.php on line 50

    Hope you can fix this soon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    I got the same error on one of my sites. Was able to solve this error by adding
    require_once(ABSPATH . 'wp-admin/includes/screen.php');
    to line 43 in class-db.php

    Plugin Author Shea Bunge

    (@bungeshea)

    Hello all,

    I am extremely sorry, this is an issue in the core plugin. It will be fixed in the immanent next release.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BUG REPORT 2.4.9: Fatal Error when SAVING Snippet in MAIN network site’ is closed to new replies.