4.4 does not display subitems in admin

Author Message

Slavo Uhrin

Tuesday 12 October 2010 3:11:17 pm

I have solved this issue by modifying apache rewrite rules, because ezjscore keeps YUI scripts in the /design/standard/lib/ subdirectory, instead of /design/standard/javascript/, as one would expect. Therefore it won't work if you follow just the default installation instructions for the virtual host setup and the scripts are not loaded from an external CDN.

The modified rule:

RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]

This is also mentioned in the documentation for the extension.

independent eZ developer | http://howgh.sk

Daniele Cacace

Thursday 02 December 2010 3:34:29 am

I have the same problem.

In html i see:

<<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>>
(function() {

var icons = {    'eng-GB': '/share/icons/flags/eng-GB.gif',    'ger-DE': '/share/icons/flags/ger-DE.gif',    'ita-IT': '/share/icons/flags/ita-IT.gif'};

var vcols = {    ezcontentnavigationpart : 'checkbox;crank;name;hidden_status_string;published_date;priority'.split(';'),
    ezmedianavigationpart : 'checkbox;crank;thumbnail;name;hidden_status_string;class_name'.split(';'),
    ezusernavigationpart : 'checkbox;crank;name;creator;published_date'.split(';')};


var confObj = {
    sortKey: "priority",
    dataSourceURL: "/assofumi_admin/ezjscore/call/ezjscnode::subtree::2",
    rowsPrPage: 25,
    sortOrder: 1,
    defaultShownColumns: vcols,
    navigationPart: "ezcontentnavigationpart",
    cookieName: "eZSubitemColumns",
    cookieSecure: false,
    cookieDomain: "test.assofumi.it",
    languagesString: "[ { locale: 'ita-IT', name: 'Italiano' } ]",
    classesString: "[ { classID: '2', name: 'Article' }, { classID: '42', name: 'Article (main-page)' }, { classID: '43', name: 'Article (sub-page)' }, { classID: '81', name: 'Azienda' }, { classID: '72', name: 'Banner' }, { classID: '44', name: 'Blog' }, { classID: '45', name: 'Blog post' }, { classID: '79', name: 'CJW Newsletter Article' }, { classID: '78', name: 'CJW Newsletter Edition' }, { classID: '77', name: 'CJW Newsletter List' }, { classID: '75', name: 'CJW Newsletter Root' }, { classID: '76', name: 'CJW Newsletter System' }, { classID: '13', name: 'Comment' }, { classID: '82', name: 'Contatto' }, { classID: '49', name: 'Documentation page' }, { classID: '70', name: 'Event' }, { classID: '71', name: 'Event calendar' }, { classID: '47', name: 'Feedback form' }, { classID: '57', name: 'File' }, { classID: '58', name: 'Flash' }, { classID: '59', name: 'Flash recorder' }, { classID: '1', name: 'Folder' }, { classID: '67', name: 'Forum' }, { classID: '69', name: 'Forum reply' }, { classID: '68', name: 'Forum topic' }, { classID: '73', name: 'Forums' }, { classID: '65', name: 'Gallery' }, { classID: '5', name: 'Image' }, { classID: '50', name: 'Infobox' }, { classID: '11', name: 'Link' }, { classID: '51', name: 'Multicalendar' }, { classID: '52', name: 'Poll' }, { classID: '46', name: 'Product' }, { classID: '16', name: 'Quicktime' }, { classID: '62', name: 'Quicktime' }, { classID: '17', name: 'Real video' }, { classID: '64', name: 'Real video' }, { classID: '80', name: 'Richiesta utenza' }, { classID: '74', name: 'Silverlight' }, { classID: '60', name: 'Video/Flash Player' }, { classID: '18', name: 'Windows media' }, { classID: '63', name: 'Windows media' } ]",
    flagIcons: icons
}

var labelsObj = {

    DATA_TABLE: {
                        msg_loading: "Caricamento..."
                    },

    DATA_TABLE_COLS: {
                        thumbnail: "Icona",
                        name: "Nome",
                        visibility: "Visibilità",
                        type: "Tipo",
                        modifier: "Modificato da",
                        modified: "Modificato il",
                        published: "Pubblicato",
                        section: "Sezione",
                        translations: "Traduzioni",
                        priority: "Priorità",
                        nodeid: "ID Nodo",
                        objectid: "ID Oggetto",
                        noderemoteid: "Id remoto del nodo",
                        objectremoteid: "Id remoto dell\047oggetto"
                    },

    TABLE_OPTIONS: {
                        header: "Opzioni tabella",
                        header_noipp: "Numero elementi per pagina:",
                        header_vtc: "Colonne tabella visibili:"
                   },

    ACTION_BUTTONS: {
                        select: "Seleziona",
                        select_sav: "Seleziona visibili",
                        select_sn: "Deseleziona",
                        create_new: "Crea nuovo/a",
                        more_actions: "Altre azioni",
                        more_actions_rs: "Elimina selezionati",
                        more_actions_ms: "Sposta selezionati",
                        more_actions_no: "Usa i checkboxes per selezionare uno o più elementi.",
                        table_options: "Opzioni tabella",
                        first_page: "&laquo; primo",
                        previous_page: "&lsaquo; prec",
                        next_page: "succ &rsaquo;",
                        last_page: "ultimo &raquo;"
                    }
};
                
    
    var createGroups = [
    
            "Content"
                    ,
                "CJW Newsletter"
                    ,
                "Setup"
                    ,
                "Media"
                    ,
                "Users"
                
    ];
    
    var createOptions = [
    
            [
                                { text: "Article", value: 2 }
                                ,                        { text: "Article (main-page)", value: 42 }
                                ,                        { text: "Article (sub-page)", value: 43 }
                                ,                        { text: "Azienda", value: 81 }
                                ,                        { text: "Banner", value: 72 }
                                ,                        { text: "Blog", value: 44 }
                                ,                        { text: "Blog post", value: 45 }
                                ,                        { text: "Comment", value: 13 }
                                ,                        { text: "Contatto", value: 82 }
                                ,                        { text: "Documentation page", value: 49 }
                                ,                        { text: "Event", value: 70 }
                                ,                        { text: "Event calendar", value: 71 }
                                ,                        { text: "Feedback form", value: 47 }
                                ,                        { text: "Folder", value: 1 }
                                ,                        { text: "Forum", value: 67 }
                                ,                        { text: "Forum reply", value: 69 }
                                ,                        { text: "Forum topic", value: 68 }
                                ,                        { text: "Forums", value: 73 }
                                ,                        { text: "Gallery", value: 65 }
                                ,                        { text: "Infobox", value: 50 }
                                ,                        { text: "Link", value: 11 }
                                ,                        { text: "Multicalendar", value: 51 }
                                ,                        { text: "Poll", value: 52 }
                                ,                        { text: "Product", value: 46 }
                                ,                        { text: "Richiesta utenza", value: 80 }
                                        ]
                    ,
                [
                                { text: "CJW Newsletter Article", value: 79 }
                                ,                        { text: "CJW Newsletter Edition", value: 78 }
                                ,                        { text: "CJW Newsletter List", value: 77 }
                                ,                        { text: "CJW Newsletter Root", value: 75 }
                                ,                        { text: "CJW Newsletter System", value: 76 }
                                        ]
                    ,
                [
                                { text: "Common ini settings", value: 14 }
                                ,                        { text: "Template look", value: 15 }
                                        ]
                    ,
                [
                                { text: "File", value: 57 }
                                ,                        { text: "Flash", value: 58 }
                                ,                        { text: "Flash recorder", value: 59 }
                                ,                        { text: "Image", value: 5 }
                                ,                        { text: "Quicktime", value: 16 }
                                ,                        { text: "Quicktime", value: 62 }
                                ,                        { text: "Real video", value: 17 }
                                ,                        { text: "Real video", value: 64 }
                                ,                        { text: "Silverlight", value: 74 }
                                ,                        { text: "Video/Flash Player", value: 60 }
                                ,                        { text: "Windows media", value: 18 }
                                ,                        { text: "Windows media", value: 63 }
                                        ]
                    ,
                [
                                { text: "User", value: 4 }
                                ,                        { text: "User group", value: 3 }
                                        ]
                ];
    

YUILoader.require(['datatable', 'button', 'container', 'cookie']);
YUILoader.onSuccess = function() {
    sortableSubitems.init(confObj, labelsObj, createGroups, createOptions);
};
var options = [];
YUILoader.insert(options, 'js');

})();
</<span class="end-tag">script</span>>
<<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"action-controls-container"</span>>
    <<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"action-controls"</span>></<span class="end-tag">div</span>>
    <<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"tpg"</span>></<span class="end-tag">div</span>>
