• Hello my php error log gets flooded with:

    [29-Aug-2024 19:54:10 UTC] Exception caught in get_wishlist. Ongeldige verlanglijst.. Args: Array
    (
    [0] => svg+xml,svgviewBox0024247xmlnshttpwww.w3.org2000svgsvg
    )

    Ongeldige verlanglijst translates to Invalid wishlist.

    Thank you in advance

    • This topic was modified 1 year, 9 months ago by dhartendorp.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello there,
    thanks for contacting us!

    Could you tell us what plugin version you use it, please?

    Best regards.

    Thread Starter dhartendorp

    (@dhartendorp)

    Versie 3.37.0

    Hello there,

    How can I replicate the error for a test?

    Please let me know.
     
    Best regards.

    Thread Starter dhartendorp

    (@dhartendorp)

    I dont know? The error is there. i cant imagine this beeing the first time such an error has occured. Im not THAT special.

    Thread Starter dhartendorp

    (@dhartendorp)

    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
    )

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Php errlor log: Invalid Wishlist’ is closed to new replies.