[wp-testers] Various questions about 3.1 beta
Michael E. Hancock
justmichaelh at gmail.com
Mon Nov 29 15:57:38 UTC 2010
>> 5. I'm experiencing the "Fatal error: Call to a member function
>> is_singular() on a non-object in
>> C:\xampp\htdocs\wp31\wp-includes\query.php
>> on line 525" when visiting a page. The page is using a Page Template [2]
>> and is querying a list of a custom post type (books). I use a Twenty Ten
>> child theme and the theme's function.php to create the custom post type
>> book
>> with an add_action('init','create_post_type_book'); so what do I need to
>> fix
>> to correct this error?
>
> Perhaps due to this? http://core.trac.wordpress.org/ticket/14729
Turns out that this line of code, $wp_query = null; in the Page template was
causing the problem:
Thanks for the answers Ryan and John.
Michael
More information about the wp-testers
mailing list