Error message

  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6402 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home1/arqadmin/public_html/jadudev.net/includes/common.inc).

Installing Jadu CMS patches with Meteor

Jadu has revamped their patch/upgrade installation process starting with 1.12.0.24.  You can download the installation instructions from their support site (http://support.jadu.net/downloads/file/223/112_patch_installation_instructions) [login required].  That PDF has all the information in this article, but I've just added a bit more personality and 'hand holding' to the instructions below, its what I do best.


Jadu has introduced a custom installer called meteor.  This is packaged into a Phar file - a PHP archive in this case called meteor.phar, and this application is what performs the upgrade.

The phar extension provides a way to put entire PHP applications into a single file
called a "phar" (PHP Archive) for easy distribution and installation (Phar Introduction)


I would image this is an easier way to perform an upgrade since you can
harness the power of PHP, and potentially release the same .phar for all
supported platforms, since its really just running a PHP application.  And let's face it, its a pretty brilliant strategy.  You can watch an entire demo of Meteor at Jadu Community Lab's Google + page


UPDATE 
Knowing the database credentials is no longer necessary.  
Meteor scans for the database configuration file (in config/system.xml) and reads that - Brilliant!
Thanks guys, awesome update to the script.

Be aware of these requirements - "To install the package you will need to know the username and password for the jadu database" (install guide) - so if you don't have that handy, you better track it down.  One important note, I tried using the mysql account information listed in /var/config/system.xml but that account (jadu) didn't have the proper privileges, so I used the MySQL root user, and password.


 
LAMP Environment
Here's the new syntax for LAMP

php meteor.phar patch:apply --path=<JADU_HOME> --patch-path=<PATCH_DIR>


real example : 

php meteor.phar patch:apply --path=/var/www/jadu --patch-path=.


Windows Environment
There are some prerequisites you'll need to set up one time :
First you'll need to download and install “Microsoft Drivers 3.0 for PHP for SQL Server”. You can download those here - http://www.microsoft.com/engb/download/details.aspx?id=20098
After you install the drivers, you'll need to edit your PHP.ini file so PHP can properly access your MSSQL database -

    extensions.extension=php_pdo_sqlsrv_53_nts_vc9.dll
    extension=php_sqlsrv_53_nts_vc9.dll

You may need to restart iis here to get the new PHP settings to activate (I'm not sure, and it doesn't mention this in the install guide)

Once you're ready to install - the command is similar to LAMP with a couple extra settings to tell PHP what driver to use -

php meteor.phar patch:apply path=<<JADU_HOME>>patchpath=<<PATCH_DIR>> dbname=jadu dbdriver=sqlsrv

After the install completes, you'll want to restart iis.

That's the new process in a nutshell, have fun and JADU IT.

General Concept: 
Jadu Product: 
Jadu Version: