Forums / Install & configuration / ezwebin changes URL alias of top-level node when edited

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

eZ debug

Timing: Jan 18 2025 14:52:41
Script start
Timing: Jan 18 2025 14:52:41
Module start 'content'
Timing: Jan 18 2025 14:52:42
Module end 'content'
Timing: Jan 18 2025 14:52:42
Script end

Main resources:

Total runtime1.1225 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.0060 589.0938180.8047
Module start 'content' 0.00600.8937 769.8984558.0234
Module end 'content' 0.89960.2228 1,327.9219336.7500
Script end 1.1225  1,664.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3609210.0002
Check MTime0.00140.1272210.0001
Mysql Total
Database connection0.00080.070410.0008
Mysqli_queries1.048993.43851970.0053
Looping result0.00210.18321950.0000
Template Total1.094397.520.5472
Template load0.00200.174520.0010
Template processing1.092497.312020.5462
Template load and register function0.00030.029610.0003
states
state_id_array0.00130.114110.0013
state_identifier_array0.00080.071320.0004
Override
Cache load0.00170.1471300.0001
Sytem overhead
Fetch class attribute can translate value0.00200.174030.0007
Fetch class attribute name0.00130.111450.0003
XML
Image XML parsing0.00150.132530.0005
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00250.2229290.0001
String conversion0.00000.000430.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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