Support » Plugin: Scripts n Styles » Fatal Error on Fresh Install with just Woocommerce activated

  • fippy

    (@dgilfillan)


    Hi, When visiting the usage page of your plugin an error is thrown (see below) this occurs on a brand new in stall of WP 5.2.4 with just your plugin and Woocommerce 3.7.1 installed.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Admin_Post_Types::add_display_post_states(), 1 passed in /var/www/html/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /var/www/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php:875 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(286): WC_Admin_Post_Types->add_display_post_states(Array) #1 /var/www/html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #2 /var/www/html/wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php(144): apply_filters(‘display_post_st…’, Array) #3 /var/www/html/wp-content/plugins/scripts-n-styles/includes/class-sns-list-usage.php(66): SnS_List_Usage->_post_states(Object(WP_Post)) #4 /var/www/html/wp-admin/includes/class-wp-list-table.php(1327): SnS_List_Usage->column_title(Object(WP_Post)) #5 /var/www/html/wp-admin/includes/class-wp-list-table.php(1272): WP_List_Table->single_row_columns(Object(WP_Post)) #6 /var/www/html/wp-admin in /var/www/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php on line 875

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.