Title: Getting error while installing the yith wishlist plugin
Last modified: December 10, 2024

---

# Getting error while installing the yith wishlist plugin

 *  Resolved [Matthew Ryan](https://wordpress.org/support/users/developermr/)
 * (@developermr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/)
 * 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.
 * ![](https://i0.wp.com/i.ibb.co/wMQwd9w/Screenshot-from-2024-12-10-13-57-56.png?
   ssl=1)

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

 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18192548)
 * 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:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/developermr/)
 * (@developermr)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18210206)
 * 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!
 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18210960)
 * 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](https://wordpress.org/support/users/developermr/)
 * (@developermr)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18211576)
 * 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](https://wordpress.org/support/users/developermr/)
 * (@developermr)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18219321)
 * 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.
 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18219944)
 * 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)

The topic ‘Getting error while installing the yith wishlist plugin’ is closed to
new replies.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/getting-error-while-installing-the-yith-wishlist-plugin/#post-18219944)
 * Status: resolved