This seems so crazyily basic I hesitate to post...
New install of Revo 2.5.0 on Virtualbox Ubuntu server 14.04 with LAMP. Install went fine, couple of gotchas with ownership/access permissions, no big deal...
Created a template and a couple of pages (static resources), all good, no problem at all.
Ok now for some snippets. Uh oh, complete blankness where the output should appear. Doink.
Let's try some sample code from
http://bobsguides.com/modx-snippets.html, just in case I'm just a bit rusty:
$output = "<p>This is the first line of my snippet.</p>";
$output .= "<p>This is the second line of my snippet.</p>";
$output .= "<p>This is the third line of my snippet.</p>";
return $output;
I called my snippet 'test', then called it from a new test page like this:
<p>from <a href="http://bobsguides.com/modx-snippets.html">Bob's Guides</a></p>
<p>[[!test]]</p>
But when I view my test page in a browser, the snippet is completely missing. Viewing the page source there are the <p></p> tags but nothing inside.
Tried the same test on a live website hosted online, everything works as expected.
In the error log I see
(ERROR @ /var/www/html/core/model/modx/modcachemanager.class.php : 515) Error caching script elements/modsnippet/4
Tried calling the snippet cached and uncached, same error. Doesn't mean a lot to me, and not much of any relevance thrown up by a google search.
So I am tempted to conclude that there is some kind of problem with my server or modx setup, but what could it be?