• Resolved gerold1968

    (@gerold1968)


    Hi, since last update on 3.4.1 there is a fatal error when trying to export a snippet from the snippets overview page directly. Though working when exporting from the snippet itself!?

    2023-06-30T14:48:57+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function Code_Snippets\DB::get_table_name(), 0 passed in /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/export/class-export.php on line 38 and exactly 1 expected in /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/class-db.php:92
    Stack trace: 0 /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/export/class-export.php(38): Code_Snippets\DB->get_table_name() 1 /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/export/class-export.php(27): Code_Snippets\Export->fetch_snippets() 2 /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/class-list-table.php(719): Code_Snippets\Export->__construct() 3 /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/class-list-table.php(764): Code_Snippets\List_Table->perform_action() 4 /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/class-list-table.php(948): Code_Snippets\List_Table->process_requested_actions() 5 /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/admin-menus/class-manage-menu.php(118): Code_Snippets\List_Table->prepare_items() 6 /var/www/vhosts/bettamberg.work/httpdocs/wp-includes/class-wp-hook.php(308): Code_Snippets\Manage_Menu->load() 7 /var/www/vhosts/bettamberg.work/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 8 /var/www/vhosts/bettamberg.work/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 9 /var/www/vhosts/bettamberg.work/httpdocs/wp-admin/admin.php(237): do_action() 10 {main} thrown in /var/www/vhosts/bettamberg.work/httpdocs/wp-content/plugins/code-snippets/php/class-db.php in Zeile 92
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Definitely looks like a bug in the plugin. We’ll look at getting a fix out once we’ve confirmed there aren’t any other patches required for this release.

    Thank you for reporting!

    Plugin Author Shea Bunge

    (@bungeshea)

    We’re releasing version 3.4.2 to fix this problem. Thanks for reporting!

    Thread Starter gerold1968

    (@gerold1968)

    Hey Shea, thanks for your quick reply and reaction. This is very much appriciated!

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