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

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 03:02:51
Script start
Timing: Jan 18 2025 03:02:51
Module start 'layout'
Timing: Jan 18 2025 03:02:51
Module start 'content'
Timing: Jan 18 2025 03:02:51
Module end 'content'
Timing: Jan 18 2025 03:02:51
Script end

Main resources:

Total runtime0.7655 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.2969152.6563
Module start 'layout' 0.00480.0023 741.953139.4922
Module start 'content' 0.00710.7571 781.4453557.4844
Module end 'content' 0.76420.0013 1,338.929716.1250
Script end 0.7655  1,355.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4118160.0002
Check MTime0.00120.1596160.0001
Mysql Total
Database connection0.00070.088710.0007
Mysqli_queries0.718893.9003600.0120
Looping result0.00050.0677580.0000
Template Total0.741596.920.3708
Template load0.00210.268720.0010
Template processing0.739496.591320.3697
Template load and register function0.00010.011010.0001
states
state_id_array0.00080.108310.0008
state_identifier_array0.00060.083120.0003
Override
Cache load0.00180.2287260.0001
Sytem overhead
Fetch class attribute can translate value0.00080.101020.0004
Fetch class attribute name0.00090.120250.0002
XML
Image XML parsing0.00060.075620.0003
class_abstraction
Instantiating content class attribute0.00000.002170.0000
General
dbfile0.00080.1010180.0000
String conversion0.00000.000940.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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