WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Trying to get property of non-object (8 posts)

  1. Msan
    Member
    Posted 1 year ago #

    Hi,

    I just installed jetpack and everything works fine if a user is logged in. If I log out and view my website, I get the following error on top of the page:

    Notice: Trying to get property of non-object in /home/msan/public_html/wp-content/plugins/jetpack/modules/custom-css/custom-css.php on line 388

    I did a google search on this error and a few other sites seem to have it as well, but no solution to fix it.. error goes away as soon as someone is logged in..

    http://wordpress.org/extend/plugins/jetpack/

  2. newmexiken
    Member
    Posted 1 year ago #

    Having same issue. Goes away if logged in, but of course most readers not logged in.

    Seems to be related to encrypted email function or other internal scripts running in <head> of header.php, but cannot isolate.

  3. temposuender
    Member
    Posted 1 year ago #

    Bump ... same here ...
    plugins/jetpack/modules/custom-css/custom-css.php on line 388.

    And no just to login is not a solution. I leave no one login to my blog.

  4. raohmaru
    Member
    Posted 1 year ago #

    Hi,

    Here is a patch until the team of the Jetpack plugin fix this issue.

    Edit the file /wp-content/plugins/jetpack/modules/custom-css/custom-css.php, and change the line 388

    if ( ! is_super_admin() && ( 1 == $current_blog->spam || 1 == $current_blog->deleted ) )

    to this

    if ( ! is_super_admin() && isset($current_blog) && ( 1 == $current_blog->spam || 1 == $current_blog->deleted ) )

    It works in my WordPress 3.4.1 installation.

  5. Msan
    Member
    Posted 1 year ago #

    Thanks raohmaru, that patch works great!

  6. Mike Walsh
    Member
    Posted 1 year ago #

    Having this same problem on one of my sites today, thanks for the patch, it fixed my issue.

  7. Tim Moore
    Moderator
    Plugin Author

    Posted 1 year ago #

    Thanks for the report and the patch. We'll get this fixed in Jetpack ASAP.

  8. jackharvest
    Member
    Posted 1 year ago #

    Still waiting for a fix.... makes the blog look really, really stupid.

    Here's to waiting and hoping.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic