Skip to content

Cannot create new server - mysqli_connect() expects parameter 4 to be string, null given #16536

Closed

Description

@kckanav
Fatal error: Uncaught TypeError: mysqli_connect() expects parameter 4 to be string, null given in /nfs/bronfs/uwfs/hw00/d22/kckanav/phpMyAdmin-5.0.4-all-languages/libraries/classes/Config/Validator.php:226 Stack trace: #0 /nfs/bronfs/uwfs/hw00/d22/kckanav/phpMyAdmin-5.0.4-all-languages/libraries/classes/Config/Validator.php(226): mysqli_connect('kckanav.ovid.u....', 'root', 'allNerds12x', NULL, 1707, NULL) #1 /nfs/bronfs/uwfs/hw00/d22/kckanav/phpMyAdmin-5.0.4-all-languages/libraries/classes/Config/Validator.php(304): PhpMyAdmin\Config\Validator::testDBConnection('kckanav.ovid.u....', 1707, NULL, 'root', 'allNerds12x', 'Server') #2 [internal function]: PhpMyAdmin\Config\Validator::validateServer('Server', Array) #3 /nfs/bronfs/uwfs/hw00/d22/kckanav/phpMyAdmin-5.0.4-all-languages/libraries/classes/Config/Validator.php(142): call_user_func_array('PhpMyAdmin\\Conf...', Array) #4 /nfs/bronfs/uwfs/hw00/d22/kckanav/phpMyAdmin-5.0.4-all-languages/libraries/classes/Config/FormDisplay.php(201): PhpMyAdmin\Config\Validator::validate in /nfs/bronfs/uwfs/hw00/d22/kckanav/phpMyAdmin-5.0.4-all-languages/libraries/classes/Config/Validator.php on line 226

THIS IS THE ERROR I AM GETTING
It seems like the @mysqli_connect does not take null parameter, but on line 226 in Validator.php the 4th parameter is hard coded to be NULL.

Activity

  1. changed the title [-]Cannot create new server[/-] [+]Cannot create new server #bug[/+] on Dec 17, 2020
  2. self-assigned this
    on Jan 24, 2021
  3. added
    Bug
    on Jan 24, 2021
  4. changed the title [-]Cannot create new server #bug[/-] [+]Cannot create new server - mysqli_connect() expects parameter 4 to be string, null given[/+] on Jan 24, 2021
  5. williamdes commented on Jan 24, 2021

    @williamdes
    Member
  6. williamdes commented on Jan 24, 2021

    @williamdes
    Member

    Duplicate of #16537

  7. locked as resolved and limited conversation to collaborators on Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bugduplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions