WordPress.org

Ready to get started?Download WordPress

Forums

Busiprof
[resolved] Cannot enable home page (11 posts)

  1. tcsbradshaw
    Member
    Posted 10 months ago #

    Not sure what is meant by these warnings.

    Warning: Cannot modify header information - headers already sent by (output started at /home/timb/public_html/wp-content/themes/busiprof/functions/Pagination/pagination.php:1) in /home/timb/public_html/wp-includes/pluggable.php on line 899

    Warning: Cannot modify header information - headers already sent by (output started at /home/timb/public_html/wp-content/themes/busiprof/functions/Pagination/pagination.php:1) in /home/timb/public_html/wp-admin/post.php on line 222

  2. rev-angeldust
    Member
    Posted 10 months ago #

    I have the exact same problem since 3.17 update

  3. a.ankit
    Member
    Posted 9 months ago #

    @Rev & tcsbradshaw

    We will look into this issue.. It seems that update to 3.7.1 is causing some problems.

    -Ankit

  4. vibhorp
    Member
    Posted 9 months ago #

    Hi,

    We'll fix this issue in our next update.

    Mean While you can remove white space from the
    /functions/Pagination/pagination.php

  5. rev-angeldust
    Member
    Posted 9 months ago #

    What exactly do I have to remove in pagination.php?

  6. vibhorp
    Member
    Posted 9 months ago #

    @rev-angeldust

    just remove some extra white space in pagination.php at the stating of the code.

  7. rev-angeldust
    Member
    Posted 9 months ago #

    so I deleted some empty lines in the pagination.php file. I guess white space are line breaks with empty lines and spaces?

    Nothing changed, while trying to log in come these warnings:

    Warning: Cannot modify header information - headers already sent by (output started at /kunden/319717_79106/frei-cycle/wp-content/themes/busiprof/functions/Pagination/pagination.php:1) in /kunden/319717_79106/frei-cycle/wp-login.php on line 409
    
    Warning: Cannot modify header information - headers already sent by (output started at /kunden/319717_79106/frei-cycle/wp-content/themes/busiprof/functions/Pagination/pagination.php:1) in /kunden/319717_79106/frei-cycle/wp-login.php on line 421

    Anything I can do?

  8. Hari Maliya
    Member
    Posted 9 months ago #

    Hi rev-angeldust,

    Remove all white space, php tag space, empty lines and line break in pagination.php.
    It will solve your problem.

  9. rev-angeldust
    Member
    Posted 9 months ago #

    thats my code now...

    <?php
    function busiprof_pagination($pages = '', $range = 2)
    {
    $showitems = ($range * 2)+1;
    global $paged;
    if(empty($paged)) $paged = 1;
    if($pages == '')
    {
    global $wp_query;
    $pages = $wp_query->max_num_pages;
    if(!$pages)
    {
    $pages = 1;
    }
    }
    if(1 != $pages)
    {
    echo "<div class='pagination_blog'><ul>";
    if($paged > 2 && $paged > $range+1 && $showitems < $pages)?>
    <li class='page_links'><a href=<?php get_pagenum_link(1);?>><?php _e('Previous','busi_prof'); ?></a></li>
    <?php
    if($paged > 1 && $showitems < $pages) echo "<li><a href='".paginate_links($paged - 1)."'>&lsaquo;</a></li>";
    for ($i=1; $i <= $pages; $i++)
    {
    if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
    {
    echo ($paged == $i)? "<li class='active'><a  href=#>".$i."</a></li>":"<li><a href='".get_pagenum_link($i)."' class='inactive' >".$i."</a></li>";
    }
    }
    if ($paged < $pages && $showitems < $pages) echo "<li><a href='".paginate_links($paged + 1)."'>&rsaquo;</a></li>";
    if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) ?>
    <li class='page_links'><a href="<?php get_pagenum_link($pages);?>"><?php _e('Next','busi_prof'); ?></a></li>
    </ul></div>
    <?php
    }
    }
    ?>

    still wont work.
    what am I doing wrong?

  10. rev-angeldust
    Member
    Posted 9 months ago #

    and now this wild message appears when trying to login:

    Warning: Cannot modify header information - headers already sent by (output started at /kunden/319717_79106/frei-cycle/wp-content/themes/busiprof/functions.php:204) in /kunden/319717_79106/frei-cycle/wp-includes/pluggable.php on line 899

  11. a.ankit
    Member
    Posted 9 months ago #

    @Rev-angeldust

    This is very strange. Pls contact us through the contact form on webriti.com

    I will take a look at your website.

    -Ankit

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.