Lines 329-337 is plog-functions.php should be as follows:
} else { if ($level == "collection"){ return $_SERVER["PHP_SELF"].'?level=collection&id='.$id; } else if ($level == "album") { return $_SERVER["PHP_SELF"].'?level=album&id='.$id; } else if ($level == "picture") { return $_SERVER["PHP_SELF"].'?level=picture&id='.$id; }; }
atleast this is what i had to do when i changed the file name of the file that integrated the gallery... (it was put in such a way that index.php was the default assumed filename of the gallery script)
OR
change the above lines to just this (its less code and still works fine):