XOOPSCubeLegacy​/HowToUpgrade

How to upgrade from Cube Legacy Beta series anchor.png

If your Legacy 2.1 is Beta 3-d or later, see this document.

Try it first at home! Means that it's preferable to try the upgrade in a copy of your site on your local pc and then move to the real world and try it there.

Page Top

STEP 1 Preparation anchor.png

STEP01.png

There is no need for preparation in this procedure.

Page Top

STEP 2 Close site anchor.png

STEP02.png
  1. Select 'default' theme. And, disable selectable themes.
  2. Close your site.
  3. Change the debug mode to PHP debug mode.
Page Top

STEP 3 File replace anchor.png

STEP03.png
  1. Delete all of files, except mainfile.php and the following directories:
    • images
    • themes
    • uploads
    • modules
    • preload
    • your XOOPS_TRUST_PATH (if existing)
  1. Delete the following modules.
    • legacy
    • user
    • legacyRender
    • pm
    • stdCache
  1. Overwrite with the package.
Page Top

STEP 4 Upgrade anchor.png

STEP04.png
  • Patch your mainfile.php.

How to patch your mainfile.php? It's very easy. Modify your mainfile.php as the following with a text editor like notepad.

From:
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
  include XOOPS_ROOT_PATH."/include/common.php";
}

To:
if (!defined('_LEGACY_PREVENT_LOAD_CORE_') && XOOPS_ROOT_PATH != '') {
  @include_once XOOPS_ROOT_PATH."/include/cubecore_init.php";
  if (!isset($xoopsOption['nocommon']) && !defined('_LEGACY_PREVENT_EXEC_COMMON_')) {
    include XOOPS_ROOT_PATH."/include/common.php";
  }
}

If you use XOOPS Protector, you have to adjust your mainfile.php more. Read 'About mainfile.php' in this document.

  • Go to your Homepage and install required modules in the automatically started 2nd installer.
  • Go to the module management, and update all of your modules.
Page Top

STEP 5 Open site anchor.png

STEP05.png
  1. Open your site.
  2. After you have finished checking everything, change the debug mode to OFF.

Attach file:
fileSTEP05.png 1718DL [Info] fileSTEP04.png 1711DL [Info] fileSTEP03.png 1686DL [Info] fileSTEP02.png 1728DL [Info] fileSTEP01.png 1686DL [Info]

Front page   Freeze Diff Backup Copy Rename ReloadPrint View   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom) Powered by xpWiki
Counter: 21641, today: 1, yesterday: 3
Princeps date: 2006-11-14 (Tue) 09:35:46
Last-modified: 2007-04-30 (Mon) 11:12:12 (JST) (4409d) by minahito

Welcome | News | Overview | Documentation | Forum | Tutorialstop
Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
Powered by XOOPS Cube 2001-2011 The XOOPS Cube Project