Title: PHP deprecated error from this plugin
Last modified: April 11, 2024

---

# PHP deprecated error from this plugin

 *  Resolved [holdusback](https://wordpress.org/support/users/holdusback/)
 * (@holdusback)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/)
 * Hey there,
 * While debugging my website I found those deprecated notice in my PHP error log:
 * Im a using PHP8.2.8
 * Deprecated: Creation of dynamic property Mailtpl_Customizer::$defaults is deprecated
   in /wp-content/plugins/email-templates/includes/class-mailtpl-customizer.php 
   on line 44
 * Deprecated: Creation of dynamic property Mailtpl_Mailer::$opts is deprecated 
   in /wp-content/plugins/email-templates/includes/class-mailtpl-mailer.php on line
   45
 * Thanks in advance !

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

 *  Plugin Support [Daniyal Raza](https://wordpress.org/support/users/daniyalraza01/)
 * (@daniyalraza01)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17692567)
 * Hello [@holdusback](https://wordpress.org/support/users/holdusback/) ,
 * Hope you are doing well. Sorry to hear that.
 * Here is the updated plugin beta version download link below. Please re-install
   it into your site.
 * [Download Now](https://drive.google.com/file/d/1OSYEps3Nh0HDO-ELrqvrUoVetxYw07bI/view?usp=sharing)
 * Also, please make sure to take a backup before uploading this plugin on your 
   site.
 * Let me know if the issue still persist.
 * Thanks & Regards,
   WP Experts Support Team
 *  [clementrectangle](https://wordpress.org/support/users/clementrectangle/)
 * (@clementrectangle)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17710490)
 * Hi,
 * Came here for the same problem, I installed the beta version you provided, but
   it seems the deprecated errors are still there.
 * I still get those 2 errors on every page load :
 * **Deprecated**: Creation of dynamic property Mailtpl_Customizer::$defaults is
   deprecated in **/plugins/email-templates/includes/class-mailtpl-customizer.php**
   on line **49**
 * **Deprecated**: Creation of dynamic property Mailtpl_Mailer::$opts is deprecated
   in **/plugins/email-templates/includes/class-mailtpl-mailer.php** on line **49**
 * I looked in “class-mailtpl-customizer.php”, and it seems the problem hasn’t been
   fixed : you need to declare this “defaults” property before using it :
 * private $defaults;
 *  Plugin Support [Daniyal Raza](https://wordpress.org/support/users/daniyalraza01/)
 * (@daniyalraza01)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17715157)
 * Hello [@clementrectangle](https://wordpress.org/support/users/clementrectangle/),
 * Sorry for the inconvenience.
 * I had forwarded this to our technical team. They are trying to replicate it on
   our environment. We will update you soon.
 * Thanks
 *  Plugin Support [Daniyal Raza](https://wordpress.org/support/users/daniyalraza01/)
 * (@daniyalraza01)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17719894)
 * Hello there,
 * Sorry for the delay. We have made some code changes according to your case.
 * Here is the updated plugin beta version download link below. Please re-install
   it into your site.
 * [Download Now](https://drive.google.com/file/d/1C2l5_OJiqkjoNYN4lk_RmokRVHgWPUD-/view?usp=sharing)
 * Also, please make sure to take a backup before uploading this plugin on your 
   site.
 * Let me know if the issue still persist.
 * Thanks 
 *  Thread Starter [holdusback](https://wordpress.org/support/users/holdusback/)
 * (@holdusback)
 * [2 years ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17769858)
 * Hey there,
   Any ETA on an official update for this ?Not rly urgent but still, 
   should be fixed by the devs 🙂Have a wonderful day !
 *  [gilles66](https://wordpress.org/support/users/gilles66/)
 * (@gilles66)
 * [2 years ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17772622)
 * Hi,
 * I have the same problem on “php deprecated” in my logs, and the updated plugin
   beta version stills generate this message “[22-May-2024 09:14:00 UTC] PHP Deprecated:
   Creation of dynamic property Mailtpl_Mailer::$opts is deprecated in /xxx/wp-content/
   plugins/email-templates/includes/class-mailtpl-mailer.php on line 49”.
 *  Plugin Support [Daniyal Raza](https://wordpress.org/support/users/daniyalraza01/)
 * (@daniyalraza01)
 * [2 years ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17775665)
 * Hello [@holdusback](https://wordpress.org/support/users/holdusback/) ,
 * Just for an update, this version will be released in couple of weeks. There are
   some features on which our technical team is working. So we can’t commit any 
   timeline but this is in process.
 * Thanks
 *  Plugin Support [Daniyal Raza](https://wordpress.org/support/users/daniyalraza01/)
 * (@daniyalraza01)
 * [2 years ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17775669)
 * Hello [@gilles66](https://wordpress.org/support/users/gilles66/) ,
 * Please try with this updated beta version download link below. Please re-install
   it into your site.
 * [Download Now](https://drive.google.com/file/d/1C2l5_OJiqkjoNYN4lk_RmokRVHgWPUD-/view?usp=sharing)
 * Also, please make sure to take a backup before uploading this plugin on your 
   site.
 * Let me know if the issue still persist.
 * Thanks 
 *  Plugin Support [Muhammad Usama Azad](https://wordpress.org/support/users/usamaazad99/)
 * (@usamaazad99)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17855955)
 * Your issue has been resolved. We are going to mark this ticket as resolved.
 * If you have any other issues, please feel free to open a new ticket. We are always
   here to assist you!
 * Thanks & regards,
   WP Experts Support Team

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

The topic ‘PHP deprecated error from this plugin’ is closed to new replies.

 * ![](https://ps.w.org/email-templates/assets/icon-256x256.gif?rev=2891165)
 * [Email Templates Customizer and Designer for WordPress and WooCommerce](https://wordpress.org/plugins/email-templates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-templates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-templates/)
 * [Active Topics](https://wordpress.org/support/plugin/email-templates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-templates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-templates/reviews/)

 * 9 replies
 * 5 participants
 * Last reply from: [Muhammad Usama Azad](https://wordpress.org/support/users/usamaazad99/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/php-deprecated-error-from-this-plugin/#post-17855955)
 * Status: resolved