Skip to:
Content

bbPress.org

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1484 closed defect (bug) (worksforme)

Fatal error

Reported by: alexvorn2's profile alexvorn2 Owned by:
Milestone: 2.0 Priority: high
Severity: major Version:
Component: General - Integration Keywords: reporter-feedback
Cc: nightgunner5@…

Description

There is a conflict between bbPress and WP_Query.

An error shows after I installed the bbPress plugin: Fatal error: Call to a member function get() on a non-object in C:\xampp\htdocs\wordpress10\wp-includes\query.php on line 27

In the WordPress theme I have something like this:

$args=array(
	'cat'              => $wpimpress_cat->cat_ID,
	'posts_per_page'   => 1
);
$temp = $wp_query;  
$wp_query = null;
$wp_query = new WP_Query($args); 
	  

if( have_posts() ) : 
	while ($wp_query->have_posts()) : $wp_query->the_post();


		//loop!!!!
		
	endwhile; 

endif; 


$wp_query = $temp; 
wp_reset_query();

Change History (3)

#1 @Nightgunner5
14 years ago

  • Cc nightgunner5@… added
  • Severity changed from minor to major

What page does this error appear on?

#2 @GautamGupta
14 years ago

  • Keywords reporter-feedback added
  • Resolution set to worksforme
  • Status changed from new to closed

Please try re-installing WordPress and bbPress with all other plugins deactivated.

#3 @alexvorn2
14 years ago

@Nightgunner5 it appears on all pages, I created a new ticket please take a look here: http://trac.bbpress.org/ticket/1493

Note: See TracTickets for help on using tickets.