Cron Job and Recur invoice

HI,

i have two questions.

1. When i run my cron job i am getting following error.

A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI::$mdl_invoice_tax_rates

Filename: core/Model.php

Line Number: 77

Backtrace:

File: /home/domain/public_html/invoice/application/modules/invoices/models/Mdl_invoices.php
Line: 252
Function: __get

File: /home/domainname/public_html/invoice/application/modules/invoices/controllers/Cron.php
Line: 61
Function: copy_invoice

File: /home/domanname/public_html/invoice/index.php
Line: 327
Function: require_once

Fatal error: Call to a member function where() on null in /home/domainname/public_html/invoice/application/modules/invoices/models/Mdl_invoices.php on line 252
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/domainname/public_html/invoice/vendor/codeigniter/framework/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

A PHP Error was encountered

Severity: Error

Message: Call to a member function where() on null

Filename: models/Mdl_invoices.php

Line Number: 252

Backtrace:

  1. When run the cron job the recur invoice created but with empty record.

All your problems are answered in this topic
https://community2.invoiceplane.com/t/topic/5164

1 Like