انجمن


سفید شدن صفحه  (۳ نوشته)

  • prgame

    آفلاین
    عضو
    تعداد نوشته‌ها: ۴۱
    تشکر شده: ۳ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۳ شهریور ۱۳۹۱ - ۱۹:۳۷

    سلام.
    من وقتی پست ارسال میکنم یا کار دیگه ای میکنم صفحه سفید میشه.
    سرچ کردم و گفته بودن باید یه کد به اخر فایل کانفیگ اضافه کنید تا خبر بده. بعدش هیچی نشد!
    اینم چند خط اخر فایل error log :

    [12-Sep-2012 11:55:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:2) in /home/piranir/public_html/wp-includes/feed-atom.php on line 8
    [12-Sep-2012 12:01:50] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-rss2.php on line 8
    [13-Sep-2012 03:32:48] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-atom.php on line 8
    [13-Sep-2012 07:37:52] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881
    [13-Sep-2012 08:23:51] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-rss2.php on line 8
    [13-Sep-2012 08:23:57] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/feed-atom.php on line 8
    [13-Sep-2012 08:48:10] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881
    [13-Sep-2012 08:48:20] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881
    [13-Sep-2012 08:48:29] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881
    [13-Sep-2012 08:48:31] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881
    [13-Sep-2012 08:48:35] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881
    [13-Sep-2012 08:48:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/piranir/public_html/wp-content/themes/P30iran ghaleb foroshi/functions.php:11) in /home/piranir/public_html/wp-includes/pluggable.php on line 881

    اینم از فایل فاکشنم:

    <?php
    register_sidebar(array(
    'name' => 'right',
    'before_widget' => '<div class="bl">',
    'before_title' => '<div class="sarbl"><div class="sarbl2">',
    'after_title' => '</div></div><div class="bm">',
    'after_widget' => '</div></div>',
    ));
    ?>
    
    <?php
    register_sidebar(array(
    'name' => 'left',
    'before_widget' => '<div class="bl">',
    'before_title' => '<div class="sarbl"><div class="sarbl2">',
    'after_title' => '</div></div><div class="bm">',
    'after_widget' => '</div></div>',
    ));
    ?>
    <?php
    function catch_that_image() {
    global $post, $posts;
    $first_img = '';
    ob_start();
    ob_end_clean();
    $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
     $first_img = $matches [1] [0];
     if(empty($first_img)){ //Defines a default image
     $first_img = "wp-content/themes/modern mine/images/bed.png";
     }
    return $first_img;
    }
    ?>
    
    <?php
    function catch_that_a() {
    global $post, $posts;
    $second_a = '';
    ob_start();
    ob_end_clean();
    $output = preg_match_all('/<a.+href=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
     $second_a = $matches [1] [0];
     if(empty($second_a)){ //Defines a default a
     $second_a = "http://#/";
     }
    return $second_a;
    }
    ?>
    
    <?php function comment_loop_cd( $comment, $args, $depth ) {
    $GLOBALS['comment'] = $comment;
    switch ( $comment->comment_type ) :
      case 'pingback' :
      case 'trackback' :
    ?>
    <li class="post pingback">
      <p>بازتاب: <?php comment_author_link(); ?><?php edit_comment_link( 'ویرایش', '<span class="edit-link">', '</span>' ); ?></p>
    <?php
       break;
      default :
    ?>
    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
      <article id="comment-<?php comment_ID(); ?>" class="comment">
       <footer class="comment-meta">
                                        </article><div class="fooc">
    <div class="namec">
    <?php /* translators: 1: comment author, 2: date and time */
                      printf( '%1$s  %2$s ',
                       sprintf( '<span class="fn">%s می گه :</span>', get_comment_author_link() ),
                       sprintf( '',
                        esc_url( get_comment_link( $comment->comment_ID ) ),
                        get_comment_time( 'c' ),
                        /* translators: 1: date, 2: time */
                        sprintf( '%1$s ، %2$s', get_comment_date(""), get_comment_time() )
                       )
                      );
                     ?>
    </div>
       <div class="reply">
        <?php comment_reply_link( array_merge( $args, array( 'reply_text' => 'پاسخ <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
       </div>
                                        </div>
        <div class="comment-author vcard">
                     <?php
                      $avatar_size = 45;
                      if ( '0' != $comment->comment_parent )
                       $avatar_size = 39;
                      echo get_avatar( $comment, $avatar_size );
    
                     ?>
                     <?php edit_comment_link( '(ویرایش)', '<span class="edit-link">', '</span>' ); ?>
        </div><!-- .comment-author .vcard -->
        <?php if ( $comment->comment_approved == '0' ) : ?>
                     <em class="comment-awaiting-moderation">نظر شما بعد از تائید نمایش داده میشود.</em>
                     <br />
        <?php endif; ?>
       </footer>
       <div class="comment-content"><?php comment_text(); ?></div>
    <!-- .reply -->
      <!-- #comment-## -->
    <div class="comfor">
    <?php
       break;
    endswitch;
    }
    function comment_form_cd( $args = array(), $post_id = null ) {
    global $id;
    if ( null === $post_id )
      $post_id = $id;
    else
      $id = $post_id;
    $commenter = wp_get_current_commenter();
    $user = wp_get_current_user();
    $user_identity = ! empty( $user->ID ) ? $user->display_name : '';
    $req = get_option( 'require_name_email' );
    $aria_req = ( $req ? " aria-required='true'" : '' );
    $fields =  array(
      'author' => '<p class="comment-form-author">' .'<div class="ss">نام:</div>'. '<label for="author">' . ( $req ? '' : '' ) .'  </label><input  id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p><br>',
      'email'  => '<p class="comment-form-email"><label for="email">' . ( $req ? '' : '' ) .' <p><div class="ss">ایمیل :</div></p> </label><input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
      'url'    => '<p class="comment-form-url"><label for="url"><br><div class="ss">وب سایت</div></label>' .
                                                      '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
    );
    $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
    $defaults = array(
      'fields'                                               => apply_filters( 'comment_form_default_fields', $fields ),
      'comment_field'                  => '<br><p class="comment-form-comment"><br><label style=" float: right;" for="comment">دیدگاه: </label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
      'must_log_in'            => '<p class="must-log-in">' .  sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
      'logged_in_as'                                 => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_per
  • tavabin

    آفلاین
    عضو
    تعداد نوشته‌ها: ۱۳
    تشکر شده: ۱ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۴ شهریور ۱۳۹۱ - ۰۲:۴۸

    خب یا مشکل از قالبتون هست یا افزونه ای که جدیدا نصب کردید
    برید توی سی پنل و قالب یا افزونه ای که جدیدا نصب کردید رو پاک کنید بعد وارد مدیریت سایت میتونید بشید و درست میشه فکر کنم...

  • mihanv

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۷
    تشکر شده: ۵ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۴ شهریور ۱۳۹۱ - ۱۸:۴۱

    http://mihanv.com/wordpress/?p=172

درباره‌ی این موضوع



برچسب‌ها

هیچ برچسبی نیست.