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.
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!
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.
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.
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.
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.