MySource Matrix Resources

MySource Matrix has been superseded by Squiz Matrix. This site will remain available for archival purposes only; it is not intended as a current source of Matrix information. For all the latest on Matrix, including documentation and release information, visit the Squiz Matrix site.

Main Content

Upgrading MySource Matrix from v3.22.5 to v3.22.6

Introduction

This guide will help you upgrade an existing MySource Matrix version 3.22.5 installation to version 3.22.6.

This upgrade requires you to have access to:

  • update the MySource Matrix source code
  • upgrade MySource Matrix configuration files

This guide assumes that your MySource Matrix installation is located at /home/websites/mysource_matrix. Please change any commands to the appropriate location if your installation is located elsewhere.

If your system contains the Squiz Supported Version (SSV) modules, please contact Squiz for updated versions of the modules before proceeding with the upgrade.

The modules must be upgraded at the same time as the core system.

Backup

Before starting any upgrade, always backup your MySource Matrix installation. See the MySource Matrix backup management guide for information on how to backup your MySource Matrix system.

Getting the New Source Code

The first thing you need to do is update the MySource Matrix source code. You can find out how to download the latest stable version of MySource Matrix on the installation page.

Once you have downloaded the source code, you need replace the existing code with the newer version. This will not reset any configuration options or remove any content from your system.

These steps assume MySource Matrix is installed at /home/websites/mysource_matrix and that a tar.gz archive with the new source code exists within /home/websites
$ cd /home/websites
$ mv mysource_matrix mysource_matrix_3-22-5
$ tar -xzvf new_source.tar.gz
$ cd mysource_matrix
$ cp -pr /home/websites/mysource_matrix_3-22-5/data .
$ cp -pr /home/websites/mysource_matrix_3-22-5/core/lib/DAL/Oven core/lib/DAL
$ cp -pr /home/websites/mysource_matrix_3-22-5/core/lib/DAL/QueryStore core/lib/DAL

Full System Upgrade

Now, the system's installation scripts should be run to ensure the asset types and language translations are up to date.

$ php install/step_02.php /home/websites/mysource_matrix
$ php install/compile_locale.php /home/websites/mysource_matrix
$ php install/step_03.php /home/websites/mysource_matrix
$ php install/compile_locale.php /home/websites/mysource_matrix

Reparse Designs using the Access History Design Area

The resolution to Bug 4009 requires that any Designs using the Access History Design Area be re-parsed. This is done from the "Details" screen of the applicable Design assets.

Clean up retained attachments for incomplete Form Submissions

In response to Bug Fix 4012, a maintenance script "system_integrity_incomplete_attachments.php", available from the "scripts" directory, has been added to clean up attachments which were not removed from incomplete submissions by the associated Cron Job.

There are two modes to this script - "check" and "fix". Running with "--check" will display affected Form asset IDs. The "--fix" option will remove associated unnecessary files.

As with standard Matrix scripts, the Matrix Root directory is required as the first argument. For example:

php scripts/system_integrity_incomplete_attachments.php `pwd` --check

Upgrade Complete

Your upgrade to MySource Matrix version 3.22.6 should now be complete.