This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Widget Fixer


Widget-fixer works by recalculating the string lengths of the widget strings and updating
the relevant numbers in the database so that your widgets will load again.

This plugin is provided “as is.” It is free software licensed under the terms of the [GNU General Public License 2.0 (GPL)] ( “GNU General Public License 2.0”). It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Infragistics is not liable for any damages or losses.


  1. Backup your database.
  2. Unzip to the /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Navigate the Settings -> Widget-fixer to start fixing your widgets.


How do I get started?

It is highly recommended that you take a backup of your database before using this plugin.

What does this plugin do?

Widget-fixer is very basic and really does only one thing.
It recalculates the string lengths of the widget strings and updates
the relevant numbers in the database so that your widgets will work again.

Under what circumstances would you use this plugin?

If you update your URLs and apply the updated URLs directly to the database,
then any widgets with updated URLs will need to be fixed. This plugin fixes those widgets for you so that you do not need to redo your work.

What if the plugin does not work?

There is still hope. Sometimes WordPress removes the corrupted portions of code from the database when it loads. If the plugin fails to fix your widgets, you should try to run this from the command-line instead. There is a special way to do this. You should use the widget-fixer-cli.php file as follows. 1. Stop your site. 2. Restore your database. 3. Run: php -q widget-fixer-cli.php /var/www/html/wp-config.php

Replace the “/var/www/html/” with the actual path to your wp-config.php file. This method is generally quite reliable and successful.

Is this supported?

No, this is a free plugin that is intended to be used at your own risk.

Where can I get more information about Infragistics?

Contributors & Developers

“Widget Fixer” is open source software. The following people have contributed to this plugin.

Translate “Widget Fixer” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Bug fix – Added UTF8 support for MySQL connection to correct the character count.
  • Bug fix – Reworked algorithm to enable text fields with style tags (requiring ;’s).
  • Enhancement – Now re-serializes with built-in PHP function, rather than using a custom one.


  • Added more widgets to fix.
  • Added a CLI feature.
  • Moved the major functions into a separate file.
  • Added the ability view the source of the widgets that are fixed.
  • Added support for themes.
  • Fixed an issue with newline characters causing incorrect string length calculations


  • This is the first release.