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,
but the solution I found is this:Catchable fatal error: Object of class queryFactoryResult could not be converted to string in functions_general.php
in includes/functions/functions_general.php
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; } } else { if (($value != '') && (strtolower($value) != 'null') && (strlen(trim($value)) > 0)) { *** this line here 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.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; } } }
thank you
Sarah



