Title: Fatal PHP Error in the code.
Last modified: April 30, 2021

---

# Fatal PHP Error in the code.

 *  [gsim](https://wordpress.org/support/users/gsim/)
 * (@gsim)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-in-the-code/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-php-error-in-the-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [gsim](https://wordpress.org/support/users/gsim/)
 * (@gsim)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fatal-php-error-in-the-code/#post-14385111)
 * 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 5 years, 1 month ago by [gsim](https://wordpress.org/support/users/gsim/).
 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [5 years ago](https://wordpress.org/support/topic/fatal-php-error-in-the-code/#post-14388776)
 * 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.

 * ![](https://ps.w.org/mycryptocheckout/assets/icon.svg?rev=1869074)
 * [MyCryptoCheckout - Bitcoin, Ethereum, and 100+ altcoins for WooCommerce](https://wordpress.org/plugins/mycryptocheckout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycryptocheckout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycryptocheckout/)
 * [Active Topics](https://wordpress.org/support/plugin/mycryptocheckout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycryptocheckout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycryptocheckout/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/fatal-php-error-in-the-code/#post-14388776)
 * Status: not resolved