In your galleries folder, there is a global.php file, try replacing these lines of code:
$pg_config = array(
'path' => str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
'html_prefix' => str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);
to
$temp_path = str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix));
$temp_path = substr($temp_path, strpos($temp_path,"/amused2deathorg"));
$temp_prefix = str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/';
$temp_prefix = substr($temp_prefix, strpos($temp_prefix,"/amused2deathorg"));
$pg_config = array(
'path' => $temp_path,
'html_prefix' => $temp_prefix
);