phpmyadmin顯示“Warning in ./libraries/config/FormDisplay.php#660”的解決辦法(升級(jí)完 PHP 7.3.0 之后phpmyadmin提示錯(cuò)誤)
[重要通告]如您遇疑難雜癥,本站支持知識(shí)付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時(shí)間哦!
今天客戶打電話說phpmyadmin不可以用了,我說咋回事,客戶說裝了寶塔,裝了php7.3然后安裝了phpmyadmin4.6,然后導(dǎo)入數(shù)據(jù),出現(xiàn)了錯(cuò)誤,具體沒說清楚,有圖有真相吧,我說你發(fā)圖,咱看一下,啥問題;具體請(qǐng)看圖;
看提示,是兼容問題,其實(shí)呢,也是兼容問題,就是版本太高了,需要我們更換一下phmyadmin版本即可;上面錯(cuò)誤給出的結(jié)果是;
提示行這個(gè)地方把 continue 改成 continue 2 應(yīng)該就可以,兼容性問題,目前phpmyadmin好像和php 7.3 未完全兼容
其實(shí)更建議大家用PHP7.2或者以下的版本,比如5.6,7.0這樣,phpmyadmin建議使用4.4-4.6的版本,這都是成熟的版本,新的版本固然好,但并不一定適合你,建議還是使用適合的版本;
PS:延伸閱讀
Warning?in ./libraries/config/FormDisplay.php#661
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?Backtrace
./vendor/composer/ClassLoader.php#414: include()
./vendor/composer/ClassLoader.php#301: Composer\Autoload\includeFile(string '/home/web/mysql/vendor/composer/../..//libraries/config/FormDisplay.php')
Composer\Autoload\ClassLoader->loadClass(string 'PMA\\libraries\\config\\FormDisplay')
./libraries/config/PageSettings.php#76: spl_autoload_call(string 'PMA\\libraries\\config\\FormDisplay')
./libraries/config/PageSettings.php#230: PMA\libraries\config\PageSettings->__construct(
string 'Navi_panel',
string 'pma_navigation_settings',
)
./libraries/navigation/Navigation.php#66: PMA\libraries\config\PageSettings::getNaviSettings()
./libraries/Header.php#425: PMA\libraries\navigation\Navigation->getDisplay()
./libraries/Response.php#260: PMA\libraries\Header->getDisplay()
./libraries/Response.php#273: PMA\libraries\Response->_getDisplay()
./libraries/Response.php#432: PMA\libraries\Response->_htmlResponse()
PMA\libraries\Response->response()
有時(shí)候也會(huì)出現(xiàn)661的錯(cuò)誤,其實(shí)都是兼容問題,建議大家都更換一下php版本基本可以解決,如果是寶塔,建議重啟下服務(wù)器,注意,是服務(wù)器,不是面板哦;
問題未解決?付費(fèi)解決問題加Q或微信 2589053300 (即Q號(hào)又微信號(hào))右上方掃一掃可加博主微信
所寫所說,是心之所感,思之所悟,行之所得;文當(dāng)無敷衍,落筆求簡(jiǎn)潔。 以所舍,求所獲;有所依,方所成!