Its hard to say since there have been modifications. The code works out of the box, so it is something with the updates you've made. If you search in the code for $_SESSION['gallery'] =, that should give you all the places where the gallery info is set. It seems like that session variable is never getting set or is getting overwritten. The admin keys off of that variable to get all of the gallery variables.