Skip Navigation

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 6 años, 3 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Clifford hace 6 años, 3 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#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...