最新ページ

xoops - XINUJP - ChangeWebLog

最終更新時間: 2025-01-14 10:03

2012-05-03 Thu

xoops altsys on XCL2.2 [xoops]

で、まさに以下の症状となった。
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


で、次のようにして解決。
http://sourceforge.net/apps/mediawiki/xoopscube/index.php?title=Upgrade22;ja#Altsys_.2F_.E3.83.9B.E3.83.80.E5.A1.BE.E3.83.87.E3.82.A3.E3.82.B9.E3.83.88.E3.83.AA.E3.83.93.E3.83.A5.E3.83.BC.E3.82.B7.E3.83.A7.E3.83.B3.E3.82.92.E4.BD.BF.E3.81.A3.E3.81.A6.E3.81.84.E3.82.8B.E5.A0.B4.E5.90.88.EF.BC.9A

$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);
  }
}

2011-08-31 Wed

altsys for xoops2.2 [xoops]

ちょいメモ
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');
 ?>