Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1369677
    Hello
    Participant

    Hi,
    I am getting this message on two product categories that I created.

    NOTICE: TRYING TO GET PROPERTY OF NON-OBJECT IN /HOME/FASHI902/PUBLIC_HTML/WP-CONTENT/THEMES/X/FRAMEWORK/FUNCTIONS/GLOBAL/BREADCRUMBS.PHP ON LINE 90

    I don’t know where this has come from and it looks like the parent theme but I didn’t go anywhere near it.

    It is something to do with the URLs as I had to change them slightly as they were almost identical. I have attached a screenshot and the product category URLs below.

    Please check.

    #1369683
    Hello
    Participant
    This reply has been marked as private.
    #1370099
    Rupok
    Member

    Hi there,

    Thanks for writing in! This is just a notice and should be gone if you disable WP_DEBUG mode.

    You can do this by opening wp-config.php and updating :

    define( 'WP_DEBUG' , true );

    to

    define('WP_DEBUG', false);

    Hope this helps.

    Cheers!

    #1370282
    Hello
    Participant

    Hi,
    Thank you. Please could you tell me the exact file path in the parent X theme?

    So, then I copy wp-config.php to my child theme and make the edit in there?

    Do I also leave the parent copy unedited as

    define( ‘WP_DEBUG’ , true );

    Cheers!

    #1370314
    Paul R
    Moderator

    Hi,

    You don’t need to copy wp-config.php file to your child theme.

    It is part of wordpress and needs to be edited directly.

    It is located at the root directory of your site.

    Thanks

    #1370322
    Hello
    Participant

    Hi,
    I think I found it but it shows one true and one false DEBUG pieces of code. I have attached a screenshot.

    Which do I edit and what do I do with the other?

    Anything else I need to do?

    Thank you.

    #1370351
    Thai
    Moderator

    Hi There,

    Please edit the line 80.

    From: define('WP_DEBUG', true)

    To: define('WP_DEBUG', false)

    Hope it helps 🙂

  • <script> jQuery(function($){ $("#no-reply-1369677 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>