Archived topic
id was called incorrectly
1 reply · Started by Marcel on January 31, 2019
Hello
I tried to write privately, but I do not know how. Anyway, I use a plugin, named Visual product configurator, but I encountered an issue. I got in touch with the developer, but they told me is a problem with functions.php theme and get in touch with you. When enabled WP debug, this is the message I got:
Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/generatepress/page.php'), get_template_part, locate_template, load_template, require('/themes/generatepress/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, VPC_Public->filter_content, VPC_Public->get_vpc_editor, VPC_Custom_Skin->display, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/huseonli/public_html/wp-includes/functions.php on line 4204
Please help me with this issue. If necessary I can privately offer FTP credentials. Thanks a lot.
Marcel
Hi Marcel,
I'm not sure why they would think that error is coming from the theme. Can they provide more information on why they think that?
The issue seems to be inside this function, which looks to be from their plugin: VPC_Custom_Skin->display, WC_Abstract_Legacy_Product
This might explain what they should look for: https://github.com/woocommerce/woocommerce/issues/14369
Let me know :)