<![CDATA[ Modparser error "You should not call uncached elements inside cached!" - My Forums]]> https://forums.modx.com/thread/?thread=103351 <![CDATA[Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556162
Any ideas?

[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`

Server and install details:

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]]>
stortzdesignteam Jan 04, 2018, 06:38 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556162
<![CDATA[Re: Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-559209
 [[$chunkname?value=`something`] ]


I just mentally wrote a check that would test the page and chunk content for these:

if (substr_count($content, '[[') !== substr_count($content, ']]') {
   /* Error */
}


If I find time, maybe I'll build it into SiteCheck.
]]>
BobRay Jun 24, 2018, 10:47 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-559209
<![CDATA[Re: Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-559201
I found a more trivial cause for this error, we had a chunk that an updater person had copied in wrong: [[$chunkname?value=`something`]

They'd left off the closing ]. That then tripped a huge modx error log, with all the rest of the page template html logged, and of course, nothing after that error printed in the html of the page.

Finding this is very difficult, I was very lucky because the rest of the template html contained a pointer in the html to which page it was, otherwise I would never have been able to find it.]]>
lizardx Jun 22, 2018, 08:14 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-559201
<![CDATA[Re: Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-558388
]]>
wshawn May 05, 2018, 03:50 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-558388
<![CDATA[Re: Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556185 stortzdesignteam Jan 05, 2018, 10:46 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556185 <![CDATA[Re: Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556175 stortzdesignteam Jan 05, 2018, 03:19 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556175 <![CDATA[Re: Modparser error "You should not call uncached elements inside cached!"]]> https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556167
https://bobsguides.com/blog.html/2013/08/19/create-an-rss-feed-for-your-articles-blog/

The &parents property could be set to any parent.]]>
BobRay Jan 04, 2018, 08:30 PM https://forums.modx.com/thread/103351/modparser-error-you-should-not-call-uncached-elements-inside-cached#dis-post-556167