Forums / Install & configuration / ezpurlaliaspathwalker.php url alias errors

ezpurlaliaspathwalker.php url alias errors

Author Message

Greg McAvoy-Jensen

Friday 10 October 2008 12:53:07 am

Moving a site from 3.10.0 to 3.10.1, an error occurs while restoring the url aliases:Fatal error:

Call to a member function on a non-object in /home/gregmj/web/ezpublish-3.10.1/extension/ezurlaliasmigration/classes/ezpurlaliaspathwalker.php on line 376

It presented that error after giving about 20 "F"'s--indicating a failed url alias restoration.
Then, links in admin and one (newer) public siteaccess work fine, but most of them don't work in the main public siteaccess (all share the same database). No errors in debug output except: Could not find module named 'Travel-Europe'... So does this mean it's not even finding the url alias in the table?
I've cleared the caches. Note also that the site was originally 3.9.4, and it's possible some corruption of url aliases occurred when we went to 3.10.0.
Any suggestions on how to work around this problem?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Saturday 18 October 2008 1:01:17 pm

How do I manually migrate the url aliases?

Moving from 3.10.0 to 3.10.1, I received the error I noted earlier. The instructions say if you get errors, then manually set up your url aliases. But the admin and public interfaces won't work easily because no url aliases are working. When I run:
SELECT id, link, parent, lang_mask, text, action, is_original, is_alias, lang_mask_adjusted FROM ezurlalias_ml_migrate WHERE is_restored=0;
I get 349 results.

Could someone talk me through how I complete this migration manually in the tables? Thanks.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Ole Marius Smestad

Tuesday 28 October 2008 7:01:42 am

Hi Greg,

Could you retry the migration, but turn on the debug output in:

ezurlaliasmigration/settings/debug.ini.append.php

The debug output is most readable in the admin-interface. However, bear in mind that the admin-interface does not let you migrate history entries.


--
Ole Marius Smestad
Lead Engineer eZ Publish
Member of the Community Project Board

Greg McAvoy-Jensen

Saturday 01 November 2008 1:23:21 pm

Thank you. I actually found the cache hadn't fully cleared. This meant the production server's database user and password were being tried on the installation where I was doing the upgrade, which of course didn't work. Fixing that, plus running the migration from the admin interface, did the trick. Thanks!

There's no need to keep the URL alias migration extension once this is complete, right?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

eZ debug

Timing: Jan 17 2025 23:52:49
Script start
Timing: Jan 17 2025 23:52:49
Module start 'content'
Timing: Jan 17 2025 23:52:50
Module end 'content'
Timing: Jan 17 2025 23:52:50
Script end

Main resources:

Total runtime1.0117 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.9453180.8047
Module start 'content' 0.00470.8738 768.7500562.5938
Module end 'content' 0.87850.1329 1,331.3438336.7344
Script end 1.0115  1,668.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4267210.0002
Check MTime0.00160.1607210.0001
Mysql Total
Database connection0.00060.054810.0006
Mysqli_queries0.937792.69181970.0048
Looping result0.00210.20731950.0000
Template Total0.980796.920.4904
Template load0.00270.270520.0014
Template processing0.978096.670120.4890
Template load and register function0.00010.010910.0001
states
state_id_array0.00280.274510.0028
state_identifier_array0.00120.117820.0006
Override
Cache load0.00240.2335260.0001
Sytem overhead
Fetch class attribute can translate value0.00130.129030.0004
Fetch class attribute name0.00140.140050.0003
XML
Image XML parsing0.00080.079930.0003
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00210.2093290.0001
String conversion0.00000.000330.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs