테스트 사이트 - 개발 중인 베타 버전입니다

최신글 부분 질문좀드리겠습니다. 채택완료

코딩초보1 7년 전 조회 2,527

최신글 불러오는데

불러오지긴 하는데

상단에

 

Warning: fopen(/www/사이트주소/www_root/co/data/cache/latest-lg-/lg-100-17-serial.php) [http://realkt.com/co/function.fopen">function.fopen]: failed to open stream: No such file or directory in /www_root/co/lib/latest.lib.php on line 88 Warning: fwrite() expects parameter 1 to be resource, boolean given in /www_root/co/lib/latest.lib.php on line 96 Warning: fclose() expects parameter 1 to be resource, boolean given in /www_root/co/lib/latest.lib.php on line 97

 

이렇게 나오는데 왜그런걸까요 

 

 

 

해당부분 소스입니다

</b></p>

<p> </p>

<p><b><?php

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가</b></p>

<p><b>// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

include_once(G5_LIB_PATH.'/thumbnail.lib.php');

add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);

?>

<style></b></p>

<p>

<b>/* 최근게시물 스킨 (latest) */

.lt1 {position:relative;width: 850px;

    margin: auto;}

.lt1 #gall_ul {margin:10px 0 0;padding:0;list-style:none;padding-top:20px; border-bottom: 2px solid #df2867; border-top: 2px solid #df2867;}

.lt1 #gall_ul:after {display:block;visibility:hidden;clear:both;content:""}

.lt1 .gall_li {float: left;

    width: 25%;

    position: relative;

    min-height: 1px;

    padding-left: 5px;

    *padding-left: 0;

    padding-right: 5px;

    *padding-right: 0;

    float: left;

    -webkit-box-sizing: border-box;

    -moz-box-sizing: border-box;

    box-sizing: border-box;

    margin-left: 0; }</b></p>

<p><b> .lt1 .gall_li_wr{background:#fff;position:relative; margin: 0 0 10px 0; text-align: center;}

.lt1 .gall_li_chk{display:inline-block;padding:5px;position:absolute;top:0;left:0}

 .lt1 .gall_li .gall_img img{width:100%;height:auto}

.lt1 .gall_li .gall_img .no-img{display:block;background:#ddd;text-align:center;padding:30% 0}

.lt1 .gall_li_wr{background:#fff;position:relative;}

.lt1 .gall_text_href {padding:10px;display:block}

.lt1 .gall_info{padding:5px 0 0;margin:10px 0 0 ;color: #666;border-top:1px solid #eee;}

.lt1 .gall_info:after {display:block;visibility:hidden;clear:both;content:""} 

.lt1 .gall_info strong{display:inline-block;margin-right:3px}

.lt1 .gall_li_tit{font-family: "Noto Sans KR",sans-serif;

    font-weight: bold;

    font-size: 18px;}

.lt .date{float:right;color:#666;font-style:italic}</b></p>

<p><b>.tx_box {margin: auto;width:100%;}</b></p>

<p><b>@media screen and (max-width:1200px) {

    .gall_img img { width: 100% !important; }

      

}

@media screen and (max-width:1000px) {

.lt1 {position:relative;width:100%}

 }</b></p>

<p>

<b>@media screen and (max-width:700px) {

.lt1 .gall_li {float:left;;width:33.3%;padding:5px}</b></p>

<p>

<b>}</b></p>

<p><b>@media screen and (max-width:600px) {

.lt1 .gall_li {float:left;;width:50%;padding:5px}</b></p>

<p><b> .lt1 .gall_li_tit{font-family: "Noto Sans KR",sans-serif;

    font-weight: bold;

    font-size: 14px;}

}</b></p>

<p><b></style>

<div class="lt1">

 

 <div class="tx_box">

 <img src="<a href="http://poniya.speedgabia.com/lglg.PNG"" target="_blank" rel="noopener noreferrer">http://poniya.speedgabia.com/lglg.PNG"</a> style="width:100%;">

     </div>

     <ul id="gall_ul">

    <?php for ($i=0; $i<count($list); $i++) { ?>

        <li class="gall_li ">

            <div class="gall_li_wr"></b></p>

<p><b>            <?php

            echo "<a href=\"".$list[$i]['href']."\" class='gall_img'>";

                            $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['height:250px;'], $board['bo_gallery_height'], false, true);</b></p>

<p><b>            if($thumb['src']) {

                $img_content = '<img src="'.$thumb['src'].'">';

            } else {

                $img_content = '<img src="'.G5_URL.'/img/no_img.png">';

            }

                echo $img_content;

                echo "</a>";

            ?>

            

                <div class="gall_text_href"></b></p>

<p><b>                    <a href="<?php echo $list[$i]['href'] ?>" class="gall_li_tit">

                        <?php echo $list[$i]['subject'] ?>

                    </a>

                     

                     

                </div>

            </div>

        </li>

    <?php } ?>

    <?php if (count($list) == 0) { //게시물이 없을 때 ?>

    <li class="empty_li">게시물이 없습니다.</li>

    <?php } ?>

    </ul>

</div></b></p>

<p><b>

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
티로그
7년 전

Warning: fopen(/www/사이트주소/www_root/co/data/cache/latest-lg-/lg-100-17-serial.php) [http://realkt.com/co/function.fopen" rel="nofollow">function.fopen]: failed to open stream: No such file or directory in /www_root/co/lib/latest.lib.php on line 88 Warning: fwrite() expects parameter 1 to be resource, boolean given in /www_root/co/lib/latest.lib.php on line 96 Warning: fclose() expects parameter 1 to be resource, boolean given in /www_root/co/lib/latest.lib.php on line 97

이 부분은 

소스에서는 

 

if($cache_fwrite) {             $handle = fopen($cache_file, 'w');             $caches = array(                 'list' => $list,                 'bo_subject' => sql_escape_string($bo_subject),                 );             $cache_content = "\n\n";             $cache_content .= base64_encode(serialize($caches));  //serialize

            fwrite($handle, $cache_content);             fclose($handle);

            @chmod($cache_file, 0640);         }

캐시화일를 읽고 쓰는 부분인데요. 어떤 이유로 캐시화일이 생성되지 않아 생기는 워닝같습니다.

계정용량확인이나 캐시디렉토리 권한등 캐시화일이 생성되지 않은 이유 확인해보시면 될거 같습니다.

수고하세요.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인