• Resolved Appaloosa

    (@benoitappaloosa)


    Hi,

    Regarding to file in includes/emails/class-wc-email.php

    There is an php implode in a public function call get_recipient() line 447 and this give me an error “Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated” since I upgrade my server to php 8.2.

    Will there be an update to this function?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @benoitappaloosa,

    Thank you for reaching out to us.

    The function explode() is deprecated, which means it’s no longer supported in newer versions of PHP.

    To address this issue, I recommend updating your WooCommerce plugin to the latest version, as we regularly fix bugs and improve compatibility with newer PHP versions in our updates.

    If you’ve tried all these steps and the problem persists, we would appreciate it if you could share the System Status Report?(which you can find via?WooCommerce > Status > Get system report > Copy for support)?as well. You can paste it via?https://gist.github.com/?and send the link here.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter Appaloosa

    (@benoitappaloosa)

    Thank Rajesk for your answer. I know explode is deprecated. My customer website use the WooCommerce plugin latest version (9.0.2) and the server run under php 8.2. No problems at this level.

    This is why I wonder about the presence of this php explode in the function in the Woocommerce sources You can also see it on the Woocommerce Github repository : https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/emails/class-wc-email.php on line 445.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @benoitappaloosa

    I understand your concern about the deprecated function in the WooCommerce source code.

    Our development team is constantly working on improving and updating our codebase to ensure it’s compatible with the latest PHP versions. This includes replacing deprecated functions with newer, supported ones.

    It would be great if you could create an enhancement request on our GitHub repo here, so our developer team can review it and provide further insights.

    You can also ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.

    In the meantime, if you’re experiencing any issues or errors due to this function, please let us know so we can assist you further.

    Thank you for your patience and understanding. We appreciate your help in making WooCommerce better.

    Thread Starter Appaloosa

    (@benoitappaloosa)

    Thanks a lot Shameem.
    I’ll put this issue on your GitHub repo.

    Have a nice day.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @benoitappaloosa,

    We appreciate your efforts. Our developers will be able to pick it up from there.

    With that said, I’ll go ahead and mark this thread as solved.

    Feel free to reach out if you have any further questions.

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