• Hi,

    I try to use the plugin which seems very interesting and widely parametrable.

    I get an empty widget (just title) and the debug option sends :

    MySQL server version: 
    
    collapsCat options:
    Array
    (
        [title] => Arbre des Catégories
        [showPostCount] => 1
        [inExclude] => include
        [inExcludeCats] =>
        [showPosts] => 1
        [showPages] =>
        [linkToCat] =>
        [olderThan] =>
        [excludeAll] => 0
        [catSortOrder] => ASC
        [catSort] => catName
        [postSortOrder] => ASC
        [postSort] => postTitle
        [expand] => 0
        [defaultExpand] =>
        [debug] => 1
        [postTitleLength] => 100
        [catfeed] =>
        [taxonomy] => both
        [post_type] => post
        [postDateAppend] => after
        [postDateFormat] =>
        [showPostDate] =>
        [useCookies] =>
        [postsBeforeCats] =>
        [expandCatPost] =>
        [showEmptyCat] => 1
        [showTopLevel] =>
        [customExpand] =>
        [customCollapse] =>
        [style] => kubrick
        [accordion] => 0
        [title_link] =>
        [addMisc] =>
        [addMiscTitle] =>
        [number] => 2
        [includeCatArray] => Array
            (
            )
    
        [expandSym] => ?
        [collapseSym] => ▼
    )
    
    postsToExclude:
    Array
    (
    )
    CATEGORY QUERY:
     SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN
          wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN
          ('category','post_tag')  AND t.slug!='blogroll'
           ASC 
    
    CATEGORY QUERY RESULTS
    WP_Error Object
    (
        [errors:WP_Error:private] => Array
            (
                [invalid_taxonomy] => Array
                    (
                        [0] => La taxinomie est invalide
                    )
    
            )
    
        [error_data:WP_Error:private] => Array
            (
            )
    
    )
    POST QUERY:
     select ID, slug, date(post_date) as date, post_status,
             post_type, post_date, post_author, post_title, post_name, name, object_id,
             t.term_id from wp_term_relationships AS tr, wp_posts AS p,
             wp_terms AS t, wp_term_taxonomy AS tt
             WHERE tt.term_id = t.term_id
             AND object_id=ID 
    
             AND post_status='publish'
             AND tr.term_taxonomy_id = tt.term_taxonomy_id
             AND tt.taxonomy IN ('category','post_tag') AND post_type='post' ORDER BY p.post_title ASC
    
    POST QUERY RESULTS
    Array
    (
        [0] => stdClass Object
            (
                [ID] => 335
                [slug] => doc_notes_ebauche
                [date] => 2015-01-15
                [post_status] => publish
                [post_type] => post
                [post_date] => 2015-01-15 16:46:33
                [post_author] => 1
                [post_title] => (test) Affichage de structure de catégorie
                [post_name] => test-affichage-de-structure-de-categorie
                [name] => Brouillon - notes - ébauche
                [object_id] => 335
                [term_id] => 22
            )
    
        [1] => stdClass Object
            (
                [ID] => 335
                [slug] => test_mise_en_page
                [date] => 2015-01-15
                [post_status] => publish
                [post_type] => post
                [post_date] => 2015-01-15 16:46:33
                [post_author] => 1
                [post_title] => (test) Affichage de structure de catégorie
                [post_name] => test-affichage-de-structure-de-categorie
                [name] => Test de mise en page (publication admin)
                [object_id] => 335
                [term_id] => 27
            )
    
        [2] => stdClass Object
            (
                [ID] => 335
                [slug] => brouillon
                [date] => 2015-01-15
                [post_status] => publish
                [post_type] => post
                [post_date] => 2015-01-15 16:46:33
                [post_author] => 1
                [post_title] => (test) Affichage de structure de catégorie
                [post_name] => test-affichage-de-structure-de-categorie
                [name] => Brouillon
                [object_id] => 335
                [term_id] => 125
            )
    
        [3] => stdClass Object
            (
                [ID] => 335
                [slug] => test-de-mise-en-page
                [date] => 2015-01-15
                [post_status] => publish
                [post_type] => post
                [post_date] => 2015-01-15 16:46:33
                [post_author] => 1
                [post_title] => (test) Affichage de structure de catégorie
                [post_name] => test-affichage-de-structure-de-categorie
                [name] => Test de mise en page
                [object_id] => 335
                [term_id] => 126
            )
    
        [4] => stdClass Object
            (
                [ID] => 335
                [slug] => structure-categories
                [date] => 2015-01-15
                [post_status] => publish
                [post_type] => post
                [post_date] => 2015-01-15 16:46:33
                [post_author] => 1
                [post_title] => (test) Affichage de structure de catégorie
                [post_name] => test-affichage-de-structure-de-categorie
                [name] => structure catégories
                [object_id] => 335
                [term_id] => 127
            )
    
    )

    Do these data trace contains useful information about errors somewhere ?
    Or the elements for the solution ?

    Best regards
    Thanks for help

    Trebly

    https://www.ads-software.com/plugins/collapsing-categories/

Viewing 1 replies (of 1 total)
  • Thread Starter Trebly

    (@trebly)

    Hi,

    Still an empty widget.

    I have

    – changed to option “categories and tags” for “categories”
    – Filled data into the options in editing the parameters (some parameters are set to “empty” when the field has not been ever set (pointer not set into the field) “filled with anything and cleared” “checked-unchecked, select and changed for radio”. The soft should check empty values and replace by default ?

    Then I get data (categories and posts) into the debug trace, but after still empty widget. I don’t know why ? (I have search into html generated but not found any clear reason as a “display:none” should).

    If somebody answers here, I will send the elements of the trace generated by “debug option”.

    Best regards

    Trebly

Viewing 1 replies (of 1 total)
  • The topic ‘Empty catagories : Report (debug) error query : parameters error ?’ is closed to new replies.