• Resolved chleray

    (@chleray)


    Hi,

    The last version of YITH does not work on our web site.

    It displays at the top of the window :

    Notice: Trying to get property of non-object in /home/chleray/public_html/wp-includes/class-wp-query.php

    lines 3965, 3967 and 3969

    The whole site does not work properly, I had to deactivate the plugin so taht the site works again. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    thank you for contacting us.
    I can’t replicate the issue by my side, did you try the plugin leaving enabled only WooCommerce and a WordPress default theme? It can help to understand if the issue is caused by a conflict with another component of your site.
    Let me know.

    This happens on the homepage if you’ve set a static page as homepage. The notice comes from the call to is_shop() in YITH_WCAN_Frontend->the_posts().

    Home page error after recent updates

    This message appears at the front of the main page

    Notice: Trying to get property ‘ID’ of non-object in /home/talabiah/public_html/wp-includes/class-wp-query.php on line 3965

    Notice: Trying to get property ‘post_title’ of non-object in /home/talabiah/public_html/wp-includes/class-wp-query.php on line 3967

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    thanks for contact us! The bug seems to be related to a WordPress issue.
    There are a bug report here: #49024

    Thanks for your patience.
    Have a nice day

    • This reply was modified 5 years, 2 months ago by YITHEMES.

    i have the same issue and here you can see the error https://prnt.sc/qf2g5z the error comes only when the YITH ajax product filter plugin is active

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    this is related to the functions is_page that our plugin use but it is linked to WordPress. There are a bug report here: #49024

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    thanks for your patience. We have found a workaround for this issue. Please could you download the file class.yith-wcan-frontend.php from here and replace it in wp-content/plugins/yith-woocommerce-ajax-product-filter.premium/includes/class.yith-wcan-frontend.php, please ?

    Letme know if this solve your issue.
    Have a nice day
    YITH

    Hi,

    I too was having same issue after upgrading to v3.8.3, but after replacing the mentioned file it worked for me. Thanks @yithemes .

    Hi @yithemes

    The WeTransfer you linked to has been deleted/has expired.

    Can you post the work around again please?

    [23-Jan-2020 11:49:31 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /srv/www/public_html/wp-includes/class-wp-query.php on line 3965
    [23-Jan-2020 11:49:31 UTC] PHP Stack trace:
    [23-Jan-2020 11:49:31 UTC] PHP   1. {main}() /srv/www/public_html/index.php:0
    [23-Jan-2020 11:49:31 UTC] PHP   2. require() /srv/www/public_html/index.php:5
    [23-Jan-2020 11:49:31 UTC] PHP   3. wp() /srv/www/public_html/wp-blog-header.php:16
    [23-Jan-2020 11:49:31 UTC] PHP   4. WP->main() /srv/www/public_html/wp-includes/functions.php:1255
    [23-Jan-2020 11:49:31 UTC] PHP   5. WP->query_posts() /srv/www/public_html/wp-includes/class-wp.php:731
    [23-Jan-2020 11:49:31 UTC] PHP   6. WP_Query->query() /srv/www/public_html/wp-includes/class-wp.php:614
    [23-Jan-2020 11:49:31 UTC] PHP   7. WP_Query->get_posts() /srv/www/public_html/wp-includes/class-wp-query.php:3413
    [23-Jan-2020 11:49:31 UTC] PHP   8. apply_filters_ref_array() /srv/www/public_html/wp-includes/class-wp-query.php:3160
    [23-Jan-2020 11:49:31 UTC] PHP   9. WP_Hook->apply_filters() /srv/www/public_html/wp-includes/plugin.php:249
    [23-Jan-2020 11:49:31 UTC] PHP  10. YITH_WCAN_Frontend->the_posts() /srv/www/public_html/wp-includes/class-wp-hook.php:288
    [23-Jan-2020 11:49:31 UTC] PHP  11. is_shop() /srv/www/public_html/app/plugins/yith-woocommerce-ajax-navigation/includes/class.yith-wcan-frontend.php:123
    [23-Jan-2020 11:49:31 UTC] PHP  12. is_page() /srv/www/public_html/app/plugins/woocommerce/includes/wc-conditional-functions.php:32
    [23-Jan-2020 11:49:31 UTC] PHP  13. WP_Query->is_page() /srv/www/public_html/wp-includes/query.php:574
    Plugin Author YITHEMES

    (@yithemes)

    Hi @brightemo
    we are sorry about that. Please, use this dropbox link instead:

    class.yith-wcan-frontend.php

    and replace it in:

    wp-content/plugins/yith-woocommerce-ajax-product-filter.premium/includes/class.yith-wcan-frontend.php

    Thanks for reporting this issue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Bug with 3.8.3 version’ is closed to new replies.