Trying to get property 'ID' - by caravan4ik

This topic has 4 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler

  • Avatar: caravan4ik
    caravan4ik
    Participant
    November 19, 2018 at 11:51

    Hi. Help fix the problem.
    Debug mod constantly produces 2 lines:
    [19-Nov-2018 10:40:20 UTC] PHP Notice: Undefined variable: post in /var/www/77/data/www/kidbum.ru/wp-content/themes/xstore/woocommerce/content-product.php on line 268
    [19-Nov-2018 10:40:20 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /var/www/77/data/www/kidbum.ru/wp-content/themes/xstore/woocommerce/content-product.php on line 268

    line 268 is
    <span class=”show-quickly” data-prodid=”<?php echo esc_attr($post->ID);?>”><?php esc_html_e(‘Quick View’, ‘xstore’) ?></span>

    How to fix?

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 19, 2018 at 13:28

    Hello,

    Please provide Dashboard access.

    Regards

    Avatar: caravan4ik
    caravan4ik
    Participant
    November 19, 2018 at 13:36

    Sometimes the directory gives this error if you click on the quick view
    https://prnt.sc/lk7wlg

    In a private window

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 19, 2018 at 15:59

    Hello,

    Please clear cache and check now.
    If the problem still persists on your side, provide screenshots.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 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.