Back to page

− Links

 Print 

XOOPSCubeLegacy​/HowToUpgrade​/FromBeta3d :: Web Application Platform

wiki:XOOPSCubeLegacy/HowToUpgrade/FromBeta3d

XOOPSCubeLegacy​/HowToUpgrade[1]

Table of contents
  • How to upgrade from Cube Legacy Beta 3-d
    • STEP 1 Preparation
    • STEP 2 Close site
    • STEP 3 File replace
    • STEP 4 Upgrade
    • STEP 5 Open site

How to upgrade from Cube Legacy Beta 3-d anchor.png[2]

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[3]

STEP01.png

There is no need for any preparation in this procedure.

Page Top

STEP 2 Close site anchor.png[4]

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

STEP 3 File replace anchor.png[6]

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[7]

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:
@include_once XOOPS_ROOT_PATH."/include/cubecore_init.php";
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[8] mainfile.php' in this document[9].

  • Go to the module management, and update all of your modules.
Page Top

STEP 5 Open site anchor.png[10]

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

Last-modified: 2007-04-30 (Mon) 11:11:55 (JST) (5102d) by minahito