Troubleshooting Common WP Rollback Errors: From 'Plugin Not Found' to Critical Crashes
Content
WP Rollback is a powerful tool for reverting plugins and themes to previous versions, but like any software, it can sometimes run into issues. Based on community reports, this guide covers the most common errors and their solutions.
1. "Plugin you're referencing does not exist" Error
This is a frequently reported error where the rollback process fails with this message.
Why it happens:
- Plugin Conflicts: Another plugin, particularly one that manages updates (e.g., Easy Update Manager), can interfere with WP Rollback's ability to communicate with the WordPress.org API.
- FTP Credentials Prompt: If your site is prompting for FTP credentials during updates, it can prevent WP Rollback from completing its process correctly.
How to fix it:
- Conflict Test: The most reliable method is to perform a conflict test. Use the Health Check & Troubleshooting plugin. It allows you to deactivate all other plugins and switch to a default theme without affecting your live visitors. Reactivate plugins one by one to identify the one causing the conflict.
- Resolve FTP Prompts: To stop WordPress from asking for FTP credentials, ensure your web server's file ownership and permissions are correctly set. Your hosting provider's support team can often assist with this configuration.
2. Critical Error / White Screen of Death After Activation or Update
Some users report their site crashing with a fatal error immediately after updating to a new version of WP Rollback or activating it.
Why it happens:
- Missing Class Error (e.g.,
Class 'WP_Rollback_Multisite_Compatibility' not found): This typically indicates a incomplete or corrupted plugin update where certain files were not properly installed. - TypeError on Update: Updates to major versions (e.g., v3.0.0) have introduced bugs where a function expects an array but receives a null value, causing a fatal crash.
How to fix it:
- Reinstall Manually: If you cannot access your WordPress dashboard, use FTP or your hosting provider's file manager to delete the entire
wp-rollbackdirectory inside/wp-content/plugins/. Then, upload a fresh, manually downloaded copy of the plugin from the WordPress.org repository. - Rollback WP Rollback: If the site crashes after an update, you may need to manually install an older, stable version of WP Rollback (e.g., v2.0.7) via FTP to regain access to your site, after which you can update again once a patch is released.
3. REST API rest_no_route Error
Clicking a rollback link results in a "No route was found" error related to the REST API (rest_no_route).
Why it happens:
- Security Plugins or Hosting Rules: A security plugin or strict server configuration (e.g., on GoDaddy) might be blocking access to the custom REST API endpoints that WP Rollback uses to fetch version data.
- Incorrect Route Registration: In some past versions, a permission callback was missing from the route definition, which could trigger warnings and potentially cause issues.
How to fix it:
- Check Security Plugins: Temporarily disable any security or firewall plugins to see if the error disappears. If it does, check the settings of that plugin to allow WP Rollback's API calls (the route is typically
wp-rollback/v1/). - Contact Your Host: If the issue persists, your hosting provider might be blocking REST API requests. Contact their support and ask if they are restricting access to custom WordPress REST API endpoints.
4. JavaScript Errors "$ is not a function" or "Unexpected token"
These console errors can break functionality on plugin or theme management pages.
Why it happens:
- jQuery Conflict: The "$ is not a function" error usually signifies a conflict with another plugin that is improperly loading jQuery, overriding the expected
$shorthand. - API Returning HTML: The "Unexpected token" error in JSON parsing often occurs when the plugin's request to the WordPress.org API fails and returns an HTML error page (like a 404) instead of the expected JSON data.
How to fix it:
- Conflict Test: Again, use the Health Check plugin to deactivate all other plugins and identify which one is causing the jQuery conflict.
- Check API Access: Ensure your server can make external requests to
api.wordpress.org. A server firewall or configuration might be blocking it.
General Best Practices
- Always Backup: Always create a full backup of your site before performing any rollback. As seen in one report, a failed rollback can necessitate a restore from backup.
- Keep Everything Updated: Ensure your version of WordPress, PHP, and WP Rollback itself are up to date. Many bugs are patched in subsequent releases.
- Check the GitHub Repository: The 'WP Rollback – Rollback Plugins and Themes' team manages a GitHub repository where known issues are tracked and discussed.
If you continue to experience issues after trying these steps, detailing your error message, WordPress version, and PHP version in a support forum can help others provide more specific assistance.
Related Support Threads Support
-
Plugin you’re referencing does not existhttps://wordpress.org/support/topic/plugin-youre-referencing-does-not-exist-2/
-
Plugin you’re referencing does not existhttps://wordpress.org/support/topic/plugin-youre-referencing-does-not-exist-4/
-
Crirical errorhttps://wordpress.org/support/topic/crirical-error/
-
FYI onlyhttps://wordpress.org/support/topic/fyi-only/
-
Plugin causes js errorhttps://wordpress.org/support/topic/plugin-causes-js-error/
-
Error when tryin gto rollback certain pluginshttps://wordpress.org/support/topic/error-when-tryin-gto-rollback-certain-plugins/
-
Error when rollback Astra themehttps://wordpress.org/support/topic/error-when-rollback-astra-theme/
-
Warnings after rollback of a pluginhttps://wordpress.org/support/topic/warnings-after-rollback-of-a-plugin/
-
no responsibility for the outcomes?https://wordpress.org/support/topic/no-responsibility-for-the-outcomes/
-
Causing Error 524 on Update & Theme pageshttps://wordpress.org/support/topic/causing-error-524-on-update-theme-pages/
-
Incompatibility issue with WPBakery Page Builder Pluginhttps://wordpress.org/support/topic/incompatibility-issue-with-wpbakery-page-builder-plugin/
-
WordPress requirement issue with wp_json_encodehttps://wordpress.org/support/topic/wordpress-requirement-issue-with-wp_json_encode/
-
errors on multisite and trunkhttps://wordpress.org/support/topic/errors-on-multisite-and-trunk/
-
PHP Noticehttps://wordpress.org/support/topic/php-notice-161/
-
Found a bughttps://wordpress.org/support/topic/found-a-bug-19/
-
No way to use pluginhttps://wordpress.org/support/topic/no-way-to-use-plugin-2/
-
Sites crashed V2.0.5https://wordpress.org/support/topic/sites-crashed-v2-0-5/
-
Error message in Query Monitorhttps://wordpress.org/support/topic/error-message-in-query-monitor-2/
-
Rollback activated by FTP ?https://wordpress.org/support/topic/rollback-activated-by-ftp/
-
rest_cookie_invalid_noncehttps://wordpress.org/support/topic/rest_cookie_invalid_nonce-2/
-
Has the rollback Plugin been HACKEDhttps://wordpress.org/support/topic/has-the-rollback-plugin-been-hacked/
-
The link you followed has expired.https://wordpress.org/support/topic/the-link-you-followed-has-expired-25/
-
Critical Error on Updatehttps://wordpress.org/support/topic/critical-error-on-update-5/
-
PHP Warning during rollbackhttps://wordpress.org/support/topic/php-warning-during-rollback-of-caldera-forms/
-
Uncaught Error: Class ‘WP_Rollback_Multisite_Compatibility’ not foundhttps://wordpress.org/support/topic/uncaught-error-class-wp_rollback_multisite_compatibility-not-found/
-
rest_no_route errorhttps://wordpress.org/support/topic/rest_no_route-error-2/
-
Critical Error after Activating Ver 3.01https://wordpress.org/support/topic/critical-error-after-activating-ver-3-01/
-
Great Plugin but small issuehttps://wordpress.org/support/topic/great-plugin-but-small-issue/
-
Critical error while checking for updateshttps://wordpress.org/support/topic/critical-error-while-checking-for-updates/
-
Plugin you're referencing does not exist.https://wordpress.org/support/topic/plugin-youre-referencing-does-not-exist/
-
3.0.4 fatal errorhttps://wordpress.org/support/topic/3-0-4-fatal-error/
-
PHP Error after upgrading a pluginhttps://wordpress.org/support/topic/php-error-after-upgrading-a-plugin/
-
Version 2.0.0 hangs with JS errorhttps://wordpress.org/support/topic/version-2-0-0-hangs-with-js-error/
-
Site is gonehttps://wordpress.org/support/topic/site-is-gone-8/
-
[kind of urgent] Security flawshttps://wordpress.org/support/topic/kind-of-urgent-security-flaws/
-
Critical error updating to 3.00https://wordpress.org/support/topic/critical-error-updating-to-3-00/
-
Feedback From Hosting Companyhttps://wordpress.org/support/topic/feedback-from-hosting-company/
-
Critical Error with last updates of the pluginhttps://wordpress.org/support/topic/critical-error-with-last-updates-of-the-plugin/
-
PHP warnings while in roll back screenhttps://wordpress.org/support/topic/php-warnings-while-in-roll-back-screen/
-
load_textdomain errorhttps://wordpress.org/support/topic/load_textdomain-error/
-
Errors when updating via WP CLI, even when plugin has no updateshttps://wordpress.org/support/topic/errors-when-updating-via-wp-cli-even-when-plugin-has-no-updates/
-
PHP Fatal error on WP_Rollback_API_Fetcherhttps://wordpress.org/support/topic/php-fatal-error-on-wp_rollback_api_fetcher/
-
Possible Bug in testing if WP_Rollback class existshttps://wordpress.org/support/topic/possible-bug-in-testing-if-wp_rollback-class-exists/