• Fatal error: Uncaught ArgumentCountError: 2 arguments are required, 1 given in /var/www/schs/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/form2/inputs/traits/label.php:39 Stack trace: #0 [internal function]: sprintf() #1 /var/www/schs/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/form2/inputs/traits/label.php(39): call_user_func_array() #2 /var/www/schs/wp-content/plugins/mycryptocheckout/src/admin_trait.php(869): plainview\sdk_mcc\form2\inputs\input->label() #3 [internal function]: mycryptocheckout\MyCryptoCheckout->admin_global_settings() #4 /var/www/schs/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/wordpress/tabs/tabs.php(328): call_user_func_array() #5 /var/www/schs/wp-content/plugins/mycryptocheckout/src/menu_trait.php(136): plainview\sdk_mcc\wordpress\tabs\tabs->render() #6 /var/www/schs/wp-includes/class-wp-hook.php(292): mycryptocheckout\MyCryptoCheckout->admin_menu_tabs() #7 /var/www/schs/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #8 /var/www/schs/wp-includes/plugin.php(484): WP_Hook->do_action() #9 /var/www/schs/wp-admin/admin.php(259): do_action() #10 /var/www/schs/wp-admin/options-general.php(10): require_once(‘…’) #11 {main} thrown in /var/www/schs/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/form2/inputs/traits/label.php on line 39

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gsim

    (@gsim)

    The problem is PHP related, as in PHP 7 they are warnings, but fatal in PHP 8. Add variables in the functiondecleration and default it to null.

    eg

    function test($a,$b=null)
    {
    }

    • This reply was modified 3 years, 10 months ago by gsim.
    Plugin Author edward_plainview

    (@edward_plainview)

    Which version of MCC are you using?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal PHP Error in the code.’ is closed to new replies.