• Resolved tom coady

    (@tomcoady)


    I’ve been using this plugin for several years now so it wasn’t suspected until I deactivated all plugins apart from WooCommerce and saw the error return while reactivating woocommerce-gateway-paypal-powered-by-braintree 2.6.2

    On a recent thread here I noticed PHP 8.0 mentioned which has also been active for a couple of years so I tried downgrading to PHP 7.4.25 without changing the error message:

    `php -v
    PHP 7.4.25 (cli) (built: Nov 17 2021 03:37:37) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.25, Copyright (c), by Zend Technologies
    [ps503766]$ wp plugin list
    PHP Deprecated: is_ajax is deprecated since version 6.1.0! Use wp_doing_ajax instead. in /wp-includes/functions.php on line 5211
    Deprecated: is_ajax is deprecated since version 6.1.0! Use wp_doing_ajax instead. in /wp-includes/functions.php on line 5211
    +————————————————–+———-+——–+———+
    | name | status | update | version |
    +————————————————–+———-+——–+———+
    | akismet | inactive | none | 4.2.1
    | woocommerce-gateway-paypal-powered-by-braintree | active | none | 2.6.2
    | woocommerce | active | none | 6.1.0 |

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hi @tomcoady,

    Thanks for reaching out. The is_ajax function was deprecated in the WooCommerce Core with version 6.1. Braintree is still using this function and it will continue to work. WooCommerce hasn’t removed the function from the software. This is a notice for developers to update their code.

    There’s an open issue about this on GitHub. I’d suggest following along with it to stay up to date on changes.

    https://github.com/woocommerce/woocommerce-gateway-paypal-powered-by-braintree/issues/390

    Let us know if you have any questions.

    Thanks!

    I am also having this issue.

    That link does not work nor can I find woocommerce-gateway-paypal-powered-by-braintree on Github. Is it perhaps a private repo?

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Sorry about that. It is a private repo.

    If it’s actively causing issues, you can try rolling back to WooCommerce 6.0. If the only problem is seeing a PHP notice about this, I recommend disabling displaying debug messages. They’re more for developers and typically we don’t want to show messages like that on live stores.

    Debugging in WordPress

    Let me know if you have any questions.

    Thread Starter tom coady

    (@tomcoady)

    OK fantastic, thank you. I have commented out debug in wp-config.php :
    //define( ‘WP_DEBUG’, true );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated: is_ajax is deprecated since version 6.1.0! Use wp_doing_ajax instead’ is closed to new replies.