Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27188

    Hi,

    I’m using the WP 3.5.2 (but it’s the same with the WP 3.6) and the last version of the theme Enfold.

    When I save or I publish a post I receive a blank page with only “-1″. The problem is exactly the same posted here a year ago

    http://www.kriesi.at/support/topic/custom-post-type-saving-error-1

    The post is saved but the redirect doesn’t work. If I goto the url shown in the address bar the post is opened in the edit page and the page is correctly filled.

    I noticed that:

    1. if I save the post as “admin” it works, saving as “author” it doesn’t

    2. if I change to the default WP template and I save the post as “author” I don’t see the error, it’s ok

    Thank you

    #133095

    Hey!

    I can’t reproduce this issue on my test servers. Please try following:

    1) Update the theme to the latest version 1.8.4.

    2) Deactivate all third party plugins and check if the problem persists.

    Best regards,

    Peter

    #133096

    I have to correct the first post.

    The post was never published due to an error on a plugin, now resolved.

    I discovered that the problem of the -1 message after the publishing of a post as “author” is because an incompatibility between Enfold theme and the plugin WP Admin UI Customize (http://wordpress.org/plugins/wp-admin-ui-customize/)

    If I only change to the main WP theme it’s ok.

    If this could help I found that this is the die() method that stops the refresh of the post page after its publishing.

    It can be found on wp-includes/pluggable.php

    function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {

    if ( $query_arg )

    $nonce = $_REQUEST[$query_arg];

    else

    $nonce = isset($_REQUEST) ? $_REQUEST : $_REQUEST;

    $result = wp_verify_nonce( $nonce, $action );

    if ( $die && false == $result ) {

    if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX )

    wp_die( -1 );

    else

    die( ‘-1′ ); // <— this is the -1 shown

    }

    do_action(‘check_ajax_referer’, $action, $result);

    return $result;

    }

    I’m using Enfold 1.8.4

    Thank you

    #133097

    Hey,

    Glad it is fixed.

    Cheers,

    Ismael

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

The topic ‘White page with only "-1" saving or publishing a post’ is closed to new replies.