• When I use the Create New Template form, and hit “Save”, I’m taken to a page that says “You are not allowed to edit this post.”

    The template has not been created, after doing this.

Viewing 9 replies - 1 through 9 (of 9 total)
  • can fix it by opening file manage.php, find the following lines:

    if ( isset( $_POST[‘ID’] ) ) {
    $_POST[‘post_ID’] = $_POST[‘ID’];
    }

    change them to:

    if ( isset( $_POST[‘ID’] ) ) {
    $_POST[‘post_ID’] = $_POST[‘ID’];
    unset ( $_POST[‘ID’] );
    }

    That’s it! my wp3.2.1 is working great

    I have looked all over the place and I cannot find my file manage.php. where is it?

    you’ll find it in the folder of that plugin. I mean:
    wp-content/plugins/article-templates

    OK, I don’t see such lines in manage.php
    More ideas? ??

    Oh, I’m sorry
    It’s should be found in wp-admin/includes/post.php
    function wp_write_post()

    Well, my WP 3.2.1 already has this code in a way you proposed it.
    I mean, I don’t have to change anything in /wp-admin/includes/post.php because it already has unset ( $_POST['ID'] ); line there.

    More ideas? ??

    OK, this is what worked for me

    In article-templates/manage.php change
    } elseif($_POST[‘action’] == ‘new’) {
    wp_write_post();
    }

    to

    } elseif($_POST[‘action’] == ‘new’) {
    unset($_POST[‘post_ID’]);
    wp_write_post();
    }

    Which seems to now allow me to add new templates. I can’t seem to delete them, but that isn’t a deal-breaker for me

    Worked for me, too. Thanks!

    And for me. Many thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot create new templates’ is closed to new replies.