Support » Plugin: Dynamic Widgets » 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 (
    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)

    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 Author Qurl


    Please read the FAQ. Thank you.

    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 Author 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.