安装sh404和xmap之后,在后台,进入xmap的时候,会遇到如下的错误

Fatal error: Cannot redeclare getmenutitle() (previously declared in YOUR SITE ROOT/administrator/components/com_sh404sef/sh404sef.class.php:2036) in YOUR SITE ROOT/administrator/components/com_xmap/classes/XmapAdmin.php on line 385

解决方案如下 File Path: /administrator/components/com_xmap/classes/XmapAdmin.php

Change

if (!$node->name = getMenuTitle($menutype,@$menu->module) ) {
	$node->name = $menutype;
}
to
if (!$node->name = getMenuTitleXMAP($menutype,@$menu->module) ) {
	$node->name = $menutype;
}

Also in this file Change

function getMenuTitle($menutype,$module='mod_mainmenu') {
	$database = &JFactory::getDBO();
	$query = "SELECT title FROM #__modules WHERE published='1' AND module ='$module' AND params LIKE '%menutype=". $menutype ."%'";
to
function getMenuTitleXMAP($menutype,$module='mod_mainmenu') {
	$database = &JFactory::getDBO();
	$query = "SELECT title FROM #__modules WHERE published='1' AND module ='$module' AND params LIKE '%menutype=". $menutype ."%'";

新版的xmap这个问题已经解决了,顺便上传一个最新版本的xmap。