Hi there,
I’m playing about with Jot (the default version with 0.9.5) for the first time and I seem to be getting an error just calling the snippet. I’ve got a chunk called inside my template which includes following Jot call:
[!Jot? &customfields=`name,email` &subscribe=`1` &pagination=`4` &badwords=`dotNet` &canmoderate=`Site Admins` !]
When viewing the page, I’m getting the error:
Fatal error: Call to undefined function: file_get_contents() in /home/httpd/vhosts/freeagentcentral.co.uk/httpdocs/assets/snippets/jot/includes/chunkie.class.inc.php on line 45
The offending section of the chunkie.class.inc.php file is
function getTemplate($tpl){
global $modx;
$template = "";
if ($modx->getChunk($tpl) != "") {
$template = $modx->getChunk($tpl);
} else if(is_file($tpl)) {
$template = file_get_contents($tpl);
} else {
$template = $tpl;
}
return $template;
}
I haven’t tried to customise the snippet in any way so I’m thinking the error my be a set up issue. Anyone got any ideas?
Thanks in advance.
EDIT: Using PHP Version 4.2.2 if that’s of any use?