Deprecated function and error log - by biskoot

This topic has 2 replies, 2 voices, and was last updated 6 years, 4 months ago ago by Olga Barlow

  • Avatar: biskoot
    biskoot
    Participant
    November 23, 2017 at 23:49

    Hi,

    When looking through my error log, I have received several types of error below. I assume that this error come from the theme itself. ps – I’m using latest version of Xstore and WC.

    post_id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action('wp_ajax_et_ajax_search'), WP_Hook->do_action, WP_Hook->apply_filters, etheme_ajax_search_action, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.

    PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /var/www/html/wp-includes/theme-compat/embed.php:13\nStack trace:\n#0 {main}\n thrown in /var/www/html/wp-includes/theme-compat/embed.php on line 13

    The The "woocommerce_add_order_item_meta" hook uses out of date data structures and function is deprecated since version 3.2.5. Replace with woocommerce_new_order_item., referer: https://MYSITE/checkout/

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 24, 2017 at 17:19

    Hello,

    1) It’s our issue. We’ll fix it in next theme update. If you provide me admin panel and FTP access to your site we’ll fix it on your site.

    2) This is default WP function. Looks like something is wrong with your WP installation if you get such notice

    3) There is no such hook in our theme. Very likely it caused by some plugin. Make sure that all the plugins are up to date. Disable them one by one to find which one causes the issue.

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.