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.