• Ever since upgrading to WordPress 3.0 no one in my network can create Pages.

    Here is the exact error I am getting.

    <worldblogosphere.com>

    You forget to check a category. Check one. This article is not yet saved.

    Now, I can’t remember if we used to have to pick a category when creating pages or not, but what I do know is that there is NO category list to choose from in the Add New Pages page.

    So, I can’t possibly choose a category, and I can’t publish a page without picking a category.

    I figured maybe it was a glitch with 3.0, so I went and upgraded to 3.0.1 thinking maybe it was fixed. I still have the problem though.

    Can anyone help me with this? I searched the forum and didn’t find anything like this being addresses yet. Maybe I am the only one with this problem?

    Thanks for any help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Gonna have to troubleshoot. ??

    Check error logs, disable some plugins (in groups if you have to).

    Thread Starter worldblogosphere

    (@worldblogosphere)

    Thanks for responding Andrea.

    I had every plugin disable and it still gave me the same error.

    The only things listed in my error logs are some “File does not exist” errors from about 3 different themes, and it looks like they are all image related. I don’t see anything that should have anything to do with this problem.

    The thing I REALLY don’t understand is the categories show fine in the Posts area, just not in the Pages area…and it is all being called from the same files… post-new.php and post.php . I don’t see how the same function can work for one and not the other in that case.

    Any other suggestions?

    Categories aren’t even used in the Pages menu, so it shouldn’t be checking for them anyway.

    Thread Starter worldblogosphere

    (@worldblogosphere)

    Right, but I mean it is all calling the same page. Is it supposed to be calling the post-new.php page when creating a page? Or is it supposed to be calling a different file just for pages? Or maybe is there just something wrong in the basic coding of the page?

    post-new.php….

    <?php
    /**
    * New Post Administration Panel.
    *
    * @package WordPress
    * @subpackage Administration
    */

    /** Load WordPress Administration Bootstrap */
    require_once(‘./admin.php’);

    if ( !isset($_GET[‘post_type’]) )
    $post_type = ‘post’;
    elseif ( in_array( $_GET[‘post_type’], get_post_types( array(‘show_ui’ => true ) ) ) )
    $post_type = $_GET[‘post_type’];
    else
    wp_die( __(‘Invalid post type’) );

    if ( ‘post’ != $post_type ) {
    $parent_file = “edit.php?post_type=$post_type”;
    $submenu_file = “post-new.php?post_type=$post_type”;
    } else {
    $parent_file = ‘edit.php’;
    $submenu_file = ‘post-new.php’;
    }

    $post_type_object = get_post_type_object($post_type);

    $title = $post_type_object->labels->add_new_item;

    $editing = true;

    if ( ‘post’ == $post_type && !current_user_can(‘edit_posts’) ) {
    include(‘./admin-header.php’); ?>
    <div class=”wrap”>
    <p><?php printf(__(‘Since you’re a newcomer, you’ll have to wait for an admin to add the edit_posts capability to your user, in order to be authorized to post.
    You can also e-mail the admin to ask for a promotion.
    When you’re promoted, just reload this page and you’ll be able to blog. :)’), get_option(‘admin_email’)); ?>
    </p>
    </div>
    <?php
    include(‘./admin-footer.php’);
    exit();
    }

    wp_enqueue_script(‘autosave’);

    // Show post form.
    if ( current_user_can($post_type_object->cap->edit_posts) ) {
    $post = get_default_post_to_edit( $post_type, true );
    $post_ID = $post->ID;
    include(‘edit-form-advanced.php’);
    }

    include(‘./admin-footer.php’);

    New Page url = /wp-admin/post-new.php?post_type=page

    Pages are post type now, there is no longer a page-new.php

    I’d reinstall a fresh copy of 3, but move out all the old files first rather than overwrite, just to make sure no old files linger.

    “You forget to check a category” when saving pages is not right. I can’t find that phrase in WordPress source code anywhere.

    You must have some plugin, or mu-plugin, forcing users to check a category on the post-new.php form. The plugin also filters the saving of pages, an unwanted side-effect – now a defect. You’ll want to disable that plugin. Looks like an SEO post category reminder script that attaches correctly to new posts, but obviously now interferes with new pages. In a browser, I had a look at the source of the edit form when adding a new page and the script is attached to the footer.

    Thread Starter worldblogosphere

    (@worldblogosphere)

    Thanks David!

    With the way you explained it I remembered when I first set up my WordPRess MU install 2+ years ago I loaded a plugin into the MU Plugins folder to force users to choose a category. It was one of those that you just loaded in the folder and never had to activate on the plugins page or anything like that. This whole time I was deactivating everything from the plugins page.

    So, is it standard now that someone has to choose a category, or do I need to figure out a way to make them choose one through a different plugin?

    Thanks again for the help.

    WordPress automagically assigns posts to the “Uncategorized” category or whatever is saved at Settings->Writing->Default Post Category. Not sure why you’d need a plugin otherwise, I don’t do SEO stuff.

    Those pesky “mu-plugins”. Good idea when upgrading to add/remove/update those one at a time and test them all during a major upgrade especially. “mu-plugins” won’t trigger any upgrade notice, so you’ll need to hunt those updates down the old fashioned way. Been there, done that.

    Thread Starter worldblogosphere

    (@worldblogosphere)

    I am not really sure why I loaded the plugin. I don’t remember if I had a problem where it wasn’t forcing users to pick a category or not, but that’s what I think happened.

    I think I need to strip everything down and then see which ones I need to load back in. Over the two years I have had it installed I think I have gathered some junk.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error when creating pages, can't choose a category’ is closed to new replies.