で、まさに以下の症状となった。
http://d.hatena.ne.jp/mkt23/20110428/1303955493
何もしないでXOOPS Cube Legacy 2.2 に Altsys をインストールしようとすると、画面下のほうにいろいろ出る。
Notice [PHP]: Use of undefined constant _LANGCODE - assumed '_LANGCODE' in file class/template.php line 85
Notice [PHP]: Use of undefined constant _CHARSET - assumed '_CHARSET' in file class/template.php line 86
Notice [PHP]: Use of undefined constant _LANGCODE - assumed '_LANGCODE' in file modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php line 123
Notice [PHP]: Use of undefined constant _CHARSET - assumed '_CHARSET' in file modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php line 124
Notice [PHP]: Use of undefined constant _CHARSET - assumed '_CHARSET' in file modules/legacyRender/kernel/Legacy_RenderTarget.class.php line 25
$this->_loadLanguage('legacy', 'setting');
この1行を、html/preload/SetupAltsysLangMgr.class.php の function loadGlobalMessageCatalog() に以下のように追加してください。
function loadGlobalMessageCatalog()
{
/* if (!$this->_loadFile(XOOPS_ROOT_PATH . "/modules/legacy/language/" . $this->mLanguageName . "/global.php")) {
$this->_loadFile(XOOPS_ROOT_PATH . "/modules/legacy/language/english/global.php");
} */
$this->_loadLanguage( 'legacy' , 'global' ) ;
$this->_loadLanguage( 'legacy' , 'setting' ) ;
//
// Now, if XOOPS_USE_MULTIBYTES isn't defined, set zero to it.
//
if (!defined("XOOPS_USE_MULTIBYTES")) {
define("XOOPS_USE_MULTIBYTES", 0);
}
}
ちょいメモ
xoops2.2 に altsys0.7 いれたら Notice が出てくる.
で,
http://www.xugj.org/modules/d3forum/index.php?post_id=5968
を参考にして対応
DocRoot/preload/lang.class.php
define('_CHARSET', 'UTF-8');
define('_LANGCODE', 'ja');
?>