Hello there,
thanks for contacting us!
Could you tell us what plugin version you use it, please?
Best regards.
Hello there,
How can I replicate the error for a test?
Please let me know.
Best regards.
I dont know? The error is there. i cant imagine this beeing the first time such an error has occured. Im not THAT special.
Problem still presists flooding my php error log
[11-Oct-2024 08:34:24 UTC] Exception caught in get_wishlist. Ongeldige verlanglijst.. Args: Array
(
[0] => svg+xml,svgviewBox00247247xmlnshttpwww.w3.org2000svgsvg
)
..
[11-Oct-2024 08:34:27 UTC] Exception caught in get_wishlist. Ongeldige verlanglijst.. Args: Array
(
[0] => svg+xml,svgviewBox00247247xmlnshttpwww.w3.org2000svgsvg
)
..
[11-Oct-2024 08:36:19 UTC] Exception caught in get_wishlist. Ongeldige verlanglijst.. Args: Array
(
[0] => svg+xml,svgviewBox00247247xmlnshttpwww.w3.org2000svgsvg
)
..
I have the exact same problem. Plugin version 3.38.0.
I did some troubleshooting and found out that the error comes from \yith-woocommerce-wishlist\includes\data-stores\class-yith-wcwl-wishlist-data-store.php file and specifically line 273
if ( ! $wishlist_data ) {
throw new Exception( esc_html__( '$wishlist_data - Invalid wishlist.', 'yith-woocommerce-wishlist' ) );
}
I think something is happening with the wishlist token because I debugged the $query
if ( ! $wishlist_data ) {
// format query to retrieve wishlist.
$query = false;
if ( $id ) {
$query = $wpdb->prepare( "SELECT * FROM {$wpdb->yith_wcwl_wishlists} WHERE ID = %d", $id );
} elseif ( $token ) {
$query = $wpdb->prepare( "SELECT * FROM {$wpdb->yith_wcwl_wishlists} WHERE wishlist_token = %s", $token );
}
error_log($query);
and here’s what my error log has:
[20-Oct-2024 08:15:12 UTC] SELECT * FROM wp_yith_wcwl_lists WHERE wishlist_token = 'terms-of-service'
[20-Oct-2024 08:15:12 UTC] Exception caught in get_wishlist. $wishlist_data - Invalid wishlist.. Args: Array
(
[0] => terms-of-service
)