MySQL 5.5.x 버젼 사용할때 에러가 발생합니다.

· 15년 전 · 4392 · 4
error.JPG
게시판 글 작성할때 위의 그림처럼 에러가 발생합니다. 그러나 데이터는 저장됩니다.


그누보드 처음 설치할때 테이블 생성시 아래 에러가 발생하지만 테이블은 만들어 집니다.

Notice: Undefined index: path in C:\xampp\htdocs\utf8\config.php on line 10

Notice: Undefined index: path in C:\xampp\htdocs\utf8\config.php on line 12

Notice: Undefined index: path in C:\xampp\htdocs\utf8\config.php on line 15

Notice: Undefined index: path in C:\xampp\htdocs\utf8\config.php on line 18

Notice: Undefined index: path in C:\xampp\htdocs\utf8\config.php on line 21

Notice: Undefined index: path in C:\xampp\htdocs\utf8\config.php on line 24

Notice: Use of undefined constant mysql_host - assumed 'mysql_host' in C:\xampp\htdocs\utf8\install\install_db.php on line 25

Notice: Use of undefined constant mysql_user - assumed 'mysql_user' in C:\xampp\htdocs\utf8\install\install_db.php on line 26

Notice: Use of undefined constant mysql_pass - assumed 'mysql_pass' in C:\xampp\htdocs\utf8\install\install_db.php on line 27

Notice: Use of undefined constant mysql_db - assumed 'mysql_db' in C:\xampp\htdocs\utf8\install\install_db.php on line 28

Notice: Use of undefined constant admin_id - assumed 'admin_id' in C:\xampp\htdocs\utf8\install\install_db.php on line 29

Notice: Use of undefined constant admin_pass - assumed 'admin_pass' in C:\xampp\htdocs\utf8\install\install_db.php on line 30

Notice: Use of undefined constant admin_name - assumed 'admin_name' in C:\xampp\htdocs\utf8\install\install_db.php on line 31

Notice: Use of undefined constant admin_email - assumed 'admin_email' in C:\xampp\htdocs\utf8\install\install_db.php on line 32

Notice: Use of undefined constant charset - assumed 'charset' in C:\xampp\htdocs\utf8\install\install_db.php on line 34

Notice: Use of undefined constant charset - assumed 'charset' in C:\xampp\htdocs\utf8\install\install_db.php on line 43


회원 가입 정보를 입력하고 확인 클릭시 아래 에러가 발생합니다. 그러나 데이터는 저장됩니다.

객체 없음!
요청한 URL을 이 서버에서 찾을 수 없습니다. URL을 직접 입력하셨다면 바르게 입력하셨는지 확인하시고 다시 시도하시기 바랍니다.

만약 이것이 서버 오류라고 생각되면, 웹 관리자에게 연락하시기 바랍니다.

Error 404
localhost
2011-01-30 ¿ÀÀü 1:08:58
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:27:00 MySQL에서 이동 됨]</div>

첨부파일

error.JPG (18.4 KB)
0회 2011-01-30 01:43
|

댓글 4개

설치 환경입니다.(윈도우 XP)
Apache 2.2.17
MySQL 5.5.8
PHP 5.3.5
phpMyAdmin 3.3.9
php 5.3.x 버젼부터는 아마도 배열사용시 상수에 대한 처리를 좀더 엄격하게 처리하는 듯 합니다.
예를들어 $array[var] 라는 배열이 사용되었을때 정석적인 표기는 $array['var'] 이어야 합니다.
왜냐하면 $array 배열에 사용된 var 인자가 상수인지 순수한 문자열인지 변수나 상수가 포함된 문자열인지 모르기 때문입니다.

$array[var] 는 var라는 상수를 먼저 찾게되므로 $array['var'] 로 표기해야 원하는 결과를 얻어낼 수 있구요.. $array["var"] 는 "..." 안에 변수나 상수가 포함되어 있는지도 체크하므로 올바른 표기는 아닙니다. 물론 필요한 경우는 있겠지만요..

에러메세지를 보니 아마도 $배열[mysql_user] 와 같은 표기가 있는 것 같은데, mysql_user 라는 상수가 정의되지 않았는데 사용되고 있으니 $배열['mysql_user'] 로 assumed 된다고 말하고 있네요..
즉, 니가 원하는게 mysql_user 라는 상수가 아니라 'mysql_user' 라는 문자열아니냐 라고 묻고 있습니다.

Notice 레벨의 에러이므로 데이터 Insert 에는 지장이 없습니다.
Notice 레벨의 에러도 무시하려면 error_reporting 관련 설정을 참고해 보세요.
답변 감사 드립니다. ^^
xampp 에 php.ini error_level 부분 살펴보시고 옵션 변경 (주석참고) 하시면 notice는 에러로 안뜹니다.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
15년 전 조회 2,148
15년 전 조회 1,897
15년 전 조회 1,443
15년 전 조회 1,277
15년 전 조회 4,723
15년 전 조회 3,100
15년 전 조회 1,450
15년 전 조회 1,111
15년 전 조회 1,743
15년 전 조회 1,994
15년 전 조회 1,802
15년 전 조회 1,224
15년 전 조회 2,205
15년 전 조회 3,526
15년 전 조회 1,673
15년 전 조회 1,591
15년 전 조회 1,475
15년 전 조회 1,280
15년 전 조회 1,120
15년 전 조회 1,220
15년 전 조회 2,379
15년 전 조회 1,442
15년 전 조회 1,783
15년 전 조회 4,007
15년 전 조회 1,718
15년 전 조회 1,878
15년 전 조회 1,588
15년 전 조회 1,556
15년 전 조회 2,161
15년 전 조회 1,952
15년 전 조회 1,510
15년 전 조회 1,839
15년 전 조회 1,847
15년 전 조회 2,008
15년 전 조회 1,847
15년 전 조회 1,638
15년 전 조회 2,241
15년 전 조회 1,480
15년 전 조회 1,459
15년 전 조회 1,415
15년 전 조회 1,583
15년 전 조회 1,903
15년 전 조회 1,676
15년 전 조회 1,945
15년 전 조회 1,865
15년 전 조회 4,362
15년 전 조회 2,092
15년 전 조회 1,631
15년 전 조회 1,718
15년 전 조회 4,393
15년 전 조회 2,287
15년 전 조회 1,470
15년 전 조회 1,862
15년 전 조회 1,354
15년 전 조회 1,967
15년 전 조회 1,633
15년 전 조회 3,398
15년 전 조회 1,276
15년 전 조회 1,622
15년 전 조회 3,467
15년 전 조회 1,467
15년 전 조회 1,505
15년 전 조회 1,729
15년 전 조회 1,733
15년 전 조회 1,396
15년 전 조회 2,978
15년 전 조회 1,459
15년 전 조회 1,838
15년 전 조회 966
15년 전 조회 1,712
15년 전 조회 1,670
15년 전 조회 1,768
15년 전 조회 3,570
15년 전 조회 1,203
15년 전 조회 1,473
15년 전 조회 1,544
15년 전 조회 2,048
15년 전 조회 1,980
15년 전 조회 2,974
15년 전 조회 2,384
15년 전 조회 1,928
15년 전 조회 2,160
15년 전 조회 3,729
15년 전 조회 2,366
15년 전 조회 1,865
15년 전 조회 1,952
15년 전 조회 1,665
15년 전 조회 1,545
15년 전 조회 1,484
15년 전 조회 1,898
15년 전 조회 1,446
15년 전 조회 1,847
15년 전 조회 1,559
15년 전 조회 1,391
15년 전 조회 1,646
15년 전 조회 1,766
15년 전 조회 1,529
15년 전 조회 2,022
15년 전 조회 1,756
15년 전 조회 2,037