i think the global file has become corrupted.
line 4 of that file should be:
session_start();
it should not be looking for the connection at line 4.
try uploading a fresh copy of the power gallery file from the download center.
please send a link to the session test.