• 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

    (@qurl)

    Please read the FAQ. Thank you.

    Thread Starter Ben Greeley

    (@bengreeley)

    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

    (@qurl)

    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.