</<span class="end-tag">div</span>>
<<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"content-sub-items-list" </span><span class="attribute-name">class</span>=<span class="attribute-value">"content-navigation-childlist"</span>></<span class="end-tag">div</span>>
<<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"bpg"</span>></<span class="end-tag">div</span>>

<<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"to-dialog-container"</span>></<span class="end-tag">div</span>>

Christian Pfeffer Gjengedal

Thursday 02 December 2010 4:56:51 am

If you cannot see neither the toolbar or the subitems table, the YUI libraries are not loaded.

This normally happens because of ezjscore not having the correct configuration after an upgrade or because of missing rewrite rules. Please have a look at different solutions in this thread.

Duffy Walsh

Friday 03 December 2010 2:14:21 am

"

See what are the links to ALL the JS files in the page. Then open in your browser all this links and for each one see what you get. If you get HTML content then it's a problem in rewrite rules. If you get proper JS code then the problem is somewhere else.

"

So after a suggestion to try it on another machine, it looks like it is now working in FF on a Mac, and in IE8 on Windows. The issue I am still having is with FF on Windows.

Duffy Walsh

Reinhard Hutter

Sunday 09 January 2011 10:16:43 am

I've had the same issues with a fresh v4.4 plain site install in virtual host setup. I had to disable a rewrite rule in .htaccess to fix it:

