• Resolved apg1912

    (@apg1912)


    My shopping site is running okay using version 3.7.1 of WooCommerce.

    I have created a staging site for it in which I upgraded WooCommerce to version 3.9.1 so I could test it out.

    When I display a category page, each product now displays the following error message:

    Notice: short_description was called incorrectly. Product properties should not be accessed directly.

    There than follows a lot of Backtrace information. Can anybody help explain what is causing this and how I can fix it.

    The only other difference between the live site and the staging site is that I have debug turned on in the staging site. I’m wondering if this message will appear if I turn on debug in the live site, but as that is working, I don’t really want to mess with it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter apg1912

    (@apg1912)

    I’ve turned debug off on the staging site, and the notice goes away. I’m presuming then that it will appear on the live site if I turn debugging on, indicating this is not an upgrade issue.

    I would still like to know how to fix it though and so any help would be appreciated.

    @apg1912 Please read this blog I think there will be a compatibility issue
    https://woocommerce.wordpress.com/2020/01/22/woocommerce-3-9-has-landed/

    Thread Starter apg1912

    (@apg1912)

    I meet the version requirements for 3.9 and so I don’t think there are compatibility issues. I’m pretty sure if I were to turn on debug for my live site (3.7), those notices would appear. I guess I’ll just have to research this one myself and try and figure out what is going on.

    Thread Starter apg1912

    (@apg1912)

    Fixed. There was reference to $product->short_description in some code in the functions.php file and so I changed it to $product->get_short_description().

    • This reply was modified 4 years, 2 months ago by apg1912.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem going from 3.7.1 to 3.9.1’ is closed to new replies.