Upgradescripts 3.3-5 to 3.4.0 produce error

Author Message

Vivienne van Velzen

Thursday 24 February 2005 1:37:01 am

I placed this as an article comment as well, sorry (don't know how to remove it).

I'm following the complete upgrade-path from 3.3-4 to 3.5.0 (via 3.3-5, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4). Installation of 3.3-5 went well, but when I tried to run the update-scripts from 3.3-5 to 3.4.0 I get the following message:

PHP Fatal error: [] operator not supported for strings in EZP/lib/ezutils/classes/ezini.php on line 632

Anyone know how to solve this?

Roy Bøhmer

Thursday 24 February 2005 1:42:57 pm

I've had similar trouble with the update-scripts using phpMyAdmin. Manually removing the comments starting with -- do the trick for me.

roy

Vivienne van Velzen

Thursday 24 February 2005 11:26:33 pm

Thanks for the reply, but I don't have a problem with the MySQL update scripts. It's the PHP scripts (in /update/common/scripts) that produce the error. Sorry, should have said. Has anyone else come across this problem?

Vivienne van Velzen

Monday 28 February 2005 12:23:00 am

Can anyone help? I'd really like to upgrade to the latest release, but it just won't work. If you need more information, please ask.
TIA,

Vivienne

Vivienne van Velzen

Thursday 03 March 2005 1:11:11 am

Maybe someone from the EZ team? I can't imagine that I'm the first one to experience this problem.

Bård Farstad

Thursday 03 March 2005 3:54:49 am

Which PHP version are you using? Please check the PHP version of the CLI (command line) version of PHP as well.

--bård

Documentation: http://ez.no/doc

Vivienne van Velzen

Thursday 03 March 2005 6:31:13 am

PHP as shown in EZP admin-interface: 4.3.3
PHP as shown on CLI: 4.3.3

Bruce Morrison

Thursday 03 March 2005 3:54:20 pm

Given the error message and the file it occured in I suspect that ez is reading an ini file value, expecting an array and getting a string.

You may have to add some debugging to lib/ezutils/classes/ezini.php to file which var in which file is causing the issue.

Which update script are you running when this error occurs?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Vivienne van Velzen

Monday 07 March 2005 11:54:05 pm

Hi Bruce,

I tried all the scripts that are mentioned in the upgrade-documentation for 3.4:
- updateremoteid.php
- updatesession.php
- updatetoplevel.php
- addorderemail.php

They all produce the same errormessage.

Vivienne

Bruce Morrison

Thursday 10 March 2005 11:31:50 pm

Hi Vivienne

> They all produce the same error message.
It seems there is a string in an ini file where ez is expecting an array. Given that it is happening for all update scripts I'd start checking the siteaccess and override site.ini files against the distribution ones in the settings directory.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Vivienne van Velzen

Monday 14 March 2005 1:56:52 am

Hi Bruce,

I moved all my *.ini.append.php files to a different folder, after which the updatescript runs. This would indicate that there is indeed something wrong with my *.ini.append.php scripts. I then minimalised the site.ini.append.php file to:

[DatabaseSettings]
Database=ezpublish_tmp

And placed this file in /settings/siteaccess/mysite/
This is now the only file in this directory. I ran the updatescript again and the same errormessage appeared. To minimalise even further, I even took out the text above, and still the updatescript gives the error. It seems that the only way that I can avoid the errormessage is to remove all *.ini.append.php scripts. I'm guessing that's not the way to go about it, though.

I'm stumped, please help :-(.

Vivienne

Vivienne van Velzen

Wednesday 23 March 2005 12:30:16 am

OK, I don't like adding another entry just to get this post back in the picture, but I'm still not able to run the upgradescripts, even with minimalised *.ini.append.php scripts.
Does anyone have an idea what the cause of this strange (and apparently unique) behaviour is?
TIA,

Vivienne

Vivienne van Velzen

Wednesday 13 April 2005 1:54:01 am

OK, again kicking this post back to the top. I REALLY want to upgrade, but apparently am not able to when I have override scripts in the settings/siteaccess/design directory. As mentioned before, I tried with a completely stripped down version of site.ini.append.php and that didn't work either. Is it possible to upgrade without the scripts in the directory and after the upgrade place them back? Bit of a hack, but I'm at my wits end. Once again: please help :-(.

Vivienne

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:57:53
Script start
Timing: Jan 18 2025 15:57:53
Module start 'layout'
Timing: Jan 18 2025 15:57:53
Module start 'content'
Timing: Jan 18 2025 15:57:53
Module end 'content'
Timing: Jan 18 2025 15:57:53
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.2813152.6563
Module start 'layout' 0.00480.0030 741.937539.5078
Module start 'content' 0.00780.0060 781.4453101.3984
Module end 'content' 0.01380.0023 882.843846.3047
Script end 0.0161  929.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003018.4351140.0002
Check MTime0.00159.5232140.0001
Mysql Total
Database connection0.00063.720010.0006
Mysqli_queries0.002113.253630.0007
Looping result0.00000.075110.0000
Template Total0.001811.410.0018
Template load0.00095.585210.0009
Template processing0.00095.739910.0009
Override
Cache load0.00063.824610.0006
General
dbfile0.00021.290680.0000
String conversion0.00000.050140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs