2013-11-11 phpMyAdmin login error to remote server
I have a fresh install of Ubuntu 13.10 and phpMyAdmin version 4:4.0.6-1 . I add a remote server in config.inc.php for multiple server management. But phpMyAdmin failed to login to remote server.
there are following error logs in /var/log/apache2/error.log
1
PHP Fatal error: Call to a member function getPresence() on a non-object in /usr/share/phpmyadmin/libraries/navigation/NavigationTree.class.php on line 1046
Copied!
The code of NavigationTree.class.php at 1046 are
1
1039 } else if (($node->type == Node::CONTAINER
2
1040 && ( $node->real_name == 'tables'
3
1041 || $node->real_name == 'views'
4
1042 || $node->real_name == 'functions'
5
1043 || $node->real_name == 'procedures'
6
1044 || $node->real_name == 'events')
7
1045 )
8
1046 && $node->realParent()->getPresence($node->real_name) >= (int)$GLOBALS['cfg'] ['NavigationTreeDisplayItemFilterMinimum']
9
1047 ) {
Copied!
I am not sure the root cause of this issue. But I can fix this error by adding a check for if statment
1
1039 } else if (($node->type == Node::CONTAINER
2
1040 && ( $node->realParent )
3
1041 && ( $node->real_name == 'tables'
4
1042 || $node->real_name == 'views'
5
1043 || $node->real_name == 'functions'
6
1044 || $node->real_name == 'procedures'
7
1045 || $node->real_name == 'events')
8
1046 )
9
1047 && $node->realParent()->getPresence($node->real_name) >= (int)$GLOBALS['cfg']['NavigationTreeDisplayItemFilterMinimum']
10
1048 ) {
Copied!
That's it.
最近更新 1yr ago
复制链接