Upgrade Script Errors


(Nic Hubbard) #1

Just used the newest upgrade scripts for 4.16.2 and am getting some errors. Not sure if it has to do with the package that I am skipping:

Now upgrading from 4.14.1 to 4.14.2                         [ Starting... ]
Checking for differences between 4.14.1 and existing code   ################################################################################
*ERROR*8* Undefined property: Matrix_Upgrade::$package_list . /home/websites/automatic_upgrades/steps/step_checkout_code.php:62
################################################################################
################################################################################
*ERROR*2* array_merge(): Argument #1 is not an array . /home/websites/automatic_upgrades/steps/step_checkout_code.php:62
################################################################################
################################################################################
*ERROR*2* array_unique() expects parameter 1 to be array, null given . /home/websites/automatic_upgrades/steps/step_checkout_code.php:62
################################################################################

Then after continuing with the upgrade I get:

Check out new code, using tag "mysource_4-14-2"             ################################################################################
*ERROR*2* array_merge(): Argument #1 is not an array . /home/websites/automatic_upgrades/steps/step_checkout_code.php:62
################################################################################
################################################################################
*ERROR*2* array_unique() expects parameter 1 to be array, null given . /home/websites/automatic_upgrades/steps/step_checkout_code.php:62
################################################################################

Things seem to be ok with the upgrade, so not sure if those are just errors that can be ignored...


(Ellis Taylor) #2

Hi Nic,

 

I'm also looking to upgrade my Matrix version. Would you be able to let me know where you got the upgrade script. I will give it a run through and let you know the outcome, whether I get the same error messages.

 

 

Many thanks,

Ellis

 

 

 

Scratch that, found the script.

 

I'll let you know how it gets on.

 

 

 

Cheers, Ellis


(Ellis Taylor) #3

Hi Nic,

 

Just run an upgrade and now find myself receiving a couple of errors, have you seen these before:

  PHP Warning

			session_start(): open([SYSTEM_ROOT]/cache/sess_gj7hghp08754gkfa3g213jm1n7, O_RDWR) failed: Permission denied (13)
	<br>
			PHP Warning
	
			Unknown: open(/home/websites/squiz_matrix/cache/sess_gj7hghp08754gkfa3g213jm1n7, O_RDWR) failed: Permission denied (13)
	<br><br>
			<p>PHP Warning			
	
			<p>Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/websites/squiz_matrix/cache)			
	<p>&#160;<p>&#160;<p>Any ideas on this?<p>&#160;<p>Many thanks,<p>Ellis

(Nic Hubbard) #4

Hi Nic,

 

Just run an upgrade and now find myself receiving a couple of errors, have you seen these before:

 PHP Warning session_start(): open([SYSTEM_ROOT]/cache/sess_gj7hghp08754gkfa3g213jm1n7, O_RDWR) failed: Permission denied (13)
PHP Warning Unknown: open(/home/websites/squiz_matrix/cache/sess_gj7hghp08754gkfa3g213jm1n7, O_RDWR) failed: Permission denied (13)

PHP Warning

Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/websites/squiz_matrix/cache)

 

 

Any ideas on this?

 

Many thanks,

Ellis

 

Hmm, no, never seen those before. Are you running the script as root?


(Ellis Taylor) #5

Sorry I should have had a tinker before I rained on your post.

 

It was an apache permissions issue, the upgrade script must have reset/changed the permissions.

 

I ran the update script right up to 4.16.2 and it all seems to work as expected. I did receive the same errors that you posted initially however everything seems to work as before so maybe we're okay.

 

 

Maybe we should disregard these errors? I wonder if Squiz Staff could clarify.

 

 

 

Cheers,

Ellis


(Nic Hubbard) #6

I ran the update script right up to 4.16.2 and it all seems to work as expected. I did receive the same errors that you posted initially however everything seems to work as before so maybe we're okay.

 

Yeah, must just be an issue with the script. Glad it worked for you.


(Edison Wang) #7

it should be a cosmetic error.

i forgot to commit the var declaration in matrix_uprade.php. it's fixed now.

please re-download and try again.


(Nic Hubbard) #8

it should be a cosmetic error.

i forgot to commit the var declaration in matrix_uprade.php. it's fixed now.

please re-download and try again.

 

Thanks!