• Resolved orangeletter2

    (@orangeletter2)


    Hi developers of EDD,

    First of all, thank you for developing this awesome extension for WordPress. We recently upgraded to EDD 3.1.5 and PHP version 8.2 and noticed that some parts are not compatible yet with 8.2.

    Would it be able to fix these errors, please?

    DeprecatedReturn type of Carbon\Carbon::createFromFormat($format, $time, $tz = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+

    1. wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php:568

    1Plugin: easy-digital-downloadsDeprecatedReturn type of Carbon\Carbon::getLastErrors() should either be compatible with DateTime::getLastErrors(): array|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+

    1. wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php:600

    1Plugin: easy-digital-downloadsDeprecatedReturn type of Carbon\Carbon::setTimezone($value) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+

    1. wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php:944

    1Plugin: easy-digital-downloadsDeprecatedReturn type of Carbon\Carbon::setDate($year, $month, $day) should either be compatible with DateTime::setDate(int $year, int $month, int $day): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+

    1. wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php:859

    1Plugin: easy-digital-downloadsDeprecatedReturn type of EDD\Utils\Date::format($format = ‘datetime’) should either be compatible with DateTime::format(string $format): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+

    1. wp-content/plugins/easy-digital-downloads/includes/utils/class-date.php:58

    1Plugin: easy-digital-downloadsDeprecatedCreation of dynamic property Easy_Digital_Downloads::$email_summary_admin is deprecated+

    1. wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php:228

    1Plugin: easy-digital-downloadsDeprecatedCreation of dynamic property EDD\Component::$types is deprecated+

    1. wp-content/plugins/easy-digital-downloads/includes/orders/functions/types.php:62

    1Plugin: easy-digital-downloadsDeprecatedAutomatic conversion of false to array is deprecated+

    1. wp-content/plugins/easy-digital-downloads/includes/payments/functions.php:1763

    1Plugin: easy-digital-downloadsDeprecatedDateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated+

    1. wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php:291

    1Plugin: easy-digital-downloadsDeprecatedstrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated+

    1. wp-includes/functions.php:7053

    3Plugin: easy-digital-downloadsDeprecatedstr_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated+

    1. wp-includes/functions.php:2165

    3Plugin: easy-digital-downloadsDeprecatedConstant FILTER_SANITIZE_STRING is deprecated+

    1. wp-content/plugins/easy-digital-downloads/src/Admin/Extensions/Extension_Manager.php:87

    1Plugin: easy-digital-downloads

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Daniel

    (@dgoldak)

    Hi @orangeletter2 I shared this with our developers and if they haven’t already been addressed, they will be when we support PHP 8.2.

    The next major EDD release, 3.2 will support up to PHP 8.1.

    Note, WordPress is still in beta for PHP 8.x support.

    Thread Starter orangeletter2

    (@orangeletter2)

    Hi @dgoldak,

    Thank you for forwarding these deprecated notices to your EDD team. Meanwhile, I created a staging environment and came across multiple deprecated errors.

    Deprecated: Return type of Carbon\Carbon::createFromFormat($format, $time, $tz = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php on line 568
    
    Deprecated: Return type of Carbon\Carbon::getLastErrors() should either be compatible with DateTime::getLastErrors(): array|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php on line 600
    
    Deprecated: Return type of Carbon\Carbon::setTimezone($value) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php on line 944
    
    Deprecated: Return type of Carbon\Carbon::setDate($year, $month, $day) should either be compatible with DateTime::setDate(int $year, int $month, int $day): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/libraries/Carbon.php on line 859
    
    Deprecated: Return type of EDD\Utils\Date::format($format = 'datetime') should either be compatible with DateTime::format(string $format): string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/utils/class-date.php on line 58
    
    Deprecated: Creation of dynamic property SliceWP_Migration_1_0_16::$redirect is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-migration.php on line 48
    
    Deprecated: Creation of dynamic property SliceWP_Migration_1_0_17::$redirect is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-migration.php on line 48
    
    Deprecated: Creation of dynamic property SliceWP_Migration_1_0_59::$redirect is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-migration.php on line 48
    
    Deprecated: Creation of dynamic property SliceWP_Migration_1_0_73::$redirect is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-migration.php on line 48
    
    Deprecated: Creation of dynamic property SliceWP_Migration_1_0_88::$redirect is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-migration.php on line 48
    
    Deprecated: Creation of dynamic property SliceWP_Migration_1_0_90::$redirect is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/slicewp/includes/base/abstracts/abstract-class-migration.php on line 48
    
    Deprecated: Creation of dynamic property EDD_Auto_Register::$basename is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-auto-register1/edd-auto-register.php on line 127
    
    Deprecated: Creation of dynamic property EDD_Per_Product_Emails::$file is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php on line 97
    
    Deprecated: Creation of dynamic property EDD_Per_Product_Emails::$basename is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php on line 98
    
    Deprecated: Creation of dynamic property EDD_Per_Product_Emails::$plugin_dir is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php on line 99
    
    Deprecated: Creation of dynamic property EDD_Per_Product_Emails::$plugin_url is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php on line 100
    
    Deprecated: Creation of dynamic property EDD_Per_Product_Emails::$includes_dir is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php on line 103
    
    Deprecated: Creation of dynamic property EDD_Per_Product_Emails::$includes_url is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php on line 104
    
    Deprecated: Creation of dynamic property EDD\Component::$types is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/orders/functions/types.php on line 62
    
    Deprecated: Use of "self" in callables is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/wp-discourse/lib/discourse.php on line 225
    
    Deprecated: Creation of dynamic property WPDRMS\ASP\Updates\Manager::$udpates_o is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/ajax-search-pro/includes/classes/Updates/Manager.php on line 39
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 556
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 557
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 558
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 561
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 562
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 563
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 564
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-content/plugins/wp-cloudflare-page-cache1/libs/cache_controller.class.php on line 565
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Deprecated: Creation of dynamic property EDD\Customers\Customer_Address::$is_primary is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-base-object.php on line 128
    
    Deprecated: Creation of dynamic property EDD\Customers\Customer_Address::$name is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-base-object.php on line 128
    
    Deprecated: Creation of dynamic property EDD\Customers\Customer_Address::$uuid is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-base-object.php on line 128
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$id is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$parent is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$name is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$code is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$status is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$scope is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$amount_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$amount is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$description is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$max_uses is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$use_count is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$once_per_customer is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$min_charge_amount is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$start_date is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$end_date is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$date_created is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$date_modified is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD\Database\Rows\Adjustment::$uuid is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-base.php on line 266
    
    Deprecated: Creation of dynamic property EDD_Download::$post_type is deprecated in /home/runcloud/webapps/website-name/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php on line 174
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-includes/pluggable.php on line 1435
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/runcloud/webapps/website-name/wp-content/plugins/edd-per-product-emails1/edd-per-product-emails.php:97) in /home/runcloud/webapps/website-name/wp-includes/pluggable.php on line 1438
    
     
    Plugin Support Mihai Joldis

    (@misulicus)

    Thank you for the report. We have logged the EDD related ones on our internal issue tracker.

    Is there any update on PHP 8.2 support?

    Plugin Author Chris Klosowski

    (@cklosows)

    @alamana

    We are in the process of assessing our 8.2 support for EDD Core. With the last release (Version 3.2.0) we launched PHP 8.1 support. We are working to get all the PHP 8.2 notices and warnings corrected, however they are much larger ones to correct with quite a few code changes to make.

    We are aiming to have all the PHP 8.2 notices cleared up in the near future , however I do not have a specific date or version number yet as we are still in the process of ensuring that we have our full testing suite working on PHP 8.2 before we state we are compatible.

    It should be noted that WordPress itself is still only in Beta support for PHP 8.2 and should . WordPress 6.3 officially supports PHP 8.1 with exceptions allowed: https://make.www.ads-software.com/core/handbook/references/php-compatibility-and-wordpress-versions/

    Thank you for the inquiry.

    Thanks for the speedy and informative reply Chris! It sounds like this won’t land before 2024 – is that a safe bet?

    Plugin Author Chris Klosowski

    (@cklosows)

    @alamana I cannot comment on a timeframe. It is something we are actively working on, and our hope is to release it sooner than 2024, pending prioritization of critical bugs and other aspects of the EDD Ecosystem that also need attention.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Deprecated’ is closed to new replies.