Hi All

Well its been a joy trying to figure out this error, but on looking at PHP 5.2 and the worldpay module I was getting these error messages,

Catchable fatal error: Object of class queryFactoryResult could not be converted to string in functions_general.php
but the solution I found is this:

in includes/functions/functions_general.php

Code:
  function zen_not_null($value) {
    if (is_array($value)) {
      if (sizeof($value) > 0) {
        return true;
      } else {
        return false;
      }
    } else {
      if (($value != '') && (strtolower($value) != 'null') &&
(strlen(trim($value)) > 0)) { *** this line here
        return true;
      } else {
        return false;
      }
    }
  }
replace the whole section of code around line 660 with this:

Code:
  function zen_not_null($value) {
    if (is_array($value)) {
      if (sizeof($value) > 0) {
        return true;
      } else {
        return false;
      }
    } elseif( is_a( $value, 'queryFactoryResult' ) ) {
      if (sizeof($value->result) > 0) {
        return true;
      } else {
        return false;
      }
    } else {
      if (($value != '') && (strtolower($value) != 'null') &&
(strlen(trim($value)) > 0)) {
        return true;
      } else {
        return false;
      }
    }
  }
Its finally resolved my issue ! not sure if it will resolve anyone elses but thought that it might help someone by posting it - I am almost 100% sure its only linked if you have Worldpay set up :) Use at own risk.

thank you
Sarah