URL translation affects admin pages

Author Message

Conor Murray

Wednesday 13 July 2005 5:08:14 am

eZ Version: 3.6.0 (3.6.0) SVN revision: 11973

URL translations are affecting the admin site! So if a translation is set up for the user site that happens to collide with a URL for the admin site then the admin site breaks for that URL.

Is there a setting in an ini file that allows me to disable URL translations in the admin site?

Language is a virus - William S Burroughs

Ɓukasz Serwatka

Friday 22 July 2005 12:55:46 am

Hi,

You can disable url translation in site.ini.append.php file. This looks like a bug, can you report it in bug system? http://ez.no/community/bugs

[URLTranslator]
Translation=disabled

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Nathan Kelly

Sunday 09 October 2005 11:11:34 pm

Hi I have the same problem on the same version.

When I disable translation as suggested I get an error stating:

The requested page could not be displayed. (20)

The requested address or module could not be found.

Possible reasons:

    * The address was misspelled. Try changing the URL.
    * The name of the module was misspelled. Try changing the URL.
    * There is no <module_name> module available on this site.
    * The site is using URL matching to determine which siteaccess
to use, but the name of the siteaccess is missing from the URL.
Try to add the name of the siteaccess, it should be specified before
the name of the module.

Normaly traslation would not be a problem, but if you have a [folder] with a translation attached it makes it imposable to manage the contents of that folder via admin.

Is this a bug?

Pardon me while I burst into flames...

Nathan Kelly

Sunday 09 October 2005 11:37:34 pm

Hmm, ok I think found a temporary workaround but it's not really acceptable for a site editor that has little knowledge of the system nor is it what I would expect for true URL translation.

If you set up your translation using "System URL forwarding" like this for example:

New virtual URL = /myurl
System URL = /content/view/full/42

Its usually nice to add the /content/view/full/(NodeId) of /myurl to point to the desired node just in case /content/view/full/(NodeId) is typed, for example:

New virtual URL = /content/view/full/(nodeID of myurl)
System URL = /content/view/full/42

However this makes the node completely inaccessible from the admin.

If you don't forward the content view you can still access the node via the admin by clicking on the folder icon for that node and selecting [view] from the dropdown list as this method seems to use the content/view/full/(nodeID) as the URL rather than /myurl.

Like I said for a user with little knowledge it could be tricky and it doesn't provide the added protection on the public site.

Any suggestions? Is this the intended function or a bug?

Pardon me while I burst into flames...

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

Main resources:

Total runtime0.6581 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1563152.6406
Module start 'layout' 0.00570.0028 741.796939.4766
Module start 'content' 0.00860.6481 781.2734596.7500
Module end 'content' 0.65670.0014 1,378.023412.1406
Script end 0.6581  1,390.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4892160.0002
Check MTime0.00140.2133160.0001
Mysql Total
Database connection0.00060.096810.0006
Mysqli_queries0.598190.8811620.0096
Looping result0.00110.1708600.0000
Template Total0.626995.220.3134
Template load0.00210.317220.0010
Template processing0.624794.926620.3124
Template load and register function0.00020.033710.0002
states
state_id_array0.00100.146310.0010
state_identifier_array0.00140.215320.0007
Override
Cache load0.00180.2803320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.079230.0002
Fetch class attribute name0.00170.253760.0003
XML
Image XML parsing0.00130.193430.0004
class_abstraction
Instantiating content class attribute0.00000.002670.0000
General
dbfile0.00200.3055240.0001
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
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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.0002 secs