Upgrade to eZ 4... and updateniceurls

Author Message

Pål Messenlien

Monday 10 March 2008 2:36:38 am

Im working on a upgrade of our main site to eZ 4. The site are running 3.8.6 atm. Everything has been good up to 3.10. Ezp 4.0 upgradre worked well up to where i run the updateniceurl script.

The settings im using for the urls are:
override/site.ini.append.php

[URLTranslator]
Translation=enabled
WordSeparator=underscore
TransformationGroup=urlalias_compat
TransformationGroup=lower_uri
WildcardTranslation=enabled

And im running the command:

bin/php/updateniceurls.php --import --fetch-limit=100 -s studier

The error im getting after the script has run for a while:

Fatal error: Call to a member function attribute() on a non-object in /opt/lampp/www4/kernel/classes/ezcontentobjecttreenode.php on line 4014

Anyone had the same problem?

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Stéphane Bullier

Monday 10 March 2008 3:36:00 am

Hi,

You have try to use the transform.ini file like this :
transform.ini.append.php

<?php /* #?ini charset="utf-8"?

[Transformation]
Groups[]=lower_uri
 
[lower_uri]
Extensions[]
Commands[]
Commands[]=normalize
Commands[]=transform
Commands[]=decompose
Commands[]=transliterate
Commands[]=diacritical
Commands[]=lowercase
Commands[]=url_cleanup

*/ ?>

site.ini.append.php

[URLTranslator]
TransformationGroup=lower_uri

Stéphane

Pål Messenlien

Monday 10 March 2008 2:06:53 pm

Still getting the same error. Starting to think i have a bad node or something in that database. Are there anyway i can run the update script and get some more information about where it fails?

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Stéphane Bullier

Tuesday 11 March 2008 12:30:26 am

Hello,

You can try to use :
/update/common/scripts/cleanup.php

/bin/php/flatten.php

Use -h before to see what you are doing.

Stéphane

Pål Messenlien

Tuesday 11 March 2008 2:09:41 am

cleanup worked good. But flatten.php resultet in this error

Fatal error: Call to a member function deleteStoredClassAttribute() on a non-object in /opt/lampp/www4/kernel/classes/ezcontentclass.php on line 912

The databsae im running on is quite large so it can be some strange timouts im getting here. Are there some mysql or php settings i could try?

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Pål Messenlien

Tuesday 11 March 2008 2:13:52 am

after cleanup i tried using --debug on the updateniceurl scripts. There is some database problems here.. getting this error..

Error: (eZMySQLDB)
Query error: Duplicate entry '2631-4a6b8d8f22e40ab3978d6fc2a2a949ca' for key 1. Query: UPDATE ezurlalias_ml SET parent = 2631
WHERE parent = 20502

Thats just one of them.. theres loads of them

Im reseting the datbase and starting over the update again to see if that can help

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

tofik sahraoui

Monday 27 October 2008 7:35:47 am

Would really like to hear if or how you solved this...i have the same problem :)

Christian Rößler

Tuesday 28 October 2008 1:31:40 am

Error: (eZMySQLDB)
Query error: Duplicate entry '2631-4a6b8d8f22e40ab3978d6fc2a2a949ca' for key 1. Query: UPDATE ezurlalias_ml SET parent = 2631
WHERE parent = 20502

Try clearing the table ezurlalias_ml and rerun updateniceurls.php again. ezurlalias_ml contains calculated url-alias from your articles / contentobjects and is generated when publishing content and/or running updateniceurls. I had some problems with ezP 4.0.0 as - according to the changelog for ezP 4.0.1 - there was an error in url-alias-logic turning ezurlalias_ml inconsistent. If you encounter the above errors, run

Truncate table ezurlalias_ml;

in your mysql-shell or phpmyadmin. There is no need to reset / reload the completely database as you would reset it to your old ezP (3.10).

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Frode Sørhaug

Friday 28 November 2008 4:53:32 am

Hi.
We also got an errormessage when running updateniceurls. We are upgradeing from 3.6.12 to 4.0.1.

Our errormessage said: "PHP Fatal error: Call to a member function on a non-object in kernel/classes/ezcontentobjecttreenode.php on line 3996"

To resolv this I hacked updateniceurls.php so it informed me about the object that caused the Fatal error.
And the result was inconsistent data in the table "ezcontentobject_tree". The colomn "path_identification_string" contained a path that did not exist in system. By edit the correct data the updateniceurls got back on track.

Fr®dis

H-Works Agency

Friday 17 April 2009 6:35:16 am

Does anyone found a way with this ?

I am having the same problem from 3.9.2 to 3.10.1

EZP is Great

Brian Wesaala

Thursday 04 February 2010 2:45:53 am

Am also having the same problem when I run the updateniceurl.php script. Am upgrading from 3.9.4 to 3.10.1

++PHP Fatal error: Call to a member function on a non-object in /www/ezpublish3.10.1/kernel/classes/ezcontentobjecttreenode.php on line 3996
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

With the debug option I find this error:

[ Feb 04 2010 11:12:46 ] [] eZCharTransform::groupCommands:
Transformation group urlalias_compat is not part of the active group list Groups in transform.ini

I will appreciate any assistance!

Brian

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 30 2025 21:09:43
Script start
Timing: Jan 30 2025 21:09:43
Module start 'layout'
Timing: Jan 30 2025 21:09:43
Module start 'content'
Timing: Jan 30 2025 21:09:43
Module end 'content'
Timing: Jan 30 2025 21:09:43
Script end

Main resources:

Total runtime0.0285 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.2578151.2266
Module start 'layout' 0.00660.0046 739.4844220.7188
Module start 'content' 0.01130.0156 960.20311,013.9609
Module end 'content' 0.02690.0016 1,974.164145.9922
Script end 0.0285  2,020.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.0954140.0002
Check MTime0.00124.1544140.0001
Mysql Total
Database connection0.00062.138610.0006
Mysqli_queries0.004214.566630.0014
Looping result0.00000.046010.0000
Template Total0.00124.010.0012
Template load0.00093.197910.0009
Template processing0.00020.824410.0002
Override
Cache load0.00062.128610.0006
General
dbfile0.00248.340580.0003
String conversion0.00000.026840.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.0001 secs