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

  1. Msan
    Posted 3 years ago #


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


  2. newmexiken
    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years ago #


    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
    Posted 3 years ago #

    Thanks raohmaru, that patch works great!

  6. Mike Walsh
    Posted 3 years ago #

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

  7. Tim Moore
    Plugin Contributor

    Posted 2 years ago #

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

  8. jackharvest
    Posted 2 years 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

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic