Forums / Install & configuration / Upgrade to eZ 4... and updateniceurls

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

eZ debug

Timing: Jan 18 2025 03:04:50
Script start
Timing: Jan 18 2025 03:04:50
Module start 'content'
Timing: Jan 18 2025 03:04:51
Module end 'content'
Timing: Jan 18 2025 03:04:51
Script end

Main resources:

Total runtime0.7443 sec
Peak memory usage4,096.0000 KB
Database Queries228

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.8359180.8203
Module start 'content' 0.00500.6381 768.6563837.1953
Module end 'content' 0.64310.1012 1,605.8516353.3125
Script end 0.7442  1,959.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5198210.0002
Check MTime0.00130.1801210.0001
Mysql Total
Database connection0.00060.078310.0006
Mysqli_queries0.646586.85702280.0028
Looping result0.00190.25522260.0000
Template Total0.713295.820.3566
Template load0.00230.306020.0011
Template processing0.711095.513820.3555
Template load and register function0.00010.019310.0001
states
state_id_array0.00120.166510.0012
state_identifier_array0.00080.108120.0004
Override
Cache load0.00200.2671670.0000
Sytem overhead
Fetch class attribute can translate value0.00090.119680.0001
Fetch class attribute name0.00120.1579150.0001
XML
Image XML parsing0.00500.667980.0006
class_abstraction
Instantiating content class attribute0.00000.0031160.0000
General
dbfile0.00821.1032460.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
24content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 58
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs