Support » Plugin: Jetpack by » [Plugin: Jetpack by] Trying to get property of non-object

  • Resolved Msan



    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..

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    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.


    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.

    Thanks raohmaru, that patch works great!

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

    Plugin Contributor Tim Moore


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

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

    Here’s to waiting and hoping.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Jetpack by] Trying to get property of non-object’ is closed to new replies.