I’ve done a goodly amount of searching on how to fix this error in my Widget plugin, but apparently because they are on the new side, this error is not very common. In fact, I only found one instance of it happening online and that was in the support forums, and no one had answered it yet, even after the poor guy had bumped it.
I am getting this error when I attempt to install and use the widgets plugin for my widgets-approved theme. I am able to install the plugin, activate it and I actually see the tab ‘sidebar widgets’ in the presentation tab of my dashboard. When I click on the ‘sidebar widgets tab’ this is what shows up underneath the tab:
Fatal error: Cannot redeclare register_sidebars() (previously declared in D:\hshome\databaselogin\sleepyblogger.com\wp-content\plugins\widgets\widgets.php:22) in D:\hshome\databaselogin\sleepyblogger.com\wp-content\plugins\widgets\widgets.php on line 22
Here’s what I have tried:
Upgrading to the most up-to-date version on WP
Deleting and reinstalling the plugin
Putting the entire plugin’s folder in the wp-content/plugins area so that it looked like wp-content/plugins/widget/a bunch of files and then I tried wp-content/plugins/a bunch of files (neither worked)
I asked the WP guru I know, Sarah Lewis, and she suggested:
1. Activating a different widget-ready theme. That will rule out or confirm a theme-specific issue.
2. Deactivating all other plugins, and if that improves anything, activating them one by one to find where the bad interaction is.
3. Downloading the whole WP directory and doing a directory-wide find for “register_sidebars”. That would tell me if there’s anything else trying to define the function.
I’ve done the first two and I don’t understand the third, so if anyone else out there has any suggestions, I’m all ears. Sarah will be available to follow up on my situation tomorrow, if I can’t figure it out before then, but I’d really like to start customizing my sidebars (and the temptation to edit the theme is almost too great). Please email me if you have any ideas. I will post the follow up when I know something.