We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53835
    • 20 Posts
    Have an RSS Feed that was setup from developer before me that is now broken after updating either the platform and/or pdoTools. The RSS uses pdoResources to pull in data from a MIGX configuration.

    Here's the resource code:
    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Ultimus Fund Solutions [[*pagetitle]]</title>
        <link>[[~[[*id]]? &scheme=`full`]]</link>
        <description>[[*introtext:cdata]]</description>
        <language>[[++cultureKey]]</language>
        <ttl>120</ttl>
        <atom:link href="[[~[[*id]]? &scheme=`full`]]" rel="self" type="application/rss+xml" />
    [[!pdoResources? &parents=`0` &tpl=`ufsRSSItemE` &class=`ufsEvents` &loadModels=`ufsevents` &where=`{"published:=":"1","eenddate:<=":"[[!now]]"}` &fastMode=`0` &showLog=`0` &sortby=`eenddate` &sortdir=`ASC`]]
    
    </channel>
    </rss>


    Here's the chunk:
    <item>
      <title>[[+etitle]]</title>
      <link>[[~26? &scheme=`full`]]</link>
      <description>
        [[+elocation = `[[+edesc:striptags:ellipsis=`600`]]`:cdata]]
      </description>
      <pubDate>[[+estartdate:strtotime:date=`%a, %d %b %Y %H:%M:%S %z`]]</pubDate>
      <guid isPermaLink="false>http://www.ultimusfundsolutions.com/events#event[[+id]]</guid>
      <dc:creator>Ultimus Admin</dc:creator>
    </item>


    Any help would be greatly appreciated.

    Specs:
    OS: CentOS Linux 7.4.1708 (Core)
    Apache web server
    PHP 7.0.24
    Database server:
    Server: Localhost via UNIX socket
    Server version: 5.5.56-MariaDB - MariaDB Server
    nginx/1.11.10

    Modx 2.6.1-pl
    packages installed:
    ActivationEmail
    Breadcrumbs
    ClassExtender
    Collections
    FileLister
    FirstChildRedirect
    FormIt
    Gallery
    getReqParam
    Login
    MIGX
    pdoTools
    Personalize
    Rampart
    ReCaptchaV2
    Redactor
    SimpleSearch
    StageCoach

      • 20413
      • 2,877 Posts
      Do you get any errors in the MODX error log and developer tools?
      Can you get the resources with this simpe call [[!pdoResources? &parents=`0`]]
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 4172
        • 5,888 Posts
        I don't know, why this should stop working, but you could try to replace pdoResources with migxLoopCollection like that:

        [[!migxLoopCollection? 
        &tpl=`ufsRSSItemE` 
        &classname=`ufsEvents` 
        &packageName=`ufsevents` 
        &where=`{"published:=":"1","eenddate:<=":"[[!now]]"}` 
        &sortConfig=`[{"sortby":"eenddate"}]`
        ]]



          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 53835
          • 20 Posts
          Quote from: mrhaw at Jan 06, 2018, 12:30 AM
          Do you get any errors in the MODX error log and developer tools?
          Can you get the resources with this simpe call [[!pdoResources? &parents=`0`]]

          So I was getting this:
          [2018-01-04 18:11:05] (ERROR @ /var/www/vhosts/ultimusfundsolutions.com/httpdocs/core/model/modx/modparser.class.php : 453) You should not call uncached elements inside cached!
          Outer tag: [[pdoResources? &parents=`0` &tpl=`ufsRSSItemE` &class=`ufsEvents` &loadModels=`ufsevents` &where=`{"published:=":"1","eenddate:<=":"[[!now]]"}` &fastMode=`0` &showLog=`0` &sortby=`eenddate` &sortdir=`ASC`]]
          Inner tag pdoResources? &parents=`0` &tpl=`ufsRSSItemE` &class=`ufsEvents` &loadModels=`ufsevents` &where=`{"published:=":"1","eenddate:<=":"[[!now]]"}` &fastMode=`0` &showLog=`0` &sortby=`eenddate` &sortdir=`ASC`
          But then I placed a bang in front of pdoResources and that resolved the error.

          I see today now the same error is back from a different chunk:
          [2018-01-06 02:59:22] (ERROR @ /var/www/vhosts/ultimusfundsolutions.com/httpdocs/core/model/modx/modparser.class.php : 453) You should not call uncached elements inside cached!
          Outer tag: [[pdoResources? &parents=`0` &tpl=`ufsEventsShortTpl` &class=`ufsEvents` &loadModels=`ufsevents` &where=`{"published:=":"1","eenddate:>=":"[[!now]]"}` &fastMode=`0` &showLog=`0` &sortby=`eenddate` &sortdir=`ASC` &limit=`2`]]
          Inner tag pdoResources? &parents=`0` &tpl=`ufsEventsShortTpl` &class=`ufsEvents` &loadModels=`ufsevents` &where=`{"published:=":"1","eenddate:>=":"[[!now]]"}` &fastMode=`0` &showLog=`0` &sortby=`eenddate` &sortdir=`ASC` &limit=`2`
          And I've now updated this one with a bang, which so far has resolved the error.

          But the feed still doesn't work.
          [ed. note: stortzdesignteam last edited this post 6 years, 2 months ago.]
            • 53835
            • 20 Posts
            Quote from: Bruno17 at Jan 06, 2018, 12:01 PM
            I don't know, why this should stop working, but you could try to replace pdoResources with migxLoopCollection like that:

            [[!migxLoopCollection? 
            &tpl=`ufsRSSItemE` 
            &classname=`ufsEvents` 
            &packageName=`ufsevents` 
            &where=`{"published:=":"1","eenddate:<=":"[[!now]]"}` 
            &sortConfig=`[{"sortby":"eenddate"}]`
            ]]




            I tried this, but still doesn't want to pull anything.
              • 20413
              • 2,877 Posts
              Quote from: mrhaw at Jan 06, 2018, 12:30 AM
              ...
              Can you get the resources with this simpe call [[!pdoResources? &parents=`0`]]
                @hawproductions | http://mrhaw.com/

                Infograph: MODX Advanced Install in 7 steps:
                http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                • 53835
                • 20 Posts
                Quote from: mrhaw at Jan 08, 2018, 04:56 PM
                Quote from: mrhaw at Jan 06, 2018, 12:30 AM
                ...
                Can you get the resources with this simpe call [[!pdoResources? &parents=`0`]]

                I guess I'm not clear as to where your asking me to call that. If I replace the current pdoResource call in the resource file with that, it's not going to know which model to load.

                Getting the actually data from the MIGX configuration model to display on a page is working, it's getting it to pull into the feed that is the issue.
                  • 20413
                  • 2,877 Posts
                  Sigh. You are using a snippet to load data from MODX Resources that has TV data added to them, if it stops working would it not be a good idea to see if you still can get the resources in a basic call?
                    @hawproductions | http://mrhaw.com/

                    Infograph: MODX Advanced Install in 7 steps:
                    http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                    Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                    http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                    • 53835
                    • 20 Posts
                    Quote from: mrhaw at Jan 08, 2018, 05:44 PM
                    Sigh. You are using a snippet to load data from MODX Resources that has TV data added to them, if it stops working would it not be a good idea to see if you still can get the resources in a basic call?

                    I guess I thought the community here would be patient and respectful.

                    I placed the call in a resource and received this output on the page, I expected there to be more:
                    Array
                    (
                        [id] => 171
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => simple call
                        [longtitle] => 
                        [description] => 
                        [alias] => simple-call
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 0
                        [isfolder] => 0
                        [introtext] => 
                        [richtext] => 0
                        [template] => 1
                        [menuindex] => 19
                        [searchable] => 0
                        [cacheable] => 0
                        [createdby] => 1
                        [createdon] => 1515435606
                        [editedby] => 1
                        [editedon] => 1515436807
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1515435600
                        [publishedby] => 1
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => simple-call
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 1
                        [link] => 
                    )
                    Array
                    (
                        [id] => 166
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => TD Ameritrade National LINC Conference
                        [longtitle] => Orlando, FL
                        [description] => 
                        [alias] => td-ameritrade-national-linc-conference
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 86
                        [isfolder] => 0
                        [introtext] => 
                        [richtext] => 1
                        [template] => 12
                        [menuindex] => 42
                        [searchable] => 0
                        [cacheable] => 1
                        [createdby] => 88
                        [createdon] => 1512055075
                        [editedby] => 0
                        [editedon] => 0
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1512055075
                        [publishedby] => 88
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => td-ameritrade-national-linc-conference
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 0
                        [properties] => 
                        [idx] => 2
                        [link] => 
                    )
                    Array
                    (
                        [id] => 165
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => LPL Financial Focus National Sales and Education Conference
                        [longtitle] => Boston, MA
                        [description] => 
                        [alias] => lpl-financial-focus-national-sales-and-education-conference
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 86
                        [isfolder] => 0
                        [introtext] => 
                        [richtext] => 1
                        [template] => 12
                        [menuindex] => 41
                        [searchable] => 0
                        [cacheable] => 1
                        [createdby] => 88
                        [createdon] => 1512054741
                        [editedby] => 0
                        [editedon] => 0
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1512054741
                        [publishedby] => 88
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => lpl-financial-focus-national-sales-and-education-conference
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 0
                        [properties] => 
                        [idx] => 3
                        [link] => 
                    )
                    Array
                    (
                        [id] => 146
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Regulatory
                        [longtitle] => 
                        [description] => 
                        [alias] => regulatory
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 139
                        [isfolder] => 1
                        [introtext] => 
                        [richtext] => 1
                        [template] => 25
                        [menuindex] => 4
                        [searchable] => 1
                        [cacheable] => 1
                        [createdby] => 1
                        [createdon] => 1499291366
                        [editedby] => 1
                        [editedon] => 1506029792
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1506029792
                        [publishedby] => 1
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => regulatory/
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 4
                        [link] => 
                    )
                    Array
                    (
                        [id] => 145
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Products
                        [longtitle] => 
                        [description] => 
                        [alias] => products
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 139
                        [isfolder] => 1
                        [introtext] => 
                        [richtext] => 1
                        [template] => 25
                        [menuindex] => 3
                        [searchable] => 1
                        [cacheable] => 1
                        [createdby] => 1
                        [createdon] => 1499291295
                        [editedby] => 1
                        [editedon] => 1506029785
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1506029785
                        [publishedby] => 1
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => products/
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 5
                        [link] => 
                    )
                    Array
                    (
                        [id] => 144
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Data
                        [longtitle] => 
                        [description] => 
                        [alias] => data
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 139
                        [isfolder] => 1
                        [introtext] => 
                        [richtext] => 1
                        [template] => 25
                        [menuindex] => 2
                        [searchable] => 1
                        [cacheable] => 1
                        [createdby] => 1
                        [createdon] => 1499291217
                        [editedby] => 1
                        [editedon] => 1506029777
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1506029777
                        [publishedby] => 1
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => data/
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 6
                        [link] => 
                    )
                    Array
                    (
                        [id] => 143
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Sales
                        [longtitle] => 
                        [description] => 
                        [alias] => sales
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 139
                        [isfolder] => 1
                        [introtext] => 
                        [richtext] => 1
                        [template] => 25
                        [menuindex] => 1
                        [searchable] => 1
                        [cacheable] => 1
                        [createdby] => 1
                        [createdon] => 1499291076
                        [editedby] => 1
                        [editedon] => 1506029768
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1506029768
                        [publishedby] => 1
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => sales/
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 7
                        [link] => 
                    )
                    Array
                    (
                        [id] => 142
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Marketing and PR
                        [longtitle] => 
                        [description] => 
                        [alias] => marketing-partners
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 139
                        [isfolder] => 1
                        [introtext] => 
                        [richtext] => 1
                        [template] => 25
                        [menuindex] => 0
                        [searchable] => 1
                        [cacheable] => 1
                        [createdby] => 1
                        [createdon] => 1498772677
                        [editedby] => 1
                        [editedon] => 1506029761
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1506029761
                        [publishedby] => 1
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => marketing-partners/
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 8
                        [link] => 
                    )
                    Array
                    (
                        [id] => 139
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Content
                        [longtitle] => 
                        [description] => 
                        [alias] => partner-directories-stage
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 65
                        [isfolder] => 1
                        [introtext] => 
                        [richtext] => 1
                        [template] => 25
                        [menuindex] => 5
                        [searchable] => 1
                        [cacheable] => 1
                        [createdby] => 2
                        [createdon] => 1494947152
                        [editedby] => 1
                        [editedon] => 1506029525
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1505944260
                        [publishedby] => 2
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 0
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => partner-directories-stage/
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 1
                        [properties] => 
                        [idx] => 9
                        [link] => 
                    )
                    Array
                    (
                        [id] => 148
                        [type] => document
                        [contentType] => text/html
                        [pagetitle] => Distribution Advantage Webinar - 3PMs
                        [longtitle] => 
                        [description] => 
                        [alias] => distribution-advantage-webinar-3pms
                        [link_attributes] => 
                        [published] => 1
                        [pub_date] => 0
                        [unpub_date] => 0
                        [parent] => 86
                        [isfolder] => 0
                        [introtext] => 
                        [richtext] => 1
                        [template] => 12
                        [menuindex] => 24
                        [searchable] => 0
                        [cacheable] => 1
                        [createdby] => 88
                        [createdon] => 1503667261
                        [editedby] => 88
                        [editedon] => 1514903155
                        [deleted] => 0
                        [deletedon] => 0
                        [deletedby] => 0
                        [publishedon] => 1503667260
                        [publishedby] => 88
                        [menutitle] => 
                        [donthit] => 0
                        [privateweb] => 0
                        [privatemgr] => 0
                        [content_dispo] => 0
                        [hidemenu] => 1
                        [class_key] => modDocument
                        [context_key] => web
                        [content_type] => 1
                        [uri] => distribution-advantage-webinar-3pms
                        [uri_override] => 0
                        [hide_children_in_tree] => 0
                        [show_in_tree] => 0
                        [properties] => 
                        [idx] => 10
                        [link] => 
                    )
                      • 20413
                      • 2,877 Posts
                      I don't mean to be disrespectful but you wanted to argue instead of providing an Y/N answer to the most basic troubleshooting suggestion there is.


                      [ed. note: mrhaw last edited this post 6 years, 2 months ago.]
                        @hawproductions | http://mrhaw.com/

                        Infograph: MODX Advanced Install in 7 steps:
                        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower