XOOPSCubeLegacy​/HowToUpgrade

How to upgrade from Cube Legacy Alpha series anchor.png

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 any preparation in this procedure.

Page Top

STEP 2 Close site anchor.png

STEP02.png
  1. Select 'default' theme. And, disable selectable themes.
  2. Change the debug mode to PHP debug mode.
  3. Close your site, but the administrator keeps to access.
  4. Disable and uninstall base and user module as the following.

1) Turn off the active value of Legacy and User module in the module management.

alpha_uninstall_pic01.jpg
alpha_uninstall_pic02.jpg

2) Then, you'll be forwarded to the 2nd installer. But, you have not completed uninstalling yet. Uninstall two modules completely. Click each 'Uninstall' links.

alpha_uninstall_pic03.jpg
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:
    • base
    • 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' of this document.

  • Go to your Homepage and install required modules in the automatically started 2nd installer.
  • Delete cache files in the folder template_c.
  • 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.

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: 23356, today: 3, yesterday: 3
Princeps date: 2006-11-14 (Tue) 09:25:48
Last-modified: 2007-04-30 (Mon) 11:12:28 (JST) (4499d) by Anonymous

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