Back to Community

Troubleshooting Common YITH WooCommerce Wishlist Errors: From Fatal Crashes to Missing Files

37 threads Sep 16, 2025 PluginYith woocommerce wishlist

Content

Encountering an error with the YITH WooCommerce Wishlist plugin can be frustrating, especially when it causes a white screen or prevents access to your admin dashboard. Based on common issues reported by users, this guide will help you diagnose and resolve the most frequent problems.

1. Fatal Error: Missing File or Call to Undefined Function

This is one of the most common error types. The symptoms include a blank white screen, a "critical error" message, or a specific PHP error in your server logs.

Why it happens: This is almost always caused by a corrupted plugin installation. The error occurs when the plugin tries to load a core file that is missing or damaged on your server. This corruption can happen during download, update, or through a file transfer issue.

How to fix it:

  1. Reinstall the plugin: Completely remove the current YITH WooCommerce Wishlist plugin from your WordPress admin (or via FTP/SFTP if you cannot access the dashboard). Then, install a fresh copy directly from the WordPress.org plugin repository.
  2. Clear Caches: After reinstalling, clear any caching on your site, including WordPress object cache, page cache, and your browser cache.
  3. Check Theme Code: If the error mentions a call to an undefined function like YITH_WCWL() and persists after reinstallation, the issue may be in your theme's code. Your theme might be trying to use wishlist functions before the plugin is fully loaded. Review any custom code in your theme's functions.php file that references the wishlist.

2. Error: Call to undefined function wc_create_page()

This error specifically appeared after updating to version 4.0.0 of the plugin and causes a fatal error.

Why it happens: The function wc_create_page() is a WooCommerce function. This error indicates that the Wishlist plugin is trying to run its installation or update process before WooCommerce is fully loaded and its functions are available.

How to fix it: Ensure that WooCommerce is installed, activated, and updated to a recent version. If the error persists, a code modification may be necessary. The YITH WooCommerce Wishlist team has suggested replacing the add_pages() function in the file /wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl-install.php around line 132. Warning: Editing core plugin files is not recommended as changes will be lost on update. This fix should be considered a temporary workaround until an official patch is released.

3. Missing Dependency Warnings for CSS/JS

Tools like Query Monitor may report that the wishlist style (yith-wcwl-main) is missing dependencies like yith-wcwl-font-awesome or woocommerce_prettyPhoto_css.

Why it happens: Newer versions of WooCommerce have removed older libraries like PrettyPhoto. If the wishlist plugin still expects these libraries to be present, it can cause warnings and potentially broken styles.

How to fix it: You can manually enqueue the required assets by adding a code snippet to your active (child) theme's functions.php file. This code ensures the necessary scripts and styles are loaded correctly.

4. Update Failed: PCLZIP_ERR_BAD_FORMAT (-10)

This error prevents you from updating the plugin through the WordPress admin.

Why it happens: This is typically a temporary issue related to a corrupted download package. It can be caused by a brief connectivity problem between your server and the WordPress.org servers during the update process.

How to fix it: Simply try updating the plugin again. If the error persists, manually delete the plugin and install the latest version fresh from the Plugins > Add New screen.

5. Security Vulnerability Warnings

Security plugins like Wordfence may flag the plugin.

How to fix it: The first and most important step is to always keep the plugin updated to the latest version. Developers regularly release patches for known security issues. If you receive a warning, check the plugin's changelog to see if the vulnerability has been addressed in a newer release and update immediately.

General Troubleshooting Steps

  • Enable Debugging: If you get a generic "critical error" message, enable WordPress debugging to get the specific error message, which is essential for finding a solution.
  • Conflict Test: Deactivate all other plugins and switch to a default WordPress theme (like Twenty Twenty-Four). If the error disappears, reactivate your plugins and theme one by one to identify the conflicting software.
  • Check for Premium Support: Note that some errors (e.g., those referencing files in a ...-wishlist-premium/ directory) are related to the premium version of the plugin. Support for the free version, available on WordPress.org, is provided via the community forums.

Most issues can be resolved by ensuring you have a clean installation of the plugin and that it is compatible with your versions of WordPress, WooCommerce, and PHP.

Related Support Threads Support