Problem running updatemultilingual.php script

Author Message

Guy Brun

Wednesday 05 July 2006 1:33:21 am

I am trying to upgrade from eZ p. 3.7.3 to eZ p. 3.8.0

I am following the upgrade guidelines from ez.no

When running php -C update/common/scripts/updatemultilingual.php -s admin i get fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

but no debug output

I tried to insert error_reporting( 2047 ); in the updatescript but no difference.

http://ez.no/community/forum/developer/upgrade_3_8_0/re_upgrade_3_8_0__1

I have php4-cli installed

- GSB

Kristof Coomans

Wednesday 05 July 2006 4:35:48 am

Hi Guy

Enable display_errors ( http://www.php.net/manual/en/ref.errorfunc.php#ini.display_errors ) in php.ini and try again.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Guy Brun

Wednesday 05 July 2006 11:21:27 pm

Hi Kristof and thanks for your reply

I checked both php.ini files for apache2 and cli. They both already had display_errors=On

Kristof Coomans

Thursday 06 July 2006 2:12:55 am

Hello Guy

Can you execute this on the command line:

php -i | more

Look for "Configuration File (php.ini)". Did you check the file mentioned there?

Do you have much experience with PHP and it's configuration? Then we probably can exclude any problems related to the PHP configuration, so please tell us ;-)

The fatal error could be related to this bug: http://ez.no/community/bugs/memory_leak_in_updatemultilingual_php. Please try eZ publish 3.8.1 instead and let us know if it works now.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Guy Brun

Thursday 06 July 2006 5:16:45 am

I tried with eZ publish 3.8.1 and this gave me en error output:

Warning: array_key_exists(): The second argument should be either an array or an object in /srv/www/w3/kernel/common/i18n.php on line 81

I searched for array_key_exists(): in the forum and found one related article which mentioned ldap groups mapping
When I checked the users in my site Inoticed that some admin users have a lot of locations pointing to the anonymous group node. I am also using ldap auth placing all users in anonymous group as default.

I am starting to think that something is wrong with the database. The admin interface is also getting slower and slower.

Output of php -i | grep Configuration:
Configuration File (php.ini) Path => /etc/php4/cli/php.ini
which has display_error enabled

Thanks,
-GSB

Xavier Dutoit

Thursday 06 July 2006 7:43:51 am

Hi,

Don't know if it's related, but I had to increase the memory so it could update the data.

@ini_set( 'memory_limit', '71M' );

71 is a rather random number roughly equal 42*2.

X+

http://www.sydesy.com

Guy Brun

Thursday 06 July 2006 11:56:57 pm

Hi Xavier,

I have now increased mem limit to 71. For now it looks like the admin site is a little bit faster with no fatal errors.

Thanks,
-GSB

Xavier Dutoit

Friday 07 July 2006 3:52:42 am

Hi,

the 71 was for the update script. For the normal config, you can lower it to something like 42.

42 is a rather random number roughly equals 42*1 ;)

X+

http://www.sydesy.com

Yngve Bergheim

Wednesday 26 July 2006 3:42:50 am

I get the same error upgrading from 3.7.3 to 3.8.2.

I got the error from line 135, $script->initialize();
in update/common/scripts/updatemultilingual.php

I guess it have something to do with the database, switching to the new database that comes with 3.8.2 works just fine, but when I try to use the old 3.7.3 database I get the error. Does someone know how to turn on the display errors? I don't get an error in eZ's error.log.

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 22:27:43
Script start
Timing: Jan 18 2025 22:27:43
Module start 'layout'
Timing: Jan 18 2025 22:27:43
Module start 'content'
Timing: Jan 18 2025 22:27:44
Module end 'content'
Timing: Jan 18 2025 22:27:44
Script end

Main resources:

Total runtime0.9718 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1641152.6563
Module start 'layout' 0.00470.0030 740.820339.5078
Module start 'content' 0.00770.9626 780.3281681.3438
Module end 'content' 0.97040.0014 1,461.671920.1094
Script end 0.9718  1,481.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3299160.0002
Check MTime0.00130.1333160.0001
Mysql Total
Database connection0.00080.079310.0008
Mysqli_queries0.895792.1683790.0113
Looping result0.00090.0893770.0000
Template Total0.944097.120.4720
Template load0.00190.200220.0010
Template processing0.942096.933720.4710
Template load and register function0.00010.012310.0001
states
state_id_array0.00120.121710.0012
state_identifier_array0.00120.120020.0006
Override
Cache load0.00190.1915610.0000
Sytem overhead
Fetch class attribute can translate value0.00070.069040.0002
Fetch class attribute name0.00120.1198110.0001
XML
Image XML parsing0.00130.137740.0003
class_abstraction
Instantiating content class attribute0.00000.0026130.0000
General
dbfile0.00110.1089220.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs