phpMyAdmin DisplayResults 오류입니다.php #1226
phpmyadmin, phpmyadmin givin 경고의 모든 레코드를 표시하려고 합니다.PHPmyAdmin의 데이터베이스에 있는 테이블에 접속하려고 하면 PHPmyAdmin이 모두 크래시 되는 것 같습니다.
온라인으로 솔루션을 찾을 수 없어 도움을 요청합니다.
해결할 수 없는 문제가 있습니다.오류: ./libraries/DisplayResults의 Notice.php #1226
Notice in ./libraries/DisplayResults.php#1226
Trying to access array offset on value of type bool
Backtrace
./libraries/DisplayResults.php#1346: PMA\libraries\DisplayResults->_getTableHeadersForColumns(
array,
array,
array,
array,
array,
boolean false,
string 'SELECT * FROM `wp_options` ',
)
./libraries/DisplayResults.php#4424: PMA\libraries\DisplayResults->_getTableHeaders(
array,
array,
string 'SELECT * FROM `wp_options` ',
array,
array,
array,
boolean false,
)
./libraries/sql.lib.php#1686: PMA\libraries\DisplayResults->getTable(
,
array,
array,
boolean false,
)
./libraries/sql.lib.php#1980: PMA_getHtmlForSqlQueryResultsTable(
,
string './themes/pmahomme/img/',
NULL,
array,
boolean true,
string '137',
integer 25,
NULL,
,
array,
)
./libraries/sql.lib.php#2199: PMA_getQueryResponseForResultsReturned(
,
array,
string 'dbcc',
string 'wp_options',
NULL,
NULL,
,
string './themes/pmahomme/img/',
string '137',
integer 25,
NULL,
NULL,
NULL,
NULL,
NULL,
string 'SELECT * FROM `wp_options`',
NULL,
)
./libraries/sql.lib.php#2062: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'dbcc',
string 'wp_options',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `wp_options`',
NULL,
NULL,
)
./sql.php#221: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'dbcc',
string 'wp_options',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `wp_options`',
NULL,
NULL,
)
이것으로 해결했다
1233행의 파일 /usr/share/phpmyadmin/libraries/DisplayResults.php:
list($order_link, $sorted_header_html)
= $this->_getOrderLinkAndSortedHeaderHtml(
$fields_meta[$i], $sort_expression,
$sort_expression_nodirection, $i, $unsorted_sql_query,
$session_max_rows, $comments,
$sort_direction, $col_visib,
$col_visib[$j]
);
다음과 같은 "isset"의 새로운 검증을 삽입했습니다.
$check = (isset($col_visib[$j])) ? $col_visib[$j] : false;
하지만 그 상황에서 사용하는 건..
list($order_link, $sorted_header_html)
= $this->_getOrderLinkAndSortedHeaderHtml(
$fields_meta[$i], $sort_expression,
$sort_expression_nodirection, $i, $unsorted_sql_query,
$session_max_rows, $comments,
$sort_direction, $col_visib,
isset($col_visib[$j]) ? $col_visib[$j] : false
);
@edit 7.2보다 높은 php를 사용합니다.우리는 변할 수 있다
isset($col_visib[$j]) ? $col_visib[$j] : false
위해서
col_visib[$j] ?? false
그럼..
list($order_link, $sorted_header_html)
= $this->_getOrderLinkAndSortedHeaderHtml(
$fields_meta[$i], $sort_expression,
$sort_expression_nodirection, $i, $unsorted_sql_query,
$session_max_rows, $comments,
$sort_direction, $col_visib,
$col_visib[$j] ?? false
);
업그레이드 후에도 같은 알림이 있었습니다.php
7.2 ~ 7.4 온phpmyadmin
4.6
다음 절차로 문제를 해결했습니다.
히트하여 PPA 설치
sudo add-apt-repository ppa:phpmyadmin/ppa
여기서 문제를 확인하세요.그럼 달려라
sudo apt update
&sudo apt upgrade
- 마지막으로 아파치를 재시작합니다.
sudo systemctl restart apache2
지금 나는 달리고 있다.phpmyadmin
4.9.5 인치2 및 사라졌음을 통지
php를 업그레이드했습니다.7.2
로.7.4
phpMyAdmin의 문제는 여전히 같은 오류입니다.
저에게 가장 좋은 방법은 공식 웹사이트에 접속하는 것이었습니다.
https://www.phpmyadmin.net/
최신 버전을 다운로드하여/var/www/html
phpMyAdmin이 배치되어 복사원~/Downloads
내 최신 버전의 압축 해제:
sudo cp ~/Downloads/phpMyAdmin-5.0.4-all-languages.zip.
이전 버전이 있는지 확인하기 위해 이전 버전의 이름을 변경했습니다.
sudo mv php My Admin oldphp My Admin
그러면 새 버전의 압축을 풀어서
sudo unzip phMyAdmin-5.0.4-all-languages.지퍼
압축 해제 후 이전처럼 phpMyAdmin으로 이름을 변경했습니다.
mv phpMyAdmin-5.0.4-모든 언어 phpMyAdmin
브라우저로 테스트해 봤는데, 모두 정상적으로 작동합니다.이전 버전을 삭제한 후
sudo rm -rf oldphpMyAdmin
Ubuntu 16.04.7 LTS를 실행하고 있습니다.
언급URL : https://stackoverflow.com/questions/59038483/error-in-phpmyadmin-displayresults-php1226
'programing' 카테고리의 다른 글
커스터마이즈된HTPHeader 필드를 갖춘 JSON Post (0) | 2023.03.05 |
---|---|
JSON 오브젝트 Node.js 작성 방법 (0) | 2023.03.05 |
리액트 컴포넌트의 다른 파일에서 HTML을 렌더링하려면 어떻게 해야 합니까? (0) | 2023.03.05 |
AngularJS: JSON 개체에 텍스트 영역 바인딩이 "object-object"를 표시합니다. (0) | 2023.03.05 |
FTP 액세스 없이 Ubuntu 설치 플러그인에서 Word press를 사용합니다. (0) | 2023.03.05 |