Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php error using $cfg['ServerDefault'] = 0; on 5.0 #15761

Closed
stultitiophobia opened this issue Jan 8, 2020 · 7 comments
Closed

php error using $cfg['ServerDefault'] = 0; on 5.0 #15761

stultitiophobia opened this issue Jan 8, 2020 · 7 comments
Assignees
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
Milestone

Comments

@stultitiophobia
Copy link

stultitiophobia commented Jan 8, 2020

after copying an working existing config.inc.php from phpMyAdmin 4.9.4 to the phpMyAdmin 5.0.1 directory phpMyAdmin 5.0.1 shows only a white page.
Running php index.php shows some error - perhaps that may help.

Running phpMyAdmin 5.0.1 without config works - generating a config from /setup leads to the same error...

[/share/Web/phpMyAdmin5] # /usr/local/apache/bin/php7.3 -v
PHP 7.3.7 (cli) (built: Dec  6 2019 05:00:41) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies

[/share/Web/phpMyAdmin5] # /usr/local/apache/bin/php7.3 index.php
Fatal error: Uncaught TypeError: chdir() expects parameter 1 to be a valid path, null given in libraries/classes/Response.php:506
Stack trace:
#0 libraries/classes/Response.php(506): chdir(NULL)
#1 [internal function]: PhpMyAdmin\Response->response()
#2 {main}
  thrown in libraries/classes/Response.php on line 506
@williamdes williamdes added the Bug A problem or regression with an existing feature label Jan 8, 2020
@williamdes williamdes added this to Needs triage in issues via automation Jan 8, 2020
@williamdes
Copy link
Member

Running phpMyAdmin 5.0.1 without config works - generating a config from /setup leads to the same error...

Thank you for the report, I will look into it ASAP

@williamdes williamdes self-assigned this Jan 8, 2020
@williamdes williamdes moved this from Needs triage to to be fixed soon in issues Jan 8, 2020
@GingerAdonis
Copy link

Had the same error. Work-around for me was changing $cfg['ServerDefault'] = 0; to $cfg['ServerDefault'] = 1;.

@williamdes
Copy link
Member

Thank you so much @JarnoVgr I could reproduce this issue thanks to your comment !

@williamdes williamdes added this to the 5.0.2 milestone Jan 13, 2020
@stultitiophobia
Copy link
Author

I can confirm this, thank you !

@williamdes
Copy link
Member

Also triggered #14312

stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: Argument 1 passed to PhpMyAdmin\CheckUserPrivileges::__construct() must be an instance of PhpMyAdmin\DatabaseInterface, null given, called in libraries/classes/Navigation/NavigationTree.php on line 113 and defined in libraries/classes/CheckUserPrivileges.php:32"
172.21.0.14 -  14/Jan/2020:11:46:32 +0000 "GET /@phpmyadmin/theREALphpMyAdminREPO/index.php" 500
stderr: "Stack trace:"
stderr: "#0 libraries/classes/Navigation/NavigationTree.php(113): PhpMyAdmin\CheckUserPrivileges->__construct(NULL)"
stderr: "#1 libraries/classes/Navigation/Navigation.php(61): PhpMyAdmin\Navigation\NavigationTree->__construct(Object(PhpMyAdmin\Template), NULL)"
stderr: "#2 libraries/classes/Header.php(160): PhpMyAdmin\Navigation\Navigation->__construct(Object(PhpMyAdmin\Template), Object(PhpMyAdmin\Relation), NULL)"
stderr: "#3 libraries/classes/Response.php(17..."
stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: chdir() expects parameter 1 to be a valid path, null given in libraries/classes/Response.php:506"
stderr: "Stack trace:"
stderr: "#0 libraries/classes/Response.php(506): chdir(NULL)"
stderr: "#1 [internal function]: PhpMyAdmin\Response->response()"
stderr: "#2 {main}"
stderr: "  thrown in libraries/classes/Response.php on line 506"

@williamdes
Copy link
Member

a686ff8 ?

@MauricioFauth MauricioFauth added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Jan 15, 2020
@williamdes williamdes changed the title after copying an working existing config from phpMyAdmin 4.9.4 to phpMyAdmin 5.0.1 phpMyAdmin 5.0.1 stops working php error using $cfg['ServerDefault'] = 0; on 5.0 Jan 15, 2020
williamdes added a commit that referenced this issue Jan 15, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from to be fixed soon to Closed Jan 15, 2020
williamdes added a commit that referenced this issue Jan 15, 2020
…= 0; on 5.1

Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes
Copy link
Member

@JarnoVgr @trendchiller you can apply 876b6e1 if you want to fix the issue before the snapshot is updated (phpMyAdmin 5.0+snapshot)

The fix will be part of the next release

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
issues
  
Closed
Development

No branches or pull requests

4 participants