ctalkington Posted September 30, 2015 Report Posted September 30, 2015 I received a cron error when payment reminders attempted to send. PHP Fatal error: Call to a member function deliverInvoices() on a non-object in /app/controllers/cron.php on line 858 I've manually patched this by placing this at 811: if (!isset($this->InvoiceDelivery)) { $this->components(array("InvoiceDelivery")); } Blesta 3.6.0-b1 PHP 5.6.13 ariq01 and Blesta Addons 2
Michael Posted October 1, 2015 Report Posted October 1, 2015 I received a cron error when payment reminders attempted to send. PHP Fatal error: Call to a member function deliverInvoices() on a non-object in /app/controllers/cron.php on line 858 I've manually patched this by placing this at 811: if (!isset($this->InvoiceDelivery)) { $this->components(array("InvoiceDelivery")); } Blesta 3.6.0-b1 PHP 5.6.13 So it shows this mate? private function sendPaymentNotice($action, stdClass $client, stdClass $contact, stdClass $invoice, $autodebit_account=null) { if (!isset($this->Emails)) $this->uses(array("Emails")); // Determine the email template to send if (!isset($this->InvoiceDelivery)) { $this->components(array("InvoiceDelivery")); } $email_group_action = null; switch ($action) { case "notice1": $email_group_action = "invoice_notice_first"; break; case "notice2": $email_group_action = "invoice_notice_second"; break; case "notice3": $email_group_action = "invoice_notice_third"; break; }
Tyson Posted October 1, 2015 Report Posted October 1, 2015 So it shows this mate? private function sendPaymentNotice($action, stdClass $client, stdClass $contact, stdClass $invoice, $autodebit_account=null) { if (!isset($this->Emails)) $this->uses(array("Emails")); // Determine the email template to send if (!isset($this->InvoiceDelivery)) { $this->components(array("InvoiceDelivery")); } $email_group_action = null; switch ($action) { case "notice1": $email_group_action = "invoice_notice_first"; break; case "notice2": $email_group_action = "invoice_notice_second"; break; case "notice3": $email_group_action = "invoice_notice_third"; break; } That would work. Michael 1
Recommended Posts