• The database table doesn’t get created when I activate this plugin.

    I had to go into the file and pull the SQL lines and run it direct in the database. Onbce I did that it worked fine.

    Steps to reproduce…

    1. Set up a site with a custom table prefix
    2. Install the plugin folder manually
    3. Activate and check the categories page. A bunch of MySQL errors are shown. The database table doesn’t exist, and categories are not showing up.

    I don’t know if 1 or 2 above have anything to do with why it does not work. Or if there is something wrong with the hook call. But it should naturally be tested and fixed in the core plugin files.

    http://wordpress.org/extend/plugins/taxonomy-order/

Viewing 3 replies - 1 through 3 (of 3 total)
  • As per another support thread for this plugin, I can confirm that if you deactivate and reactive the plugin, then refresh the taxonomy page, all the terms reappear, so presumably the database table has been created.

    I’m having the same issue, and have run to it with a couple of plugins of my own as well. As recommended on the register_activation_hook codex page
    it’s better to register the activation hook outside of the class if you’re using a singleton.

    Just comment out line 89 of taxonomy-order.php and add register_activation_hook( __FILE__, array( $Interface_Taxonomy_Order, 'activation_hook' ) ); to the end of the file.

    Here’s a diff for those who are into that.

    Andre Noel

    (@dee-web-designer)

    in the file « taxonomy-order.php » at the line 84, change to lower case the name of the folder of the plugin and everything will work

    – self::$plugin_folder = ‘Taxonomy-Order’;
    + self::$plugin_folder = ‘taxonomy-order’;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Database table doesn't get created on activation’ is closed to new replies.