Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1294834

    Hi team,

    I´m having an issue when I activate a woocommerce payment plugin (https://wordpress.org/plugins/woocommerce-mercadopago/).
    I get the following fatal error on cart and checkout pages respectively.

    Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\module\class-wc-woomercadopago-module.php:574 Stack trace: #0 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\module\class-wc-woomercadopago-module.php(574): method_exists(Array, 'get_meta') #1 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\payments\class-wc-woomercadopago-payment-abstract.php(1620): WC_WooMercadoPago_Module::is_subscription(Array) #2 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\payments\class-wc-woomercadopago-basic-gateway.php(199): WC_WooMercadoPago_Payment_Abstract->is_available() #3 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\class-wc-payment-gateways.php(151): WC_WooMercadoPago_Basic_Gateway->is_available() #4 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\wc-template-functions.php(3768): WC_Payment_Gateways->get_available_payment_gateways() #5 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(292): wc_get_pay_buttons('') #6 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #7 C:\xampp\htdocs\minidin\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #8 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\templates\cart\cart-totals.php(107): do_action('woocommerce_pro...') #9 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\wc-core-functions.php(345): include('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\wc-template-functions.php(2065): wc_get_template('cart/cart-total...') #11 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(292): woocommerce_cart_totals('') #12 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #13 C:\xampp\htdocs\minidin\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #14 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\templates\cart\cart.php(172): do_action('woocommerce_car...') #15 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\wc-core-functions.php(345): include('C:\\xampp\\htdocs...') #16 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\shortcodes\class-wc-shortcode-cart.php(99): wc_get_template('cart/cart.php') #17 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\class-wc-shortcodes.php(72): WC_Shortcode_Cart::output(Array) #18 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce\includes\class-wc-shortcodes.php(85): WC_Shortcodes::shortcode_wrapper(Array) #19 C:\xampp\htdocs\minidin\wp-includes\shortcodes.php(343): WC_Shortcodes::cart('', '', 'woocommerce_car...') #20 [internal function]: do_shortcode_tag(Array) #21 C:\xampp\htdocs\minidin\wp-includes\shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(woocom...', 'do_shortcode_ta...', '[woocommerce_ca...') #22 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(292): do_shortcode('[woocommerce_ca...') #23 C:\xampp\htdocs\minidin\wp-includes\plugin.php(212): WP_Hook->apply_filters('[woocommerce_ca...', Array) #24 C:\xampp\htdocs\minidin\wp-includes\post-template.php(253): apply_filters('the_content', '<!-- wp:shortco...') #25 C:\xampp\htdocs\minidin\wp-content\themes\enfold\includes\loop-page.php(34): the_content('Read more<span ...') #26 C:\xampp\htdocs\minidin\wp-includes\template.php(732): require('C:\\xampp\\htdocs...') #27 C:\xampp\htdocs\minidin\wp-includes\template.php(676): load_template('C:\\xampp\\htdocs...', false, Array) #28 C:\xampp\htdocs\minidin\wp-includes\general-template.php(204): locate_template(Array, true, false, Array) #29 C:\xampp\htdocs\minidin\wp-content\themes\enfold\page.php(35): get_template_part('includes/loop', 'page') #30 C:\xampp\htdocs\minidin\wp-includes\template-loader.php(106): include('C:\\xampp\\htdocs...') #31 C:\xampp\htdocs\minidin\wp-blog-header.php(19): require_once('C:\\xampp\\htdocs...') #32 C:\xampp\htdocs\minidin\index.php(17): require('C:\\xampp\\htdocs...') #33 {main} thrown in C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\module\class-wc-woomercadopago-module.php on line 574

    Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\module\class-wc-woomercadopago-module.php:574 Stack trace: #0 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\module\class-wc-woomercadopago-module.php(574): method_exists(Array, 'get_meta') #1 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\payments\class-wc-woomercadopago-payment-abstract.php(1620): WC_WooMercadoPago_Module::is_subscription(Array) #2 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\payments\class-wc-woomercadopago-basic-gateway.php(199): WC_WooMercadoPago_Payment_Abstract->is_available() #3 C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\payments\hooks\class-wc-woomercadopago-hook-basic.php(107): WC_WooMercadoPago_Basic_Gateway->is_available() #4 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(292): WC_WooMercadoPago_Hook_Basic->add_checkout_scripts_basic('') #5 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #6 C:\xampp\htdocs\minidin\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #7 C:\xampp\htdocs\minidin\wp-includes\script-loader.php(2027): do_action('wp_enqueue_scri...') #8 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(292): wp_enqueue_scripts('') #9 C:\xampp\htdocs\minidin\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #10 C:\xampp\htdocs\minidin\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #11 C:\xampp\htdocs\minidin\wp-includes\general-template.php(3009): do_action('wp_head') #12 C:\xampp\htdocs\minidin\wp-content\themes\enfold\header.php(100): wp_head() #13 C:\xampp\htdocs\minidin\wp-includes\template.php(730): require_once('C:\\xampp\\htdocs...') #14 C:\xampp\htdocs\minidin\wp-includes\template.php(676): load_template('C:\\xampp\\htdocs...', true, Array) #15 C:\xampp\htdocs\minidin\wp-includes\general-template.php(48): locate_template(Array, true, true, Array) #16 C:\xampp\htdocs\minidin\wp-content\themes\enfold\page.php(9): get_header() #17 C:\xampp\htdocs\minidin\wp-includes\template-loader.php(106): include('C:\\xampp\\htdocs...') #18 C:\xampp\htdocs\minidin\wp-blog-header.php(19): require_once('C:\\xampp\\htdocs...') #19 C:\xampp\htdocs\minidin\index.php(17): require('C:\\xampp\\htdocs...') #20 {main} thrown in C:\xampp\htdocs\minidin\wp-content\plugins\woocommerce-mercadopago\includes\module\class-wc-woomercadopago-module.php on line 574

    Note that I´m trying this on my localhost before moving it to my hosting. In the meantime, I´m still working with my live website using the default Enfold plugin and this payment plugin without any issue. Just in case, I´m leaving the website on the private content section.

    Thank you very much.

    • This topic was modified 3 years, 8 months ago by gasto.
    #1295261

    Hey gasto,

    So you are only getting this problem on a local installation, while it’s working as it should on your live site?

    Please note that our support is limited when it comes to third party plugins, and that the theme cannot be compatible with all available plugins.

    Best regards,
    Rikard

    #1295283

    Hi Rikard, that´s right. The problem is present on my live installation using the default Enfold theme. But I´m having that issue when trying on my local installation using Photography.

    That´s why I don´t think it´s an incompatibility with Enfold and this plugin.
    Thanks

    #1295686

    Hi,

    Thanks for the update. So the problem occurs on your live site as well? If so, then please give us access to it in private. I would suggest that you reach out to the plugin developers for help as well, as our support is limited in cases like these. You can also try switching to a different theme, to see if the same problem happens then.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.