We've got a couple database servers with a a lot of databases (600+). Setting MaxNavigationItems to something high like 500 displays the PHP error below. Lowering it to something like 100 allows the page to load, if you start paging through the list you'll eventually get the same error. Lowering it more will cause the error to appear at an even later page. Even the default will display the error at some point. Not sure if it matters but most of the databases are grouped (eg. projectname_dev and projectname_staging). MySQL servers with fewer databases (125) do not exhibit the problem at all.
( ! ) Fatal error: Call to a member function getPresence() on a non-object in /var/.../libraries/navigation/NavigationTree.class.php on line 1046
Call Stack
# Time Memory Function Location
1 0.1505 11898000 PMA_OutputBuffering::stop( ) ../OutputBuffering.class.php:0
2 0.1505 11876568 PMA_Response::response( ) ../OutputBuffering.class.php:117
3 0.1506 11876568 PMA_Response->_htmlResponse( ) ../Response.class.php:370
4 0.1506 11876568 PMA_Response->_getDisplay( ) ../Response.class.php:273
5 0.1506 11876568 PMA_Header->getDisplay( ) ../Response.class.php:260
6 0.1514 11884536 PMA_Navigation->getDisplay( ) ../Header.class.php:367
7 0.1525 11890288 PMA_NavigationTree->renderState( ) ../Navigation.class.php:54
8 1.4586 15630280 PMA_NavigationTree->_renderNode( ) ../NavigationTree.class.php:646
9 1.4590 15643216 PMA_NavigationTree->_renderNode( ) ../NavigationTree.class.php:973
10 1.4623 15658720 PMA_NavigationTree->_fastFilterHtml( ) ../NavigationTree.class.php:980
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny16
Still an issue on 4.0.4.1
Still an issue on 4.0.5.
Due to database name containing one of these words : tables, views, fonctions, procédures, events. See code below.
Example of problematic database name : "ucem_tables_et_chaises_prod".
Patch : add && method_exists($node->realParent(),'getPresence') in libraries/navigation/NavigationTree.class.php :
Patch accepted, thanks:
https://github.com/phpmyadmin/phpmyadmin/commit/a555959ed5a0b932521c1e3ea5e5b3c991225427