• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

PHP Issues

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › PHP Issues

This topic is: not resolved

Tagged: php error

  • This topic has 2 replies, 3 voices, and was last updated 6 years, 8 months ago by Deepakrathee.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 2, 2019 at 3:03 pm #490439
    hoolamonster
    Member

    Hi, I cannot seem to locate the issue exactly. Maybe someone can help here. I've searched through some template files and I'm not seeing any issues.

    Im displaying the woocom variable product info on category pages and this is the error that gets thrown.

    Im on Monochrome 1, all plugins and genesis core files are up-to-date.

    [02-Apr-2019 19:19:40 UTC] PHP Notice: product_type 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/genesis-connect-woocommerce/templates/taxonomy.php'), genesis, do_action('genesis_loop'), WP_Hook->do_action, WP_Hook->apply_filters, genesiswooc_product_taxonomy_loop, genesiswooc_content_product, wc_get_template_part, load_template, require('/plugins/woocommerce/templates/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, 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/botron/public_html/wp-includes/functions.php on line 4161
    [02-Apr-2019 19:19:40 UTC] PHP Notice: woocommerce_get_template is deprecated since version 3.0! Use wc_get_template instead. in /home/botron/public_html/wp-includes/functions.php on line 3853

    April 3, 2019 at 4:57 am #490445
    Victor Font
    Moderator

    The error is in your code. The error message says "Product properties should not be accessed directly."

    Since we can't see your code, all I can do is guess that you are accessing a product property incorrectly. Instead of calling the result of a method, you are trying to pull a variable directly, which isn't allowed.

    It also appears that you are using the wrong function in your code:

    PHP Notice: woocommerce_get_template is deprecated since version 3.0! Use wc_get_template instead. in /home/botron/public_html/wp-includes/functions.php on line 3853


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 10, 2019 at 2:00 am #490578
    Deepakrathee
    Member

    The error is in your code. The error message says "Product properties should not be accessed directly."

    Since we can't see your code, all I can do is guess that you are accessing a product property incorrectly. Instead of calling the result of a method, you are trying to pull a variable directly, which isn't allowed.

    It also appears that you are using the wrong function in your code:

    PHP Notice: woocommerce_get_template is deprecated since version 3.0! Use wc_get_template instead. in /home/botron/public_html/wp-includes/functions.php on line 3853Instagram Captions

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble