• Hi there,

    since the last updates I have some conflicts with the Yith Wishlist plugin. Can you please help here? In detail the page is visible (seems to be a kind of mobile view instead of the regular view) and a error message appears (There was a critical error on your website.) without any further hints.
    If you need a link to the page, I will provide it in the private mode. Thanks in advance for your help.

    [18-May-2021 07:54:14 UTC] PHP Fatal error:  Uncaught Exception: Ungültiges Produkt. in /xxx/xxx/xxx/xxx/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:167
    Stack trace:
    #0 /xxx/xxx/xxx/xxx/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product))
    #1 /xxx/xxx/xxx/xxx/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(135): WC_Data_Store->read(Object(WC_Product))
    #2 /xxx/xxx/xxx/xxx/wp-content/themes/neighborhood/woocommerce/wishlist-view.php(140): WC_Product->__construct(21190)
    #3 /xxx/xxx/xxx/xxx/wp-content/plugins/yith-woocommerce-wishlist/includes/functions.yith-wcwl.php(133): include('/www/htdocs/w01...')
    #4 /xxx/xxx/xxx/xxx/wp-content/plugins/yith-woocommerce-wishlist/includes/functions.yith-wcwl.php(184): yith_wcwl_get_template('wishlist-view.p...', Array, false)
    #5 /w in /xxx/xxx/xxx/xxx/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 167
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    Unfortunately I cannot repilcate the issue locally

    I checked the error but unfortunately it doesn’t offer much clues; I can see system is having problems retrieving a product, but I can’t see why this results in a fatal error (that exception should always be catched)
    Does this happen for every wishlist? Could you please try to re-install the plugin?
    Could you please test on a clean installation with just WooCommerce, Wishlist and Twenty default theme active?

    Thread Starter hansdampf321

    (@hansdampf321)

    Hi there Antonio,

    thanks for your quick response.
    After I have deleted and re-installed the plugin, the issue was still existing. But the strange thing was that the product was still in the wishlist. After I have deleted the Cookies, it was working again. I now know what to do if the issue is appearing again, but I do not know why the cookie is responsible for that. Do you have any hints here?

    Thanks
    Martin

    Thread Starter hansdampf321

    (@hansdampf321)

    Things becoming strange ??
    After I have cleared the browser cache and did login again via my admin login, I have again one product in the wishlist (which I haven’t added) and the issue is back again. ??

    Plugin Support Antonio La Rocca

    (@therock130)

    Hi again

    Are you running any cache on your WordPress installation or server?
    You may need to add wishlist page to cache exclusions, or disable cache at all when wishlist cookie is set

    Wishlist cookie is used to keep sync between your guest session and wishlist in databse; deleting it, will break that link, and system will think you have no wishlist at all
    On the other hand, deliting and installing plugin again won’t remove wishlist, nor the cookie from your browser, so it is normal that by doing that you didn’t lose any data

    Finally, I’d like to point out that anyway, you shouldn’t have such a problem as long as the wishlist contains reference to existing and valid products

    Thread Starter hansdampf321

    (@hansdampf321)

    Hi Antonio,

    sorry for my late response and thanks for your informations.
    Is it possible that the wishlist cookie does have problems with product variations (i.e. name changes after a product was added to the wishlist)? As I see the issue is about the product with the ID 21190. Is there a way to figure out why this product isn’t deletable? I was trying to add this product to the cart so it would be deleted automatically from the wishlist. This doesn’t work unfortunately.

    Is there a way to delete the wishlist database overall? Even if all other users will loose there wishlist, I want to fix this issue.

    Thanks so far
    Martin

    Plugin Support Antonio La Rocca

    (@therock130)

    Hi again Martin

    Is it possible that the wishlist cookie does have problems with product variations

    Not as far as I know, I suppose that someone else would’ve reported a simialr problem at this point

    Besides, wishlist cookie just holds reference to a wishlist in databse, and DB wishlists just behaves the same for guest and logged in users

    Is there a way to figure out why this product isn’t deletable?

    I’m afraid I have small clues on why this is happening, and how to debug this problem
    If you have some experience with PHP programming, I could suggest some debugging steps, but that would be definitely something to preform on a staging installation

    Is there a way to delete the wishlist database overall?

    Sure, you’ll just need to truncate wishlist’s tables: yith_wcwl and yith_wcwl_lists
    Given that this is a direct DB operation, I suggest you to create a backup first, and only proceed if you’re totally sure, and confident enough with running direct queries over DB

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wihslist page isn’t error’ is closed to new replies.