[buddypress-trac] [BuddyPress Trac] #5716: BuddyPress & Official Google Publisher Plugin

buddypress-trac noreply at wordpress.org
Wed Jun 18 10:08:18 UTC 2014


#5716: BuddyPress & Official Google Publisher Plugin
--------------------------+-----------------------------
 Reporter:  SGr33n        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Hi,

 I don't know if this is a Google or a BuddyPress issue, but just on
 BuddyPress user pages, the Google Plugin report some notices:

 Notice: Undefined property: WP_Query::$post in sitelocalpath/httpdocs/wp-
 content/plugins/google-publisher/Utils.php on line 55

 Notice: Trying to get property of non-object in sitelocalpath/httpdocs/wp-
 content/plugins/google-publisher/Utils.php on line 55

 The line code is:


 {{{
     if (is_page()) {
       global $wp_query;
       $template_name = get_post_meta(
           // The following is line 55.
           $wp_query->post->ID, '_wp_page_template', true);
       if ($template_name != 'default') {
         return 'customPageTemplate';
       }
       return 'page';
     }
 }}}

 Thanks :)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5716>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list