I ran across two problems, first was mainly because of the development environment (using a different port than 80) and NextGen Gallery is sripping the port out of the url.
i change the following function to make it wordk with a custom port.
(nextgen-gallery\products\photocrati_nextgen\modules\router\mixin.url_manipulation.php)
function construct_url_from_parts($parts)
{
$retval = $this->object->join_paths(
isset($parts['scheme']) && $parts['host'] ?
"{$parts['scheme']}://{$parts['host']}".(isset($parts['port']) ? ':'.$parts['port'] : '') : '',
isset($parts['path']) ? $parts['path'] : ''
);
if (isset($parts['query']) && $parts['query']) $retval .= "?{$parts['query']}";
return $retval;
}
and the second problem was when no querystring was present (home page)
the following fixed that problem for me
(nextgen-gallery\products\photocrati_nextgen\modules\router\class.router.php )
function get_querystring()
{
return isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : null ;
}