Title: Warning errors with php 8.1
Last modified: April 21, 2023

---

# Warning errors with php 8.1

 *  Resolved [Animalejourbano](https://wordpress.org/support/users/animalejourbano/)
 * (@animalejourbano)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/warning-errors-with-php-8-1/)
 * I’ve just updated php to 8.1 and the following warnings appear en the admin area.
 *     ```wp-block-code
       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 /var/www/html/wp-content/plugins/email-subscribers/lite/includes/libraries/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 /var/www/html/wp-content/plugins/email-subscribers/lite/includes/libraries/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 /var/www/html/wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/ActionScheduler_DateTime.php on line 27 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-includes/functions.php on line 7053 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/functions.php on line 2165 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-includes/functions.php on line 7053 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/functions.php on line 2165 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-includes/functions.php on line 7053 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/functions.php on line 2165 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/wp-includes/functions.php on line 7053 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/functions.php on line 2165 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/ActionScheduler_DateTime.php:0) in /var/www/html/wp-admin/includes/misc.php on line 1431 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/ActionScheduler_DateTime.php:0) in /var/www/html/wp-includes/functions.php on line 6896 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/ActionScheduler_DateTime.php:0) in /var/www/html/wp-admin/admin-header.php on line 9
       ```
   
 * I’m running wordpress on docker with the following image:
   wordpress:6.2.0-php8.1-
   apacheand MySQL mysql:8.0.32I’m using the plugin to get new subscribers but I’m
   not sending emails trough it, so I’m not getting actual errors but I think it
   will be helpful to let you know.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Kishan Ranawat](https://wordpress.org/support/users/kishanranawat/)
 * (@kishanranawat)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/warning-errors-with-php-8-1/#post-16677612)
 * Hi [@animalejourbano](https://wordpress.org/support/users/animalejourbano/),
   
   Thank you for reporting this error. We are able to replicate it on our end too
   with Docker image wordpress:6.2.0-php8.1-apache.We are working on a fix for the
   issue and will try to release a fix in upcoming releases. Will let you know when
   this goes out.Hope this helps you. Let us know if you have any further queries.
   Thank you.
 *  Thread Starter [Animalejourbano](https://wordpress.org/support/users/animalejourbano/)
 * (@animalejourbano)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/warning-errors-with-php-8-1/#post-16687218)
 * Hi [@kishanranawat](https://wordpress.org/support/users/kishanranawat/). I’ll
   be waiting for the next update. 
   Thank you.
 *  Plugin Contributor [Shubhanshu Kandani](https://wordpress.org/support/users/shubhanshukandani/)
 * (@shubhanshukandani)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/warning-errors-with-php-8-1/#post-16889314)
 * Hi @animalejourbano,
   Hope you are doing well.Thanks for your patience and support.
   Our developer team has fixed the above mention issue in the latest release. We
   request you to please update the plugin with the latest release.If still, you
   face any issues related to it please let us know.Waiting for your confirmation.
 * ﻿Happy to support!
 *  Plugin Contributor [Shubhanshu Kandani](https://wordpress.org/support/users/shubhanshukandani/)
 * (@shubhanshukandani)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-errors-with-php-8-1/#post-16982020)
 * Hello @animalejourbano,
 * We hope our previous replies were helpful in resolving your issues.
 * I am closing this thread for now. Feel free to reopen it in case if you are still
   having issues or inquiries related to the plugin.
 * Also if you have any other queries, you can open a new thread from [**here**](https://wordpress.org/support/plugin/email-subscribers/#new-topic-0).
   We will be happy to assist you further.
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Warning errors with php 8.1’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 5 participants
 * Last reply from: [Shubhanshu Kandani](https://wordpress.org/support/users/shubhanshukandani/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/warning-errors-with-php-8-1/#post-16982020)
 * Status: resolved