PHP Deprecated: Function get_magic_quotes_gpc() is deprecated
-
After upgrading to PHP 7.4 my error log is being flooded with:
PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /wp-content/plugins/w3-total-cache/Util_Request.php on line 25
PHP Stack trace:
PHP 1. {main}() /wp-admin/admin-ajax.php:0
PHP 2. require_once() /wp-admin/admin-ajax.php:22
PHP 3. require_once() /wp-load.php:37
PHP 4. require_once() /wp-config.php:231
PHP 5. include_once() /wp-settings.php:308
PHP 6. require_once() /wp-content/plugins/w3-total-cache/w3-total-cache.php:67
PHP 7. W3TC\\Root_Loader->run() /wp-content/plugins/w3-total-cache/Root_Loader.php:164
PHP 8. W3TC\\Generic_Plugin_WidgetForum->run() /wp-content/plugins/w3-total-cache/Root_Loader.php:98
PHP 9. W3TC\\Util_Admin::get_current_wp_page() /wp-content/plugins/w3-total-cache/Generic_Plugin_WidgetForum.php:27
PHP 10. W3TC\\Util_Request::get_string() /wp-content/plugins/w3-total-cache/Util_Admin.php:756
PHP 11. W3TC\\Util_Request::get() /wp-content/plugins/w3-total-cache/Util_Request.php:44Seems to be caused by this line:
if ( defined( 'TEMPLATEPATH' ) || get_magic_quotes_gpc() ) {
- The topic ‘PHP Deprecated: Function get_magic_quotes_gpc() is deprecated’ is closed to new replies.