• File /plugins/woocommerce-mercadopago/includes/module/mercadopago-settings/class-wc-woomercadopago-mercadopago-settings.php

    Line 589

    'enabled' => isset($gateway->settings['enabled']) ? $gateway->settings['enabled'] : false,

    Line 683

    if ( isset( $gateway->settings['enabled'] ) && 'yes' === $gateway->settings['enabled'] ) {
    				    wp_send_json_success( __( 'At least one payment method is enabled', 'woocommerce-mercadopago' ) );
    				}
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter diegpl

    (@diegpl)

    Please, also fix this one: “Return type of MercadoPago\PP\Sdk\Common\AbstractCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice” in wp-content/plugins/woocommerce-mercadopago/packages/sdk/src/Common/AbstractCollection.php:64 changing this:

    public function getIterator()
    {
    return new \ArrayIterator($this->collection);
    }

    for

    public function getIterator(): \Traversable
    {
    return new \ArrayIterator($this->collection);
    }
    Thread Starter diegpl

    (@diegpl)

    Vocês n?o est?o prestando suporte ao plugin? Já tem um tempo que apontei coisas simples aqui de serem consertadas, e ainda fica uma viso eterno no site, que n?o sai nunca, vcs s?o melhores do que isso ??

    Thread Starter diegpl

    (@diegpl)

    Por favor, também remova isso de class-wc-woocommerce-init.php linha 277 ele duplica o aviso, quem também n?o era para ficar aparecendo para sempre:

    //add_action( ‘woocommerce_settings_checkout’, array( CLASS, ‘mp_show_admin_notices’ ) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fix these Mercado Pago plugin php warnings with this code, please’ is closed to new replies.