url_alias not there!

Author Message

Nicklas Lundgren

Saturday 10 January 2004 1:44:11 pm

Hi all,
I have just upgraded to 3.3.1, and run into problems.

I understand that there has been a move from content/view/Xx links to url_alias links in this upgrade, regarding all sorts of templates.

This has effect, for instance in the admin-interface, where url_alias links is used for folderlistings etc. For example in
admin\override\templates\folder_thumbnail.tpl.

The problem is that the $node.url_alias that is used in the templates is empty in my site! With the effect that the links in the admin-interface all go to the root.... :-(

Is this a known problem? Are there any workarounds?

Since I have made an upgrade (manually), is it possible that some override-settings may cause this?

Any ideas greatly appreciated!

Regards,
Nicklas Lundgren

Marco Zinn

Saturday 10 January 2004 2:11:26 pm

I think, the 3.3 kernel should ALWAYS return some string, when $node.url_alias is called in a template. Depending on some setting (Probably "URLTranslation"), this will be a "nice URL" or some content/view/xxx stuff. Returning an empty string seems to be a bug.
There is a table for the URL Aliases... is that empty?
Did you use URLTranslations before the upgrade?
You could try to DISABLE the URLTranslation in the .inis, so the kernel should return /content/view/xxx URLs, which should get you going again.

Other hints:
- Check the Update SQLs (but i guess, you ran them)
- Check the upgrade folder. There are some .phps, that are commonly needed for upgrading... I think, there was one about the URL aliases, maybe this would fill up your DB table with the necessary data.

Wild guesses, but maybe something will help you.

Marco
http://www.hyperroad-design.com

Nicklas Lundgren

Sunday 11 January 2004 4:31:40 am

Hi Marco,
Thanks for the reply to my question.
I found an updateniceurls-script in the update-folder. And after running it, everything is working.

I´ve had some problems with wildcard-urls a while ago. Probably I deleted a little too much then...

Regards,
/Nicklas

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 19 2025 04:33:11
Script start
Timing: Jan 19 2025 04:33:11
Module start 'layout'
Timing: Jan 19 2025 04:33:11
Module start 'content'
Timing: Jan 19 2025 04:33:12
Module end 'content'
Timing: Jan 19 2025 04:33:12
Script end

Main resources:

Total runtime0.9473 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.0547152.6094
Module start 'layout' 0.00490.0031 741.664139.4141
Module start 'content' 0.00810.9378 781.0781538.4922
Module end 'content' 0.94590.0014 1,319.570312.1875
Script end 0.9472  1,331.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3146160.0002
Check MTime0.00130.1327160.0001
Mysql Total
Database connection0.00070.078110.0007
Mysqli_queries0.898194.8027570.0158
Looping result0.00050.0549550.0000
Template Total0.916996.820.4584
Template load0.00200.208020.0010
Template processing0.914996.577620.4574
Template load and register function0.00020.016410.0002
states
state_id_array0.00090.089710.0009
state_identifier_array0.00120.124520.0006
Override
Cache load0.00160.1688310.0001
Sytem overhead
Fetch class attribute can translate value0.00080.086420.0004
Fetch class attribute name0.00130.142440.0003
XML
Image XML parsing0.00090.091120.0004
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00080.0896160.0001
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs