Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

PHP Deprecated: Function get_magic_quotes_gpc() is deprecated

$
0
0

Replies: 0

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:44

Seems to be caused by this line:
if ( defined( 'TEMPLATEPATH' ) || get_magic_quotes_gpc() ) {


Viewing all articles
Browse latest Browse all 59525

Trending Articles