raindance

Member

Forum Replies Created

  • In reply to: "cannot modify header info" log in failure

    #17306

    This is the code on line 37 of /home/juicytrv/public_html/wp-content/themes/graphene-child/functions.php:37)

    37:

    <?php

    /******

    * these next two remove the graphene breadcrumb and then add one

    * which does not appear on the home page

    *****/

    // has to be called after the action is added

    add_action (‘after_setup_theme’, ‘wmrt_remove_graphene_bc’);

    function wmrt_remove_graphene_bc() {

    remove_action (‘graphene_top_content’, ‘graphene_breadcrumb_navxt’);

    }

    add_action(‘graphene_top_content’, ‘wmrt_breadcrumb_navxt’);

    function wmrt_breadcrumb_navxt () {

    //by calling this at this point is_home() works!

    if ((function_exists(‘bcn_display’)) && (!(is_home()))) {

    echo ‘<div class=”breadcrumb”>’;

    bcn_display();

    echo ‘</div>’;

    }

    }

    ?>

    And this was the last thing I was working on before it stopped working I think.

    If I remove this section from the child functions file, I still get the same error on the login page.

    In reply to: "cannot modify header info" log in failure

    #17305

    so I put it back in and now I’m back to the original problem

    http://juicytravels.com/wp-admin/

    Warning: Cannot modify header information – headers already sent by (output started at /home/juicytrv/public_html/wp-content/themes/graphene-child/functions.php:37) in /home/juicytrv/public_html/wp-includes/pluggable.php on line 934

    Maybe I enabled a plug in that is conflicting, but if I can’t get into the admin, how to I figure out what to disable?

    Thanks in advance…I’m stuck.

    In reply to: "cannot modify header info" log in failure

    #17304

    If I remove that section I get the error:

    Fatal error: Call to undefined function wp_redirect() in /home/juicytrv/public_html/wp-includes/pluggable.php on line 851

    In reply to: "cannot modify header info" log in failure

    #17303

    This is the code which seems to be causing the problem?

    934: header(“Location: $location”, true, $status);

    /**

    * Redirects to another page.

    *

    * @since 1.5.1

    * @uses apply_filters() Calls ‘wp_redirect’ hook on $location and $status.

    *

    * @param string $location The path to redirect to

    * @param int $status Status code to use

    * @return bool False if $location is not set

    */

    function wp_redirect($location, $status = 302) {

    global $is_IIS;

    $location = apply_filters(‘wp_redirect’, $location, $status);

    $status = apply_filters(‘wp_redirect_status’, $status, $location);

    if ( !$location ) // allows the wp_redirect filter to cancel a redirect

    return false;

    $location = wp_sanitize_redirect($location);

    if ( !$is_IIS && php_sapi_name() != ‘cgi-fcgi’ )

    status_header($status); // This causes problems on IIS and some FastCGI setups

    header(“Location: $location”, true, $status);

    }

    endif;

    if ( !function_exists(‘wp_sanitize_redirect’) ) :

    In reply to: Previous – Next posts

    #16505

    Arrgh sorry…I just used what a helpful person here told me to do to get it centered at the bottom. I don’t know which spot that is at the top.

    Do you use Firefox? If so, install Firebug if you don’t have it. Right click on anything and “inspect element” and it will tell you which thing and line number you have to play with.

    In reply to: How to hide breadcrumb on home page only?

    #17105

    Hey that did it…thank you so much for sharing! Just needed to add the tags.

    I should have known to put the php tags, duh.

    Perfect now, thank you!

    In reply to: How to hide breadcrumb on home page only?

    #17104

    Yup…using Breadcrumb NavXT.

    Are you using that also?

    Looking to see if there is an option there to not show on home page but not finding…

    In reply to: How to hide breadcrumb on home page only?

    #17101

    Didn’t work for me…

    Caused all kinds of weirdness. Maybe conflicted with a plug in or something.

    In reply to: Previous – Next posts

    #16503

    Try adding just this to the css part that controls it

    text-align:center;

    In reply to: Previous – Next posts

    #16502

    Sorry I should have posted the whole bit for that nav stuff:

    }

    #my-post-nav {

    clear: both;

    border-top: 1px solid #E3E3E3;

    padding-top: 10px;

    text-align:center;

    }

    .entry-footer {

    display: none

    }

    #previous, #next-post {display: none;}

    I wanted it in the body of the post and at the bottom. You could have it at the top too.

Viewing 10 posts - 221 through 230 (of 312 total)