Title: PHP Error: get_magic_quotes_runtime
Last modified: December 18, 2019

---

# PHP Error: get_magic_quotes_runtime

 *  Resolved [matty0501](https://wordpress.org/support/users/matty0501/)
 * (@matty0501)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-error-get_magic_quotes_runtime/)
 * Just a heads up on a PHP error that was thrown on my site by the GMail SMTP Plugin.
   I’ve got debug mode enabled on my site, and it threw an error when my site tried
   to send an email after processing a WooCommerce order.
 * It said that the function get_magic_quotes_runtime is depreciated. This function
   can be found on line 2697 of class.phpmailer.php
 * I’ve done some digging, and the [function was depreciated in PHP7.4](https://www.php.net/manual/en/function.get-magic-quotes-runtime.php)
 * I’ve only had the error come up once, but it seems that it prevented the order
   email from being sent. My site has been processing orders and sending emails 
   fine since upgrading to PHP7.4, except for the one occasion that this error was
   thrown.
 * So I’m not sure what made it use this function on this occasion, but as the function
   is depreciated in the latest version of PHP, it probably needs to be looked at
   to prevent emails not being sent in the future.

The topic ‘PHP Error: get_magic_quotes_runtime’ is closed to new replies.

 * ![](https://ps.w.org/gmail-smtp/assets/icon-128x128.png?rev=2432932)
 * [Gmail SMTP](https://wordpress.org/plugins/gmail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gmail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gmail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/gmail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gmail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [matty0501](https://wordpress.org/support/users/matty0501/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/php-error-get_magic_quotes_runtime/)
 * Status: resolved