• Hi! When I try to search some content on my site that results in “not found”, the message:
    “Notice: trying to get property of non-object in
    /home/…/wp-includes/comment-template.php on line 1219” appears on the
    header area. To avoid this I switched ‘wp_debug’ to false on
    wp-config.php, but I think it′s not recommended. Can you help me?

    I′m using WordPress 5.3.2

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alexander

    (@ateshabaev)

    Hello,

    It is the only error you see? It would be nice if you could provide more information about type of page you are viewing?

    It is recommended to set wp_debug should be set true only when you are developing it, as it slows down the website and shows all possible errors.

    In production it should be false, always.

    Thread Starter admintg

    (@admintg)

    Hi, Alexander!

    In the first moment, I thought it was a problem with the theme code and contacted theme support. They told me that the error was occuring with a “comments_open” function on search page causing this PHP error on the search page. So, I disabled each plugin to verify this possibility and when I disabled AnyComment this error disappeared.

    I′m having another error, but I already know that it′s related with a java script.

    Is it enough information to analize this error?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: trying to get property of non-object’ is closed to new replies.