• Hey! I’m really looking forward to using MyCryptoCheckout however, upon activating it, I’m met with the following error (both inside the WP Dashboard header as well as on the live site):

    Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 4

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php:48) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362

    And here’s the code from /wp-includes/functions.php on line 6362:

    function send_frame_options_header() {
    header( ‘X-Frame-Options: SAMEORIGIN’ );
    }

    If I try to do anything else inside the Dashboard, it crashes the website completely, and I’m forced to delete the plugin through the FTP instead to restore it.

    Any ideas as to what I can do? Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    What does your MCC account data say? Do you have valid account info there or is there an error fetching the data?

    If so, see the FAQ on the plugin’s main page.

    Thread Starter neval123

    (@neval123)

    I can’t check / change / edit anything, as the second I activate the plugin, the website crashes with the above mentioned error.

    Plugin Author edward_plainview

    (@edward_plainview)

    That’s just a warning and shouldn’t crash anything.

    Is WP_DEBUG enabled? Disable that. Is anything else PHP warning related enabed in your webhosting? Disable that also.

    Thread Starter neval123

    (@neval123)

    WP_DEBUG is disabled (wasn’t enabled before either). There’s nothing else I can disable or check that I haven’t tried yet and besides, I’ve never ever had this happen with any other plugin.

    Thread Starter neval123

    (@neval123)

    Any ideas as to what I can do?

    Plugin Author edward_plainview

    (@edward_plainview)

    Complete website crashes usually result in a descriptive error either in the browser, if WP_DEBUG is enabled, or in the webserver’s error log.

    I don’t suppose the error log says anything?

    Without a real error, and not just the warnings you pasted, it’s difficult for me to say what the problem could be.

    Thread Starter neval123

    (@neval123)

    I’ve enabled WP_DEBUG and WP_DEBUG_LOG to see what information I can gather.

    Upon installing and activating the plugin I get the following error on the Dashboard:

    Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45

    Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48

    Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362

    And this is the error I get on the live website:

    Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45

    Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48

    Upon going into Settings -> MyCryptoCheckout, I get the following message:

    It appears as if MyCryptoCheckout was unable to retrieve your account data from the API server.

    Click the Refresh your account data button below to try and retrieve your account data again.

    After clicking the “Refresh button”, I get:

    2021-06-08 15:03:18

    Error refreshing your account data. Please enable debug mode to find the error.

    And here’s the debug.log content:

    [08-Jun-2021 13:01:03 UTC] PHP Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, x_woocommerce_after_shop_loop_item_title, woocommerce_template_loop_add_to_cart, wc_get_template, include(‘/plugins/woocommerce/templates/loop/add-to-cart.php’), WC_Product_Simple->add_to_cart_url, apply_filters(‘woocommerce_product_add_to_cart_url’), WP_Hook->apply_filters, misha_fix_for_individual_products, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 5313
    [08-Jun-2021 13:01:25 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:01:25 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:01:25 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362
    [08-Jun-2021 13:01:28 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:01:28 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:01:28 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:01:28 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:01:28 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/pluggable.php on line 1329
    [08-Jun-2021 13:01:46 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:01:46 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:01:53 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:01:53 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:01:54 UTC] PHP Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, x_woocommerce_after_shop_loop_item_title, woocommerce_template_loop_add_to_cart, wc_get_template, include(‘/plugins/woocommerce/templates/loop/add-to-cart.php’), WC_Product_Simple->add_to_cart_url, apply_filters(‘woocommerce_product_add_to_cart_url’), WP_Hook->apply_filters, misha_fix_for_individual_products, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 5313
    [08-Jun-2021 13:02:13 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:02:13 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:02:13 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362
    [08-Jun-2021 13:02:15 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:02:15 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:02:32 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:02:32 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:02:32 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362
    [08-Jun-2021 13:02:34 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:02:34 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:02:59 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:02:59 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:02:59 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:02:59 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:01 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362
    [08-Jun-2021 13:03:03 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:03:03 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:14 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:03:14 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:14 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362
    [08-Jun-2021 13:03:16 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:03:16 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:18 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:03:18 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:18 UTC] PHP Deprecated: wp_no_robots is deprecated since version 5.7.0! Use wp_robots_no_robots() instead. in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 4861
    [08-Jun-2021 13:03:19 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:03:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:57 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:03:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:03:57 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362
    [08-Jun-2021 13:04:00 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:04:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:04:03 UTC] PHP Notice: Undefined property: stdClass::$currency_data in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php on line 45
    [08-Jun-2021 13:04:03 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/src/currencies_trait.php on line 48
    [08-Jun-2021 13:04:03 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/websitename/public_html/wp-content/plugins/mycryptocheckout/vendor/mycryptocheckout/api/src/v2/Account.php:45) in /home/customer/www/websitename/public_html/wp-includes/functions.php on line 6362

    Hope this helps, but if it’s not enough, let me know what else I can provide. Thank you!

    Thread Starter neval123

    (@neval123)

    Hey! Did you get a chance to look over the logs? Thank you! 🙂

    Plugin Author edward_plainview

    (@edward_plainview)

    > Click the Refresh your account data button below to try and retrieve your account data again.

    This is the core of your problem. Our FAQ has a section for this:

    Unable to retrieve your account data

    If MyCryptoCheckout is unable to retrieve the account data for your domain, it’s usually due to the MCC API server being blocked from connecting to your install. Check for:

    Maintenance plugins
    Password protection plugins
    Firewalls

    Thread Starter neval123

    (@neval123)

    I’ve just tried everything I could, allowing the MyCryptoCheckout API host on CloudFlare Firewall and all other security features, but to no avail. Anyway, thank you kindly for your time and support, appreciate it!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error upon activating plugin’ is closed to new replies.