• I want to create a table during activation of my plugin but it doesn’t create anything and I get this error: The plugin generated 788 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    here is the pastebin: http://pastebin.com/TdfaXncK

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter theBrettman

    (@thebrettman)

    I thought it was the trailing comma on the last line but even removing that didn’t fix it. I ended up replacing $wpdb->prepare() with a regular sql string and it worked. Even $wpdb->query() didn’t work. I took the example straight from the codex verbatim too and that didn’t work either! Someone should update the codex with a working example maybe?

    Braden Keith

    (@richard_steeleagency)

    This bug is a pain. I have the same situation with a $wpdb->query($sql) upon plugin activation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't create table during activation…’ is closed to new replies.