PHP 8.1.4 warning
-
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in …/wp-content/plugins/all-in-one-seo-pack/app/Common/Traits/Helpers/Strings.php on line 158
-
Hey @webliberty,
Thank you for reporting this.
Do you perhaps have the full callstack for this error? Unfortunately the file you’ve mentioned contains helper methods, which we use across the entire plugin, so without the callstack it will be difficult for us to trace the cause of this issue down.
Hey @webliberty,
This will be fixed in the next version of AIOSEO.
Thanks!
Hello!
I have updated the plugin to version 4.2.3.1 where it is stated: Compatibility with PHP 8.1.
But there are still a lot of warnings from the plugin in my console when the debug is enabled:Deprecated: Return type of ActionScheduler_DateTime::setTimezone($timezone) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php on line 60 Deprecated: Return type of ActionScheduler_DateTime::getOffset() should either be compatible with DateTime::getOffset(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php on line 48 Deprecated: Return type of ActionScheduler_DateTime::getTimestamp() should either be compatible with DateTime::getTimestamp(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php on line 27 Warning: Cannot modify header information - headers already sent by (output started at / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php:0) in / /wp-admin/includes/misc.php on line 1381 Warning: Cannot modify header information - headers already sent by (output started at / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php:0) in / /wp-includes/functions.php on line 6878 Warning: Cannot modify header information - headers already sent by (output started at / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php:0) in / /wp-admin/admin-header.php on line 9 null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in / /wp-includes/formatting.php on line 2772 Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in / /wp-content/plugins/all-in-one-seo-pack/vendor/woocommerce/action-scheduler/functions.php on line 272
Woocommerce is often repeated here, which I don’t even have installed…
Hey @webliberty,
Thank you for getting back to us.
Those deprecation notices are coming from Action Scheduler, which is a cron package we use inside AIOSEO that is developed by the WooCommerce team. That is why you’re seeing their name there.
We aren’t able to fix these issues ourselves since it’s not our own code, but they’ve released an update with compatibility changes for PHP 8.1, which we’ll try to include in our next release, 4.2.5. We just need to evaluate it and make sure everything else is still working correctly.
Thank you so much for your support! I’ll be waiting)
Hi @webliberty,
I wanted to let you know that we’ve now released All in One SEO version 4.2.4 which includes a fix for this issue.
- The topic ‘PHP 8.1.4 warning’ is closed to new replies.