Forums

wp_create_categories broken? (5 posts)

  1. tiptop10
    Member
    Posted 4 years ago #

    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.

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    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.

  3. tiptop10
    Member
    Posted 4 years ago #

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

  4. Otto
    Tech Ninja
    Posted 4 years ago #

    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.

  5. tiptop10
    Member
    Posted 4 years ago #

    Thanks for such a fast response.

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

    Regards,
    Daniel.

Topic Closed

This topic has been closed to new replies.

About this Topic