Fatal error: Call to a member function on a non-object in /home/tbeta/public_html/wp-includes/query.php on line 10 Code (markup): I have kept getting that since a few days now. As far as I know, I've not altered any code, and infact, haven't touched the installation. First, I thought it was the theme, so I changed it, then its happening again. Here are the lines: <?php /* * The Big Query. */ function get_query_var($var) { global $wp_query; [B] return $wp_query->get($var);[/B] } function &query_posts($query) { unset($GLOBALS['wp_query']); $GLOBALS['wp_query'] =& new WP_Query(); return $GLOBALS['wp_query']->query($query); } Code (markup): I have bolded Line 10. This happened to a test installation as well. As soon as I imported the old database, this error re-occured. Thanks Santosh
Most of the time, this is due to a plugin conflict. Have you installed any plugins recently? If so, disable them one at a time until the error goes away.