前の日 / 次の日 / 最新 / 2012-05

XINUJP - ChangeWebLog / 2012-05-03

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

2023 : 01 02 03 04 05 06 07 08 09 10 11 12
2022 : 01 02 03 04 05 06 07 08 09 10 11 12
2021 : 01 02 03 04 05 06 07 08 09 10 11 12
2020 : 01 02 03 04 05 06 07 08 09 10 11 12
2019 : 01 02 03 04 05 06 07 08 09 10 11 12
2018 : 01 02 03 04 05 06 07 08 09 10 11 12
2017 : 01 02 03 04 05 06 07 08 09 10 11 12
2016 : 01 02 03 04 05 06 07 08 09 10 11 12
2015 : 01 02 03 04 05 06 07 08 09 10 11 12
2014 : 01 02 03 04 05 06 07 08 09 10 11 12
2013 : 01 02 03 04 05 06 07 08 09 10 11 12
2012 : 01 02 03 04 05 06 07 08 09 10 11 12
2011 : 01 02 03 04 05 06 07 08 09 10 11 12
2010 : 01 02 03 04 05 06 07 08 09 10 11 12
2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12

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

最終更新時間: 2023-12-03 15:34