1

주제: Sunteq_CategoryNew 에러 메시지가 출력됩니다.

서비스관리 > 서버 > 디버그 모드 사용에 체크 후 저장하면 아래와 같은 에러 메시지가 출력됩니다.

Undefined variable: i(8)
File: C:\bellblog\plugins\Sunteq_CategoryNew\index.php:43

index.php:43 째줄

41    $result = mysql_query("SELECT * FROM {$database['prefix']}Categories WHERE blogid = {$blogid}");
42    while($cat = mysql_fetch_array($result)) {

43        $i++;

$cnt = DBQuery::queryCell("SELECT COUNT(*) FROM {$database['prefix']}Entries WHERE blogid = $blogid and category={$cat['id']} and (published > {$timestamp} and published < {$today}) and visibility > 0 and draft = 0 ");

원인을 좀 살펴 봐 주세요...

Good Touch

2

답글: Sunteq_CategoryNew 에러 메시지가 출력됩니다.

소스 전체를 몰라서 $i가 무슨 역할을 하는지 모르겠습니다만, 실제로 그 변수가 사용되고 있고 단순히 정의 문제라면 41번째 줄과 42번째 줄 사이에

$i = 0;

을 추가하시면 될겁니다.

"Everything looks different on the other side."

-Ian Malcomm, from Michael Crichton's 'The Jurassic Park'

3

답글: Sunteq_CategoryNew 에러 메시지가 출력됩니다.

inureyes 님... 감사드립니다.
한방에 해결하였습니다...

Good Touch