Tagged: x
-
AuthorPosts
-
February 13, 2017 at 5:50 pm #1369677
HelloParticipantHi,
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.
February 13, 2017 at 5:54 pm #1369683
HelloParticipantThis reply has been marked as private.February 14, 2017 at 1:38 am #1370099
RupokMemberHi 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.phpand updating :define( 'WP_DEBUG' , true );to
define('WP_DEBUG', false);Hope this helps.
Cheers!
February 14, 2017 at 5:02 am #1370282
HelloParticipantHi,
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!
February 14, 2017 at 5:33 am #1370314
Paul RModeratorHi,
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
February 14, 2017 at 5:47 am #1370322
HelloParticipantHi,
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.
February 14, 2017 at 6:21 am #1370351
ThaiModeratorHi There,
Please edit the line 80.
From:
define('WP_DEBUG', true)To:
define('WP_DEBUG', false)Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1369677 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
