Menu

#4775 array_unshift warnings in RecentFavoriteTable.class.php

4.3.10
works-for-me
nobody
None
Normal
2015-02-24
2015-02-22
nobswolf
No

Around line 285 in RecentFavoriteTable.class.php throws lots of warnings every time you choose a table because $this->_tables is not an array but NULL.

Simple workaround: Add is_array($this->_tables) && (...) to the if-condition, but I guess the real reason for the problem is somewhere else.

Discussion

  • Madhura Jayaratne

    Do you have the pma_recent and pma_favorite tables configured in config.inc.php?

     
  • nobswolf

    nobswolf - 2015-02-23

    The tables were all there and defined in config.inc.php . But I just noticed I have several tables twice, one with prefix pma_ and the other with pma__ . I just tried to set the "recent" in the config to pma__recent and now it works fine without the workaround.

    Can you explain what those "double" tables are good for? My system is quite old. I upgraded it since ancient times. Just in case this does matter.

     

    Last edit: nobswolf 2015-02-23
    • Marc Delisle

      Marc Delisle - 2015-02-24

      The default table naming was with one underscore and it changed at some point for the double underscore. The important thing is to avoid a mismatch between what is configured (config.inc.php) and the real table names.

       
  • Marc Delisle

    Marc Delisle - 2015-02-24
    • status: open --> works-for-me