• Resolved Matthew Ryan

    (@developermr)


    I am encountering an error with the free version of the YITH plugin. Below is a screenshot of the error. It appears after I reset my site using the WP Reset plugin. After the reset, I install WooCommerce and the YITH plugin, and the error displays on the frontend. However, when I refresh the dashboard, the error disappears.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    thanks for contacting us!

    Please, try replacing the function called “add_pages” located in \wp-content\plugins\yith-woocommerce-wishlist\includes\class-yith-wcwl-install.php:131 with the following:

    private function add_pages() {
    if ( function_exists( 'wc_create_page' ) ) {
    wc_create_page(
    sanitize_title_with_dashes( _x( 'wishlist', 'page_slug', 'yith-woocommerce-wishlist' ) ),
    'yith_wcwl_wishlist_page_id',
    __( 'Wishlist', 'yith-woocommerce-wishlist' ),
    '<!-- wp:shortcode -->[yith_wcwl_wishlist]<!-- /wp:shortcode -->'
    );
    }
    }

    To check if it works correctly, you need to do the WP reset action again and see if the error disappears, and if the items are correctly added to the wishlist.

    Please let us know.

    Best regards.

    Thread Starter Matthew Ryan

    (@developermr)

    Hi Juan,

    The code you provided will be lost every time I update the plugin. I need to manually reapply the code to the YITH plugin after each update. Could you include this update in your latest version so that the issue is resolved permanently?

    Thank you!

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi there.

    Yes, I was waiting for you to confirm if it worked for you so I could add it to the plugin code. It will be included in the next version.

    If you have any other questions, let us know.

    Best regards.

    Thread Starter Matthew Ryan

    (@developermr)

    Hi Juan,

    Yes, it is working now. I hope this will be included in the latest update of the plugin. Thank you for providing the solution.

    Thread Starter Matthew Ryan

    (@developermr)

    Hi Juan,

    I am waiting for the plugin to be updated. The error has been resolved with the solution provided, but I cannot ask everyone to update the code in their plugins. It would be very helpful if you could update the plugin as soon as possible.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi there.

    Perfect. The update is scheduled for the next few days, so it will be released as soon as possible.

    If you have any other questions, feel free to contact us.

    Best regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.