I just upgraded from Revo 2.1.1 to 2.1.2. I use FormIt 1.7.0 to handle a contact form. Once I upgraded my contact form disappeared. I use &emailTo=`[[getResourceField? &id=`1` &field=`email` &processTV=`1`]]` inside my FormIt call to return an email address that’s in a TV on a config page.
This seems to resolve if I remove the getResourceField snippet call.
The MODx error log reads: [2011-07-08 14:17:41] (ERROR @ /index.php) [OnLoadWebDocument]1
I have several of these in place (and get the same result each with each upgrade) and was able to upgrade the Formit as well as the MODx individually. The issue only occurs when using MODx 2.1.2 and Formit 1.7.0 and getResourceField 1.0.
Almost forgot PHP 5.2.17, MySQL 5.0.90
-
☆ A M B ☆
- 3,141 Posts
I remember something with individual tag caching being fixed in 2.1.2..
If you put the getResourceField out of the call - does it output what you expect it to?
Yes, if I remove the getResourceField snippet call then everything behaves as it should.
-
☆ A M B ☆
- 3,141 Posts
And you’re seeing the actual email address you want to send to where you put the getResourceField call instead?
Now that I’m re-reading - your actual form goes blank? The entire page, or just the form? Is the form in a chunk, content, template? What’s your entire formit call?
Okay, I missed this one before. In my template, below the content call, I use the call: [[*id:is=`6`:then=`[[$contactForm]]`:else=``]]. This places the form just below the content area only on the appropriate page (ID #6). If I remove everything except [[$contactForm]], then the form is rendered appropriately.
-
☆ A M B ☆
- 3,141 Posts
Having FormIt caches will give you a lot of other issues, like not posting etc.
However I don’t see why your getResourceField shouldn’t be cached, as it’s unlikely that will change before the cache is cleared. And shouldn’t you be calling &isTV=`1` in there?
Did you check the error log?