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

500 error on opening setup. Globals[dbi] is missing #13556

Closed
alekc opened this Issue Aug 3, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@alekc

alekc commented Aug 3, 2017

Steps to reproduce

Fetch latest version
Create setup without specifying parameters for config. I.e. this is mine:

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 4.8.0-dev setup script
 * Date: Wed, 02 Aug 2017 16:51:53 +0000
 */

/* Servers configuration */
$i = 0;

/* Server: xxx[1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'xxx';
$cfg['Servers'][$i]['host'] = 'load-balancer';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

/* Server: ccc[2] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'ccc';
$cfg['Servers'][$i]['host'] = 'load-balancer';
$cfg['Servers'][$i]['port'] = 3307;
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

/* End of servers configuration */

$cfg['blowfish_secret'] = '**********************';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['LoginCookieValidity'] = 36000;
//$cfg['CaptchaLoginPublicKey'] = '*****************';
//$cfg['CaptchaLoginPrivateKey'] = '***************************';
$cfg['LoginCookieValidityDisableWarning'] = true;
$cfg['MaxNavigationItems'] = 100;
$cfg['DisplayServersList'] = true;
$cfg['Export']['method'] = 'custom';
$cfg['Export']['sql_disable_fk'] = true;
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
?>

Go to /setup page again

Expected behaviour

I would expect to see a webpage for setup

Actual behaviour

500 error

[Thu Aug 03 17:23:48.703897 2017] [:error] [pid 28378] [client 10.2.0.1:56009] PHP Notice: Undefined index: dbi in /var/www/pma/libraries/check_user_privileges.lib.php on line 15
[Thu Aug 03 17:23:48.703948 2017] [:error] [pid 28378] [client 10.2.0.1:56009] PHP Fatal error: Call to a member function isSuperuser() on null in /var/www/pma/libraries/check_user_privileges.lib.php on line 15

Server configuration

PHP version: 5.6

phpMyAdmin version:
4.8.0-dev

@nijel nijel self-assigned this Aug 28, 2017

@nijel nijel added the bug label Aug 28, 2017

@nijel nijel added this to the 4.8.0 milestone Aug 28, 2017

@nijel nijel closed this in 78e2efc Aug 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment