Bug: Cannot use object of type WP_Query as array
-
Cannot use object of type WP_Query as array in /var/www/blog/wp/wp-content/plugins/w3-total-cache/inc/define.php on line 1495
Stack trace:1. {main}() /index.php:0
2. require() index.php:17
3. require_once() /wp/wp-blog-header.php:16
4. include() /wp/wp-includes/template-loader.php:74
5. get_template_part() /wp/wp-content/themes/mytheme/base.php:22
6. locate_template() /wp/wp-includes/general-template.php:171
7. load_template() /wp/wp-includes/template.php:477
8. require() /wp/wp-includes/template.php:503
9. wp_footer() /wp/wp-content/themes/mytheme/templates/footer.php:21
10. do_action() /wp/wp-includes/general-template.php:2211
11. call_user_func_array() /wp/wp-includes/plugin.php:496
12. wp_admin_bar_render() /wp/wp-includes/plugin.php:496
13. do_action_ref_array() /wp/wp-includes/admin-bar.php:77
14. call_user_func_array() /wp/wp-includes/plugin.php:571
15. W3_Plugin_TotalCache->admin_bar_menu() /wp/wp-includes/plugin.php:571
16. w3_detect_post_id() /wp/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php:239The line in question /var/www/blog/wp/wp-content/plugins/w3-total-cache/inc/define.php on line 1495 is:
return $posts[0]->ID;
- The topic ‘Bug: Cannot use object of type WP_Query as array’ is closed to new replies.