Skip Navigation

[Resolved] WP_DEBUG PHP notice – Trying to get property ‘taxonomy’ of non-object

This thread is resolved. Here is a description of the problem and solution.

Problem:

Updated to latest version via wp-admin auto updater and now my WP_DEBUG + WP_DEBUG_LOG (debug.log file) shows me this:

https://toolset.com/forums/topic/wp_debug-php-notice-trying-to-get-property-taxonomy-of-non-object/#post-1084081

Solution:

The client fix it by custom codes, see details here:

https://toolset.com/forums/topic/wp_debug-php-notice-trying-to-get-property-taxonomy-of-non-object/#post-1084765

Relevant Documentation:

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Clifford 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1084081

Updated to latest version via wp-admin auto updater and now my WP_DEBUG + WP_DEBUG_LOG (debug.log file) shows me this:

PHP Notice: Trying to get property 'taxonomy' of non-object in /wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/user-editors/medium/screen/content-template/frontend.php on line 60

#1084431

Hello,

Please check these in your website:
1) Upgrade to the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

And it is only a PHP notice, does it take other effect on your website?
And you can disable the PHP notice by editing file wp-config.php:
https://codex.wordpress.org/Debugging_in_WordPress

#1084765

I already updated to latest versions. I'm not willing to do all the rest right now, but I changed that Line 60 from

if( array_key_exists( 'views_template_loop_' . $term->taxonomy, $wpv_options ) ) {

to

if(
	! empty( $term->taxonomy )
	&& array_key_exists( 'views_template_loop_' . $term->taxonomy, $wpv_options )
) {

We'll see how it goes for now...