look what message displayed to me the script:
Notice: Undefined index: debug_mode in /users/perfect/public_html/gallery/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query
here is that line:
88. return $result;
89. }
90.
91. // Error message if a query failed
92. function db_error($the_error)
93. {
94. global $CONFIG;
95.
96. if (!$CONFIG['debug_mode']) {
97. cpg_die(CRITICAL_ERROR, 'There was an error while processing a database query', __FILE__, __LINE__);
98. } else {
99.
100. $the_error .= "\n\nmySQL error: ".mysql_error()."\n";
101.
102. $out = "<br />There was an error while processing a database query.<br /><br/>
103. <form name='mysql'><textarea rows=\"8\" cols=\"60\">".htmlspecialchars($the_error)."</textarea></form>";
104.
105. cpg_die(CRITICAL_ERROR, $out, __FILE__, __LINE__);
Don't install 1.3.2, install 1.4.4