Title: Multisite buggy
Last modified: September 3, 2016

---

# Multisite buggy

 *  [Ben Greeley](https://wordpress.org/support/users/bengreeley/)
 * (@bengreeley)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/multisite-buggy/)
 * Works great for the most part, but recently I’ve noticed that some sites that
   are created in our multisite environment don’t create the necessary tables, so
   the plugin gives an error. We are able to get around this by manually running
 * CREATE TABLE `pwp_100_dynamic_widgets` (
    `id` int(11) NOT NULL AUTO_INCREMENT,`
   widget_id` varchar(60) DEFAULT NULL, `maintype` varchar(50) DEFAULT NULL, `name`
   varchar(40) DEFAULT NULL, `value` longtext, PRIMARY KEY (`id`), KEY `widget_id`(`
   widget_id`,`maintype`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
 * where 100 is our site id. Not sure what’s gunking this up, or if it’s another
   plugin on our site, but just wanted you to be aware of this happening.

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

 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/multisite-buggy/#post-7943798)
 * Please read the FAQ. Thank you.
 *  Thread Starter [Ben Greeley](https://wordpress.org/support/users/bengreeley/)
 * (@bengreeley)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/multisite-buggy/#post-7943801)
 * I believe I have a solution to this. If I add
 * `add_action( 'wpmu_new_blog', 'dynwid_install');`
 * to line 939 in dynamic-widgets.php and it will call the install function (table
   creation) when a new site is created. Hope that helps. I tried to find a repository
   to contribute to, but figured just putting it in here would be helpful.
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/multisite-buggy/#post-7943805)
 * Thanks, I’ll have a look at it.

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

The topic ‘Multisite buggy’ is closed to new replies.

 * ![](https://ps.w.org/dynamic-widgets/assets/icon-256x256.png?rev=2968917)
 * [Dynamic Widgets](https://wordpress.org/plugins/dynamic-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-widgets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Qurl](https://wordpress.org/support/users/qurl/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/multisite-buggy/#post-7943805)