• 18-12-2012, 23:25:38
    #1
    error_log dosyasında sürekli bu hata loglanıyor.akşam bir baktım log dosyası 9 gb olmuş arkadaşlar bu sorun nedir acaba anlamadım gitti 4. satırda aşagıdaki kod var.
    foreach ($posts as $post) { start_wp();
    Buda comments dosyası.
    <?php 
    /* Don't remove these lines. */
    add_filter('comment_text', 'popuplinks');
    foreach ($posts as $post) { start_wp();
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
    <title><?php echo get_settings('blogname'); ?> - Comments on <?php the_title(); ?></title>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
    <style type="text/css" media="screen">
    @import url( <?php bloginfo('stylesheet_url'); ?> );
    </style>
    
    </head>
    
    <body id="commentspopup">
    
    <div id="comments">
    
    <div id="comments-header"><div id="comments-header-inner">
    <h1><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1>
    <h2>Comments for the post '<?php the_title(); ?>'</h2>
    <?php } ?>
    
    </div>
    </div>
    
    <?php
    // this line is WordPress' motor, do not delete it.
    $comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';
    $comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
    $comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';
    $comments = get_approved_comments($id);
    $post = get_post($id);
    if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
    	echo(get_the_password_form());
    } else { ?>
    
    <?php if ($comments) { ?>
    <?php foreach ($comments as $comment) { ?>
    <div class="comment-main" id="comment-<?php comment_ID() ?>">
    <div class="gravatar"><?php  echo get_avatar( $comment, 35); ?></div>
    
    <div class="comment-meta">
    <span class="comment-meta-author"><?php comment_author_link(); ?></span>
    <?php comment_date('M jS, Y') ?> at <?php comment_time() ?>
    </div>
    <div class="comment-body">
    <?php comment_text() ?> 
    </div>
    </div>
    <?php } // end for each comment ?>
    
    
    <?php } else { // this is displayed if there are no comments so far ?>
    
    <?php } ?>
    
    <div id="comment-form"><div id="comment-form-inner">
    
    <?php if ('open' == $post->comment_status) { ?>
    <h2>Bu görsel hakkında görüşlerinizi yazın!</h2>
    
    <div class="comment-form-info">
    <P style='color:#FF8C00;'> Yorumlarınızı Türkçe'ye ve Ahlaka uygun şekilde yapmayı unutmayınız.</p>
    </div>
    
    <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="comments-form">
    <p>
    <label for="author">İsminiz</label>
    <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    <input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />
    </p>
    <p>
    <label for="email">Mail Adresiniz</label>
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
    </p>
    
    <p>
    <label for="comment">Yorumunuz</label>
    <textarea name="comment" id="comment" cols="40" rows="4" tabindex="4"></textarea>
    </p>
    <p>
    <input name="submit" id="comment-submit" type="submit" tabindex="5" value="Yorumu gönder" />
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    
    <?php } else { // comments are closed ?>
    <p>Sorry, the comment form is closed at this time.</p>
    <?php }
    } // end password check
    ?>
    
    
    
    <?php if ('open' == $post->ping_status) { ?>
    
    
    </div></div>
    
    <?php // if you delete this the sky will fall on your head
    }
    ?>
    
    <!-- // this is just the end of the motor - don't touch that line either :) -->
    <?php //} ?> 
    
    </div>
    
    </body>
    </html>
  • 19-12-2012, 11:35:01
    #2
    Hala sorunu çözemedim :S