Just to be complete I attach you also the function written into the sitemap.class.php that cares about the sitemappages.xml, I'm starting to think that the problem is here, would you have any knowledge to find if something is wrong on it?
/**
* Function to generate sitemap pages file
* @author Jack_mcs
* @version 1.1
* @return boolean
*/
function GeneratePagesSitemap(){
$container = array();
$changefreq = GOOGLE_SITEMAP_PAGES_CHANGE_FREQ;
$priority = '.1';
include_once(DIR_WS_CLASSES . 'language.php');
$lng = new language();
$slash = substr(DIR_FS_CATALOG, 0 -1) == '/' ? 1 : 0;
$path = (($pos = strpos(DIR_FS_CATALOG, "googlesitemap")) !== FALSE) ? substr(DIR_FS_CATALOG, 0, -strlen('googlesitemap') - $slash) : DIR_FS_CATALOG;
$pages = $this->GetPagesArray($path, DIR_WS_LANGUAGES . $lng->language['directory'], $lng->language['id']);
for ($i = 0; $i < count($pages); ++$i)
{
$container[] = array('loc' => htmlspecialchars(utf8_encode($pages[$i]['filename'])),
'lastmod' => $pages[$i]['lastmod'],
'changefreq' => $changefreq,
'priority' => $priority
);
}
if ($i > 0)
return $this->GenerateSitemap($container, 'pages');
} # end function
Matteo