• Resolved mythemes

    (@mythemes)


    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(‘/plugins/woocommerce/templates/single-product.php’), wc_get_template_part, load_template, require(‘/themes/oceanwp/woocommerce/content-single-product.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, OceanWP_WooCommerce_Config->single_product_content, wc_get_template, include(‘/themes/oceanwp/woocommerce/owp-single-product.php’), do_action(‘ocean_after_single_product_price’), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, 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 /var/www/vhosts/fuyor.eu/httpdocs/wp-includes/functions.php on line 5225

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Please try to update the theme and plugins to the latest version.

    It seems the plugin conflict issue. Try to disable all the nonocean plugin and check if it is working or not. If yes, enable the one by one plugin, and refresh the page after enabling each plugin, to check the conflict issue.

    Thread Starter mythemes

    (@mythemes)

    Hi,

    I found the error, I use $product -> ID instead of $product -> get_id() in my child theme.

    Thank you!

    • This reply was modified 4 years, 3 months ago by mythemes.
    • This reply was modified 4 years, 3 months ago by mythemes.

    Glad to hear that the issue has been fixed!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice, error on single Product’ is closed to new replies.