#4159 (ok 4.1.0-rc1) bug with navigation between database and table filter

4.0.9
fixed
Marc Delisle
None
1
2013-12-12
2013-11-21
Mathieu Rochette
No

this one was not so easy to reproduce, here are the steps:

you need to have at least two database, each with a few tables

  • log in to phpmyadmin
  • click the '+' button in front of database1
  • click the '+' button in front of 'Tables'
  • enter a few letters in the filter area
  • click the '+' button in front of database2

this error appears :

Fatal error: Call to a member function getPresence() on a non-object in /datas/www/vhost/phpmyadmin/4.0.9/libraries/navigation/NavigationTree.class.php on line 700

Discussion

  • slimtim
    slimtim
    2013-11-21

    I was able to reproduce this bug by following the steps above if database2 was empty (i.e. no tables, views, etc).

    I submitted a pull request to fix this bug:
    https://github.com/phpmyadmin/phpmyadmin/pull/766

     
  • Marc Delisle
    Marc Delisle
    2013-11-22

    On which PHP version are you able to reproduce this problem?

     
  • Marc Delisle
    Marc Delisle
    2013-11-22

    • summary: bug with navigation between database and table filter --> (ok 4.1.0-beta3) bug with navigation between database and table filter
    • status: open --> resolved
    • assigned_to: Marc Delisle
    • Priority: 5 --> 1
     
  • Marc Delisle
    Marc Delisle
    2013-11-22

    Pull request accepted, thanks.

     
  • Marc Delisle
    Marc Delisle
    2013-11-23

    • summary: (ok 4.1.0-beta3) bug with navigation between database and table filter --> (ok 4.1.0-rc1) bug with navigation between database and table filter
     
  • Marc Delisle
    Marc Delisle
    2013-12-12

    • Status: resolved --> fixed