Hello,
on my webiste when i activate the w3 total cache plugin i see this error in error log
[27-Jan-2020 10:57:15 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Query as array in /home/itprofessione/public_html/wp-content/plugins/w3-total-cache/Util_Environment.php:1041
Stack trace:
#0 /home/itprofessione/public_html/wp-content/plugins/w3-total-cache/Generic_Plugin.php(311): W3TCUtil_Environment::detect_post_id()
#1 /home/itprofessione/public_html/wp-includes/class-wp-hook.php(288): W3TCGeneric_Plugin->admin_bar_menu(Object(WP_Admin_Bar))
#2 /home/itprofessione/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#3 /home/itprofessione/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#4 /home/itprofessione/public_html/wp-includes/admin-bar.php(86): do_action_ref_array(‘admin_bar_menu’, Array)
#5 /home/itprofessione/public_html/wp-includes/class-wp-hook.php(288): wp_admin_bar_render(”)
#6 /home/itprofessione/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#7 /home/itprofessione/public_html/wp-includes/plugin.php(478): WP_Hook->do_action( in /home/itprofessione/public_html/wp-content/plugins/w3-total-cache/Util_Environment.php on line 1041
why?