It seems that the first time i visit your page, there is not connection to your database.
The first thing i would like to try is re-include the connection file in your menu.php. At the top of your menu.php file, place this line under the <?php tag:
require_once("../../Connections/localhost.php");