Forums / Developer / url_alias not there!

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

eZ debug

Timing: Jan 19 2025 01:22:41
Script start
Timing: Jan 19 2025 01:22:41
Module start 'content'
Timing: Jan 19 2025 01:22:42
Module end 'content'
Timing: Jan 19 2025 01:22:42
Script end

Main resources:

Total runtime1.1795 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 590.2813180.8438
Module start 'content' 0.00550.9509 771.1250543.5547
Module end 'content' 0.95640.2231 1,314.6797332.7578
Script end 1.1795  1,647.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3568210.0002
Check MTime0.00150.1313210.0001
Mysql Total
Database connection0.00070.062010.0007
Mysqli_queries1.105693.73361940.0057
Looping result0.00240.20711920.0000
Template Total1.151497.620.5757
Template load0.00200.173620.0010
Template processing1.149397.439920.5747
Template load and register function0.00020.019310.0002
states
state_id_array0.00090.074310.0009
state_identifier_array0.00160.135120.0008
Override
Cache load0.00180.1496310.0001
Sytem overhead
Fetch class attribute can translate value0.00200.171230.0007
Fetch class attribute name0.00140.116340.0003
XML
Image XML parsing0.00110.093330.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00210.1810270.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/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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