제쯔보드 BoardZeZZ PE 1.0.2
첨부파일 https://imweb.eond.com/cgi/430999

설치환경

XAMPP

php7.4.


기존 배포본 지원 버전 php4.


오류

1. 


Warning: Use of undefined constant mon - assumed 'mon' (this will throw an Error in a future version of PHP) in D:\web\eond\dev\bzpe\modules\env.inc.php on line 5

Warning: Use of undefined constant mday - assumed 'mday' (this will throw an Error in a future version of PHP) in D:\web\eond\dev\bzpe\modules\env.inc.php on line 5

Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in D:\web\eond\dev\bzpe\modules\env.inc.php on line 5

Fatal error: Uncaught Error: Call to undefined function split() in D:\web\eond\dev\bzpe\modules\env.inc.php:8 Stack trace: #0 D:\web\eond\dev\bzpe\setup.php(2): include() #1 {main} thrown in D:\web\eond\dev\bzpe\modules\env.inc.php on line 8 


해결방법

bzpe/modules/env.inc.php

$TODAYSTART = mktime(0,0,0,$tmptime['mon'],$tmptime['mday'],$tmptime['year']);

참조 : https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_function&wr_id=325465 

$_POST[name]

$_POST['name']

http://php.net/manual/en/language.types.string.php
http://php.net/manual/en/language.types.array.php 


2. 


Fatal error: Uncaught Error: Call to undefined function split() in D:\web\eond\dev\bzpe\modules\env.inc.php:7 Stack trace: #0 D:\web\eond\dev\bzpe\setup.php(2): include() #1 {main} thrown in D:\web\eond\dev\bzpe\modules\env.inc.php on line 7 

참조 : https://github.com/Needlworks/Textcube/issues/1845 


bzpe/modules/env.inc.php

explode 로 변경


3.



Notice: Undefined variable: hostname in D:\web\eond\dev\bzpe\setup.php on line 81

Notice: Undefined variable: username in D:\web\eond\dev\bzpe\setup.php on line 82

Notice: Undefined variable: userpassword in D:\web\eond\dev\bzpe\setup.php on line 83

Notice: Undefined variable: databasename in D:\web\eond\dev\bzpe\setup.php on line 84

Notice: Undefined variable: act in D:\web\eond\dev\bzpe\setup.php on line 88

Notice: Undefined variable: conn in D:\web\eond\dev\bzpe\setup.php on line 346 


bzpe/modules/env.inc.php

$hostname='localhost';
$username = 'eond';
$userpassword = 'password';
$databasename = 'eond';

직접 코드 추가

4. 

Notice: Undefined variable: act in D:\web\eond\dev\bzpe\setup.php on line 88

Notice: Undefined variable: conn in D:\web\eond\dev\bzpe\setup.php on line 346 

$act = 's2setup';

직접 추가.


5. 

Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 120 


참조 : https://stackoverflow.com/questions/26595886/warning-mysqli-select-db-expects-exactly-2-parameters-1-given-in-c/26595918 

직접추가1. bzpe/modules/env.inc.php

$con = mysqli_connect($hostname, $username, $userpassword);

직접추가2. setup.php

if(mysqli_select_db($con, $databasename)) {

6. 

Fatal error: Uncaught Error: Call to undefined function mysqli_list_tables() in D:\web\eond\dev\bzpe\setup.php:158 Stack trace: #0 {main} thrown in D:\web\eond\dev\bzpe\setup.php on line 158 

참조 : https://stackoverflow.com/questions/13382571/what-is-the-alternate-function-mysql-list-tables-in-php-5 

if (!function_exists("mysqli_list_tables")){
   function mysqli_list_tables($databasename, $dbconnect=null){
      $sql = "SHOW TABLES FROM $databasename";
      $result = mysqli_query($sql);
      return $result;
   }
}

7.

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\modules\env.inc.php on line 21

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in D:\web\eond\dev\bzpe\setup.php on line 159

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 166

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 166

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 167

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 175

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 175

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 176

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 187

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 187

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 188

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 197

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 197

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 198

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 208

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 208

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 209

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 218

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 218

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 219

Notice: Undefined variable: table_exists in D:\web\eond\dev\bzpe\setup.php on line 237

Notice: Trying to access array offset on value of type null in D:\web\eond\dev\bzpe\setup.php on line 237

Warning: mysqli_query() expects at least 2 parameters, 1 given in D:\web\eond\dev\bzpe\setup.php on line 238 

if (!function_exists("mysqli_list_tables")){
   function mysqli_list_tables($databasename, $dbconnect=null){
      $hostname='localhost';
      $username = 'eond';
      $userpassword = 'password';
      $databasename = 'eond';
      $con = mysqli_connect($hostname, $username, $userpassword);       
      $sql = "SHOW TABLES FROM $databasename";
      $result = mysqli_query($con, $sql);
      return $result;
   }
}

6번 코드를 수정함.

참조 : 

https://cnpnote.tistory.com/entry/%EC%A0%95%EC%9D%98%EB%90%98%EC%A7%80-%EC%95%8A%EC%9D%80-%ED%95%A8%EC%88%98-mysqlconnect 


8. 

Fatal error: Uncaught Error: Call to undefined function mysqli_tablename() in D:\web\eond\dev\bzpe\setup.php:161 Stack trace: #0 {main} thrown in D:\web\eond\dev\bzpe\setup.php on line 161 


https://github.com/codingeverybody/codingyahac/issues/142


포기...2020.04.16 03.53 am



코멘트 0
접기/펴기 | 댓글 새로고침
 
 
Total 20 articles in 1 / 1 pages
번호 제목 제목 조회 수 날짜날짜
20 [게시판] navyism@board v.3.1.9 파일 110 2017/10/31 0
19 [채팅] AJAX Chat 파일 168 2019/03/18 0
18 비밀글 미니위니 플래시 갤러리 0.31 1277 2007/08/31 0
현재글 [게시판] 제쯔보드 BoardZeZZ PE 1.0.2 1291 2020/04/16 0
16 [갤러리] 미니위니 플래시 갤러리 0.31 3930 2013/03/02 0
15 [기타] 비밀글 Space Checker 수정 버전 [2] 6141 2007/09/21 0
14 웹 즐겨찾기 파일 7619 2009/01/12 0
13 [갤러리] 위쯔님이 만든 로모 갤러리 파일 8528 2007/08/31 0
12 [카운터] 짝퉁 카운터 파일 8923 2009/01/23 0
11 [게시판] 미니위니 talk 게시판 메모와 멤버 부분 파일 8973 2005/10/26 96
10 [배경음악] 아쿠아 앰프, 스틱스WMP 파일 9057 2009/01/23 0
9 디렉토리 내 이미지 출력 소스 파일 9452 2007/08/31 0
8 [갤러리] photogallery 1.3 파일 [1] 9485 2009/01/30 0
7 [기타] 웹 이미지 탐색기 (by navyism) 파일 9837 2005/09/20 102
6 [기타] 웹 디렉토리 익스플로러 ver 0.1 (by WOWpc) 파일 10645 2005/09/20 83
5 [기타] PHP 웹탐색기 nDir v0.9.1 10660 2007/09/17 0
4 [메모] 서풍님의 monologue (짝퉁님 수정) 파일 10781 2008/07/21 0
3 [기타] PHP 웹FTP nFTP v0.9 12695 2007/09/17 0
2 [기타] 계정사용량 알아보는 프로그램, Space Checker 파일 14176 2007/09/21 1
1 [갤러리] PHP로 구현되는 앨범, 35mm Slide Gallery v6.0 파일 84269 2007/08/31 0

해시태그 디렉터리

지금 이순간

오늘의 핫게시물