Active
Project:
Commerce Maksuturva
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2012 at 07:50 UTC
Updated:
6 Sep 2012 at 07:50 UTC
When hash calculation fails in commerce_maksuturva_check_payment() there is an invalid call for watchdog where third parameter should be an array of variables but there is watchdog severity constant given.
// Compare hash. If not valid, log the error and stop here.
if($response_xml->pmtq_hash != $hash) {
watchdog('commerce_maksuturva', 'Payment status check failed. Hash mismatch.', WATCHDOG_WARNING);
return;
}
The call itself doesn't fail but when you try to read watchdog entires from Drupal UI, you'll get an error:
Recoverable fatal error: Argument 2 passed to t() must be an array, integer given, called in .../modules/dblog/dblog.admin.inc on line 265 and defined in function t() (row 1478 in file .../includes/bootstrap.inc).