코드이그나이터에서 접속로그 모듈을 설치하려 합니다.
DB설정도 다 맞춰 주었고 해당 파일에 include도 해주었는데 에러가 많이 뜨더라구요ㅠ
모듈이라 설정만 잘 해주고 소스상에는 따로 손대지 않아도 되는걸로 알고 있는데 왜 이런 에러가 나는지 모르겠습니다.
Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/cms20/www/AceMTcounter/stat_all.php on line 8 Notice: Use of undefined constant ko - assumed 'ko' in /home/cms20/www/AceMTcounter/stat_all.php on line 12 Notice: Undefined index: ko in /home/cms20/www/AceMTcounter/stat_all.php on line 12 Notice: Use of undefined constant ko - assumed 'ko' in /home/cms20/www/AceMTcounter/stat_all.php on line 13 Notice: Use of undefined constant kc - assumed 'kc' in /home/cms20/www/AceMTcounter/stat_all.php on line 14 Notice: Undefined index: domain in /home/cms20/www/AceMTcounter/stat_all.php on line 19 Notice: Undefined index: ip in /home/cms20/www/AceMTcounter/stat_all.php on line 22 Notice: Undefined variable: myFlds in /home/cms20/www/AceMTcounter/stat_all.php on line 25 Notice: Use of undefined constant nowpg - assumed 'nowpg' in /home/cms20/www/AceMTcounter/stat_all.php on line 30 Notice: Undefined index: nowpg in /home/cms20/www/AceMTcounter/stat_all.php on line 30 Notice: Use of undefined constant nowpg - assumed 'nowpg' in /home/cms20/www/AceMTcounter/stat_all.php on line 30 Notice: Use of undefined constant lineNum - assumed 'lineNum' in /home/cms20/www/AceMTcounter/stat_all.php on line 31 Notice: Undefined index: lineNum in /home/cms20/www/AceMTcounter/stat_all.php on line 31 Notice: Use of undefined constant lineNum - assumed 'lineNum'
이런 에러가 있구요
Notice: Use of undefined constant kc - assumed 'kc' in /home/cms20/www/AceMTcounter/lib/_class.php on line 66 Notice: Use of undefined constant kc - assumed 'kc' in /home/cms20/www/AceMTcounter/lib/_class.php on line 66 Notice: Use of undefined constant ko - assumed 'ko' in /home/cms20/www/AceMTcounter/lib/_class.php on line 68 Notice: Use of undefined constant kc - assumed 'kc' in /home/cms20/www/AceMTcounter/lib/_class.php on line 69 Notice: Use of undefined constant kc - assumed 'kc'
이런 에러들도 있습니다ㅜㅠ
설정이 잘못된건지 소스상의 문제인지ㅜ 어느 부분을 봐야할지 도와주세요ㅠ
@//변종원(웅파)
inclue한 class파일에서 $GET을 PRINT_R()로 찍어보니 배열에 값은 다 들어 있었습니다
connect파일에서 mysql DB설정도 해주었구요
에러코드에 나온 부분은 확인해보았는데 왜 안되는지 모르겠습니다 흑ㅠ
index.php 열어서
ENVIRONMENT 상수값을 production 으로 설정해보세요.
해당 부분들은 에러가 아니라 notice입니다. 변수를 미리 선언하지 않고 사용해서 나오는 notice입니다.
@//변종원(웅파)
index.php파일에서 production으로 변경해봤는데 화면상에 변화는 없었습니다.
똑같은 에러더라구요
변수를 미리 선언하지 않아서 나오는 notice라고 하셨는데 그러면 ci에 적용할땐 따로 선언해주는 부분이있나요?
ci가 아닌 다른 시스템에 적용되어있는 모듈인데 다른쪽에서는 잘 돌아가고 있어서요 헷갈립니다ㅋㅠ
@함박눈 혹시 DB 연결에 문제가 있는건 아닌가요?
@//한대승(불의회상)
저도 db설정이나 include에 문제가 있을거라고 생각하는데 db설정은 잘 되어있습니다
$conn = mysql_connect('서버주소','아이디','비밀번호')
mysql_select_db("아이디", $conn);
연결정보는 문제없구요
include는 이런식으로 하면 문제 없는건가요?
require_once($_SERVER['DOCUMENT_ROOT']."/AceMTcounter/_AceMTcounter.php");
@함박눈 에러 메시지는 DB쪽 문제 처럼 보이는데요.
mysql_fetch_row() expects parameter 1 to be resource
함박눈/ ci는 변수 선언 미리 하지 않고 바로 호출하면 notice 나옵니다.
@//한대승(불의회상)
쿼리문이나 소스상에 문제가 있나봐요 흑ㅠ
sql 위주로 다시 한번 봐바야겟어요..@_@
뭔가 include 를 덜하신 것 같네요.
kc 라는 상수도 없고 mysql도 연결 안된 것 같습니다.