• Hi

    I’ve just updated to the latest, now when I try to use function wp_create_categories (in admin-db.php) I am getting error: “wpbit.wp_categories doesn’t exist”. Is the wp_insert_category function broken?

    Thanks.
    D.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    No, wp_create_categories() is now in /wp-admin/includes/taxonomy.php. You didn’t upgrade properly, or did not delete the old files before upgrading. WordPress 2.3.1 has no admin-db.php file.

    Remove your older wp-admin directory and replace it with the newest version of the directory.

    Thread Starter tiptop10

    (@tiptop10)

    Would be great if there was a note in the upgrade manual/steps saying which files are now obsoleted with this release.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Well, that would really be all of them.

    Part of the upgrade process should involve deleting the old wp-admin and wp-includes directories. If you’re just overwriting (possibly because you have hacked some core files), then you’re going to have these sorts of issues.

    My advice would be to avoid hacking the core files and always replace wp-admin and wp-includes entirely.

    Thread Starter tiptop10

    (@tiptop10)

    Thanks for such a fast response.

    All is now working perfectly, keep up the good work.

    Regards,
    Daniel.

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

The topic ‘wp_create_categories broken?’ is closed to new replies.