skip to Main Content

After I installed the latest version of PHP 7.3.4 and MySQL Community Server 8.0.15 I faced this error on my phpmyadmin 4.7.7:

Warning in .librariesconfigFormDisplay.php#661 “continue” targeting
switch is equivalent to “break”. Did you mean to use “continue 2”?

Backtrace

.vendorcomposerClassLoader.php#444: include()
.vendorcomposerClassLoader.php#322:
ComposerAutoloadincludeFile(string
‘F:appsphpMyAdminvendorcomposer/../../librariesconfigFormDisplay.php’)
ComposerAutoloadClassLoader->loadClass(string
‘PMAlibrariesconfigFormDisplay’)
.librariesconfigPageSettings.php#76: spl_autoload_call(string
‘PMAlibrariesconfigFormDisplay’)
.librariesconfigPageSettings.php#230:
PMAlibrariesconfigPageSettings->__construct( string ‘Navi_panel’,
string ‘pma_navigation_settings’, )
.librariesnavigationNavigation.php#66:
PMAlibrariesconfigPageSettings::getNaviSettings()
.librariesHeader.php#425:
PMAlibrariesnavigationNavigation->getDisplay()
.librariesResponse.php#260: PMAlibrariesHeader->getDisplay()
.librariesResponse.php#273: PMAlibrariesResponse->_getDisplay()
.librariesResponse.php#432: PMAlibrariesResponse->_htmlResponse()
PMAlibrariesResponse->response()

Anybody know how to fix this issue?

3

Answers


  1. Chosen as BEST ANSWER

    This error occurs by PHP backward-compatible.

    Updating to the latest version, for me was 4.8.5 resolved the issue.


  2. I had the same, and fixed it by editing the php script FormDisplay.php.

    On line 661, replace continue with break (keep the semi-colon).

    If you do edit, you’ll need sudo access, but back up the original one first.

    Reload the page. Hope that helps.

    Login or Signup to reply.
  3. Edit PHP script in the file FormDisplay.php
    At this line 660, I found this code in this path

    $ /usr/share/phpmyadmin/libraries/config/FormDisplay.php

    enter image description here

    case 'select':
         $successfully_validated = $this->_validateSelect(
         $_POST[$key],
         $form->getOptionValueList($system_path)
         );
         if (! $successfully_validated) {
             $this->_errors[$work_path][] = __('Incorrect value!');
             $result = false;
             continue;
        }
        break;
    

    Update it as per below suggestion

    case 'select':
         $successfully_validated = $this->_validateSelect(
         $_POST[$key],
         $form->getOptionValueList($system_path)
         );
         if (! $successfully_validated) {
             $this->_errors[$work_path][] = __('Incorrect value!');
             $result = false;
             break;
        }
        break;
    

    enter image description here

    Reload PHPMyAdmin and your issue will get resolved.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search