WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
PHP Notice after successful avatar upload on BuddyPress (6 posts)

  1. Henry
    Member
    Posted 9 months ago #

    Notice: Trying to get property of non-object in /htdocs/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 548

    Notice: Trying to get property of non-object in /htdocs/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 840

    Notice: Trying to get property of non-object in /htdocs/wp-content/plugins/wordpress-seo/frontend/class-frontend.php on line 843

    I get this when I have successfully uploaded an avatar using BuddyPress.

    What's going on here?

    http://wordpress.org/plugins/wordpress-seo/

  2. jrf
    Member
    Posted 9 months ago #

    BuddyPress is doing something weird to the $post object - which causes it not to be an object. I'll add some extra validation for this, but to be fair, this is a bug in Buddypress.

  3. Henry
    Member
    Posted 8 months ago #

    Thanks jrf - hoping your validating can resolve the problem.

  4. jrf
    Member
    Posted 8 months ago #

    It could, but you should really file a bug with Buddypress...

  5. Henry
    Member
    Posted 8 months ago #

    Thanks again jrf - i've raised a BuddyPress Trac ticket:

    http://buddypress.trac.wordpress.org/ticket/5241

  6. Henry
    Member
    Posted 8 months ago #

    jrf

    regarding your validation check, are you thinking of doing if ( $post != null ) { ... }?

    I've been doing some investigation and can see you're using an is_singular() check around the code attempting to get the $post property. is_page() seems to return true for the BuddyPress change-avatar page (where there notices are displayed) but the $post variable seems to be null here. This could be the reason why toys are being thrown out of the push buggy.

Reply

You must log in to post.

About this Plugin

About this Topic