Hi All,
Almost immediately out of my PHP league...
error description from Alan...
"Over the next 2 weeks or so you may well be adding information to the new AfSL website at www.afsl.org.uk/new
When doing this it is possible you may see an error message similar to the following one, highlighted in pink near the top of the page:
"warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sites/afsl.org.uk/public_html/new/modules/contemplate/contemplate.module(589) : eval()'d code on line 38."
And some pictures may not display."
This only occurs with CiviCRM active...
line 589 of contemplate.module is print eval('?>'. $tmplt); within the function
/**
* Copy of drupal_eval(), but extracts the node object so that variables are available to the template
*
* @param $tmplt
* the template code
* @param $obj
* an object to extract into the local variables
* @return
* executed template code
*/
function contemplate_eval($tmplt, $obj){
extract((array)$obj);
$node = $obj;
ob_start();
print eval('?>'. $tmplt);
$output = ob_get_contents();
ob_end_clean();
return $output;
}
If anyone can take the bull by the horns....


