Jump to content

Payment Reminders Cron Error


ctalkington

Recommended Posts

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

Link to comment
Share on other sites

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;
		}
Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...