ezwebin changes URL alias of top-level node when edited

Author Message

Greg McAvoy-Jensen

Friday 25 July 2008 12:30:56 am

Here's a question about multiple siteaccesses. I converted a site from having one public site to 2, now with both having separate index pages/default pages, root node depth of 2, and PathPrefix=name of top level node for each siteaccess. They work fine unless one edits the top page of either siteaccess from ezwebin. Once it's published, the url's change from www.mysite.com/Nice-Url-Page to www.mysite.com/2/Nice-Url-Page. When a link is clicked it of course returns an error because module "2" is not found.

One one siteaccess I get a "2"; on the other a "3". But if it's edited and published from the admin interface, this doesn't happen--and indeed that's how I restore the site after this happens.

Any thoughts? Thanks!

NEW INFO:
I'm realizing the problem is on republishing the top-level page for a siteaccess using ezwebin, the URL alias is changed from /Home-Page-Name to /2. This explains why the 2 is appearing in the URL (because "2" is not what PathPrefix is set to).

But why would the URL alias for that node be changed to /2 (or /3 in another siteaccess) by ezwebin?

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

Thursday 07 August 2008 11:27:55 pm

Curious. On a test machine I tried running updateniceurls.php and then republishing the node from ezwebin. Then, on attempting to view a page 3 levels down, Firefox reported that "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

The admin interface showed the node in question (depth=2; the root node for one of the two sites on the installation) had been given the URL alias for the root node (depth=1, node 2). Ran updateniceurls.php again to no effect. Then I republished it again from the admin interface; problem solved.

Could I have something set incorrectly, or might this be bug report material?

By the way, I'm running 3.10, on a site that had started at 3.9.4.

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

Luke Barton

Friday 08 August 2008 3:01:13 am

Hi Greg,

I had the same problem when I upgraded from 3.9 to 3.10 to 4.0.

It's a weird bug.

In my case it added the url "Home" to the root node (much like your "2").

I fixed it by going into the database and removing the home from the url alias.

I then had to re-publish all the pages directly beneath that page.

It then worked itself out, although I think some voodoo fixed it.

If you'd like to talk in more detail, give me a call sometime Mon-8-11.

Hope all is well.

-Luke

Greg McAvoy-Jensen

Friday 08 August 2008 9:21:49 am

Thanks, Luke. If you'd like to add any info, here's a bug report: http://issues.ez.no/IssueView.php?Id=13480&activeItem=1.

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 16:25:56
Script start
Timing: Jan 18 2025 16:25:56
Module start 'layout'
Timing: Jan 18 2025 16:25:56
Module start 'content'
Timing: Jan 18 2025 16:25:57
Module end 'content'
Timing: Jan 18 2025 16:25:57
Script end

Main resources:

Total runtime0.6820 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.0073 588.1953152.6563
Module start 'layout' 0.00730.0029 740.851639.4922
Module start 'content' 0.01030.6704 780.3438552.9141
Module end 'content' 0.68060.0013 1,333.257816.1094
Script end 0.6819  1,349.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4861160.0002
Check MTime0.00140.2066160.0001
Mysql Total
Database connection0.00110.158410.0011
Mysqli_queries0.628092.0848600.0105
Looping result0.00050.0787580.0000
Template Total0.649695.220.3248
Template load0.00230.333220.0011
Template processing0.647394.912320.3236
Template load and register function0.00010.022010.0001
states
state_id_array0.00070.106510.0007
state_identifier_array0.00070.104120.0004
Override
Cache load0.00190.2810300.0001
Sytem overhead
Fetch class attribute can translate value0.00100.144820.0005
Fetch class attribute name0.00200.299750.0004
XML
Image XML parsing0.00070.096620.0003
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00090.1286180.0000
String conversion0.00000.001540.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs