I am trying to:
Correct an error that is known by the WordPress debug log. it is related with a Woocomerce shop using Toolset Woocommerce views to display products.
Link to a page where the issue can be seen: hidden link
I expected to see: no error on the log.
Instead, I got:
1/ There is a minor issue on this page : a duplicate of product lists. The first list is the correct one (displayed by a Toolset view). I don't understand how the second is generated (probably by Woocomerce).
2/ An issue is show by the WordPress debug log. Is strongly suspect this is related to Woomerce views, because when I disable the Woomerce views plugin, the error is not shown. Every time a refresh the page, about 500k bytes (!) of the message below are added to the log :
[19-Nov-2018 13:47:47 UTC] PHP Notice: id est appelée de la mauvaise manière. Les propriétés du produit ne doivent pas être accessible directement. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, Class_WooCommerce_Views->woocommerce_views_activate_archivetemplate_redirect, include('/plugins/woocommerce-views/templates/archive-product.php'), the_ddlayout, get_the_ddlayout, WPDD_Layouts->get_layout_content_for_render, WPDD_Layouts_RenderManager->get_layout_content_for_render, WPDD_Layouts_RenderManager->get_rendered_layout_content, WPDD_layout_render->render, WPDD_layout_render->render_to_html, WPDD_layout->frontend_render, WPDD_layout_row->frontend_render, WPDD_layout_cell->frontend_render, WPDD_layout_cell_text->frontend_render_cell_content, WPDD_layout_cell_text->handle_content_filters, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, WP_Views->short_tag_wpv_view, W in /var/www/html/wp-includes/functions.php on line 4161
This error is a bit overwhelming and seems to creates server issues (503 errors).
I understand this is related to an issue of (backwards?) compatibility of Woomerce views. Please notice that I am not at all a js/php dev.
Both Woocommerce and Toolset plugins are fully up-to-date.
Best regards,
Olivier