# if next line is present in a v4.4 virtual host setup, disable it
# RewriteRule ezjscore/call/ /index_ajax.php [L]

Milos Petkovic

Friday 05 August 2011 2:18:29 pm

I have this problem too. In my log file:

Error ocurred using URI: /extension/ezjscore/design/standard/lib/yui/2.8.1/build/utilities/utilities.js

I've read all about this problem in the forum and I haven't found the right solution. I guess that the path to the css and js in the extension ezjscore isn't correct or rewrite rules aren't good. I've put in the  .htaccess file

RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]

but subitems still didn't show up in the admin. What else should I do?
Installed version 4.4.0.

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 17 2025 23:55:42
Script start
Timing: Jan 17 2025 23:55:42
Module start 'layout'
Timing: Jan 17 2025 23:55:42
Module start 'content'
Timing: Jan 17 2025 23:55:43
Module end 'content'
Timing: Jan 17 2025 23:55:43
Script end

Main resources:

Total runtime0.5748 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.4531152.6250
Module start 'layout' 0.00510.0017 741.078139.9141
Module start 'content' 0.00680.5662 780.9922756.5000
Module end 'content' 0.57310.0017 1,537.492230.2891
Script end 0.5748  1,567.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.5096160.0002
Check MTime0.00120.2033160.0001
Mysql Total
Database connection0.00070.125410.0007
Mysqli_queries0.510488.8027730.0070
Looping result0.00070.1244710.0000
Template Total0.551896.020.2759
Template load0.00170.294920.0008
Template processing0.550195.699220.2750
Template load and register function0.00020.027310.0002
states
state_id_array0.00060.111010.0006
state_identifier_array0.00070.116820.0003
Override
Cache load0.00140.2463350.0000
Sytem overhead
Fetch class attribute can translate value0.00070.122260.0001
Fetch class attribute name0.00070.1214100.0001
XML
Image XML parsing0.00671.166160.0011
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00701.2097340.0002
String conversion0.00000.000940.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/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/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.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: 27
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs