Cumputed field returns error

suddenly my computed extra fields are giving me error as below:

Bad string syntax to evaluate (found call of a function or method without using direct name): ((($reloadedobj = new Product($db)) && ($reloadedobj->fetchNoCompute($objectoffield->fk_product) > 0)) ? floor($objectoffield->qty / $reloadedobj->array_options[‘options_pcsperbag’]) : ‘0’)

They used to work but not sure why suddenly they are giving me this error message.