Renamed main content node (node 2) => system don't work

Author Message

Atle Pedersen

Thursday 21 December 2006 7:50:09 am

I renamed node 2 to something else than default. And now, whatever system url I'm trying to access (/content/view/... /user/login .. anything), I get the same error message in the log:

Undefined module: name_of_node_2

All I can do is view the content nodes using nice urls. Nothing else works.

Atle Pedersen

Thursday 21 December 2006 9:29:51 am

Sooo.... talking about v3.8.6 in index.php beginning at line 550:

        $translateResult = eZURLAlias::translate( $uri );


        if ( !$translateResult )
        {
            $useWildcardTranslation = $ini->variable( 'URLTranslator', 'WildcardTranslation' ) == 'enabled';
            if ( $useWildcardTranslation )
            {
                $translateResult =& eZURLAlias::translateByWildcard( $uri );
            }
        }

This is were it fails. $translateResult is not set. Then it launches into a wild_card search for the module to load, and loops for the number of times set by the ini setting MaximumWildcardIteration. Each iterations adds the name of node 2 to the beginning of the URL in the $uri object/array. And when done, the URI is messed up.

Sooo....
... except for disabling WildcardTranslation, what can I do to fix this? Is my database broken? If so, can I repair it somehow?

Atle Pedersen

Thursday 21 December 2006 9:55:19 am

Checking the database in table 'ezurlalias' I find this:

mysql> select * from ezurlalias where is_wildcard!=0;
+--------------------+---------------+-----+-------------+-------------+----------------------------------+----------------------+
| destination_url    | forward_to_id | id  | is_internal | is_wildcard | source_md5                       | source_url           |
+--------------------+---------------+-----+-------------+-------------+----------------------------------+----------------------+
| medarbeidere/{1}   |             0 |  71 |           1 |           1 | 0c201dd3d8ed97ed895243a8f5156ec7 | socios_y_asociados/* |
| company_name{1} |             0 | 104 |           1 |           1 | 3389dae361af79b04c9c8e7057f60cc6 | *                    |
| companyname/{1}  |             0 | 106 |           1 |           1 | 038f20fd1f3ac710ce3e2a2bd5cb7772 | company_name/*     |
+--------------------+---------------+-----+-------------+-------------+----------------------------------+----------------------+

The middle one (company_name is node 2) seems to be the the troublemaker. But why are there several wild card url aliases? I have not created any of these manually. Is this a bug? What is the safe way to get rid of these wildcards when they create problems?

Atle

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 19:24:18
Script start
Timing: Jan 18 2025 19:24:18
Module start 'layout'
Timing: Jan 18 2025 19:24:18
Module start 'content'
Timing: Jan 18 2025 19:24:19
Module end 'content'
Timing: Jan 18 2025 19:24:19
Script end

Main resources:

Total runtime1.0091 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0469152.6406
Module start 'layout' 0.00550.0027 740.687539.4922
Module start 'content' 0.00820.9992 780.1797479.6250
Module end 'content' 1.00740.0016 1,259.804712.1250
Script end 1.0090  1,271.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3402160.0002
Check MTime0.00140.1368160.0001
Mysql Total
Database connection0.00080.081710.0008
Mysqli_queries0.955294.6603550.0174
Looping result0.00060.0589530.0000
Template Total0.973496.520.4867
Template load0.00210.211420.0011
Template processing0.971296.245820.4856
Template load and register function0.00010.010010.0001
states
state_id_array0.00090.088710.0009
state_identifier_array0.00270.264720.0013
Override
Cache load0.00180.1804200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.054810.0006
Fetch class attribute name0.00240.236940.0006
XML
Image XML parsing0.00050.048110.0005
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00090.0879160.0001
String conversion0.00000.000640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs