New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • Hi,

    Could someone please help me, the taxonomies extra is not working at all. Running on Modx 2.5.0-pl taxonomies-1.3.2-pl PHP Version 5.6.29 and I also have Tagger extra installed. I have looked around, applied different solutions but still nothing.

    Here is the snippet i am using
    [[getPageTerms? &outerTpl=`` &innerTpl=othertpl &limit=`0` ]]


    othertpl chunk has
    <a class="b-tag"> href="[[~[[+id]]]]">[[+pagetitle]]</a>
    .

    Also just tried this snippet [[getPageTerms]] and this [[!getPageTerms]]

    the error I get

    [2017-02-23 18:49:53] (ERROR @ /***/****/core/components/taxonomies/model/Base.php : 301) PHP warning: in_array() expects at least 2 parameters, 1 given


    The template I have put the the above snippets in, results to a blank page.

    Also the another error I am getting is:

    [2017-02-23 18:50:04] (ERROR @ /****/****/core/xpdo/om/xpdoobject.class.php : 543) Error 42000 executing query: SELECTPageTerm.idASPageTerm_id,PageTerm.page_idASPageTerm_page_id,PageTerm.term_idASPageTerm_term_id,PageTerm.seqASPageTerm_seq,Page.idASPage_id,Page.typeASPage_type,Page.contentTypeASPage_contentType,Page.pagetitleASPage_pagetitle,Page.longtitleASPage_longtitle,Page.descriptionASPage_description,Page.aliasASPage_alias,Page.link_attributesASPage_link_attributes,Page.publishedASPage_published,Page.pub_dateASPage_pub_date,Page.unpub_dateASPage_unpub_date,Page.parentASPage_parent,Page.isfolderASPage_isfolder,Page.introtextASPage_introtext,Page.contentASPage_content,Page.richtextASPage_richtext,Page.templateASPage_template,Page.menuindexASPage_menuindex,Page.searchableASPage_searchable,Page.cacheableASPage_cacheable,Page.createdbyASPage_createdby,Page.createdonASPage_createdon,Page.editedbyASPage_editedby,Page.editedonASPage_editedon,Page.deletedASPage_deleted,Page.deletedonASPage_deletedon,Page.deletedbyASPage_deletedby,Page.publishedonASPage_publishedon,Page.publishedbyASPage_publishedby,Page.menutitleASPage_menutitle,Page.donthitASPage_donthit,Page.privatewebASPage_privateweb,Page.privatemgrASPage_privatemgr,Page.content_dispoASPage_content_dispo,Page.hidemenuASPage_hidemenu,Page.class_keyASPage_class_key,Page.context_keyASPage_context_key,Page.content_typeASPage_content_type,Page.uriASPage_uri,Page.uri_overrideASPage_uri_override,Page.hide_children_in_treeASPage_hide_children_in_tree,Page.show_in_treeASPage_show_in_tree,Page.propertiesASPage_propertiesFROMtax_page_termsASPageTermLEFT JOINmodx_site_contentPageONPageTerm.page_id=Page.idWHEREPageTerm.term_id= ? GROUP BY page_id ORDER BY ASC,PageTerm.idASC - Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC,PageTerm.idASC' at line 1 )
    • I assume you are using backticks in the &innerTpl option in your original snippet call?

      [[getPageTerms? &outerTpl=`` &innerTpl=othertpl &limit=`0` ]]
        Codeplaza Webdesign: for professional websites at low cost
      • Thank you for your quick reply, much appreciated. I used the solution given here https://forums.modx.com/thread/97545/taxonomies-getpagesbyterm#dis-post-540133 and these work:
        1. getPageTerms snippet
        2. getTagCloud snippet

        Though I noticed one must declare the chunks (the default chunks are not working).

        Now the issue remaining is the getPagesByTerm snippet. It's not working at all. Here is my code

        [[getPagesByTerm?
                               &outerTpl=`outerPagesByTermTpl` 
                               &innerTpl=`innerPagesByTermTpl`
                              ]]


        OuterPagesByTermTpl chunk:
        <ul>[[+content]]</ul>


        innerPagesByTermTpl chunk :

        <li><a href="[[~[[+Page.id]]]]">[[+Page.pagetitle]]</a></li>


        I check the error logs and this the result:

        [2017-02-24 12:15:49] (ERROR @ /***/***/core/components/taxonomies/model/Base.php : 302) PHP warning: in_array() expects at least 2 parameters, 1 given


        What can be the issue?

        Quote from: donquicky at Feb 24, 2017, 09:06 AM
        I assume you are using backticks in the &innerTpl option in your original snippet call?

        [[getPageTerms? &outerTpl=`` &innerTpl=othertpl &limit=`0` ]]
        • I discovered more people have this problem sad

          See https://github.com/craftsmancoding/taxonomies/issues/36 posted recently.
            Codeplaza Webdesign: for professional websites at low cost
          • Thank you for your replies. Looks like this issue won't be resolved anytime soon, so I will move on to Tagger.

            Quote from: donquicky at Feb 24, 2017, 12:55 PM
            I discovered more people have this problem sad

            See https://github.com/craftsmancoding/taxonomies/issues/36 posted recently.