When I view the recurring invoices url (/invoices/cron/recur/9jGv0KMkP0HlsxCG), I should be getting a blank screen, but I don’t; I get the following errors.
1ST ERROR
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: models/mdl_invoice_groups.php
Line Number: 65
2ND ERROR
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: models/mdl_invoice_groups.php
Line Number: 66
3RD ERROR
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: models/mdl_invoice_groups.php
Line Number: 67
A Database Error Occurred
Error Number: 1048
Column ‘invoice_number’ cannot be null
INSERT INTO
ip_invoices
(client_id
,invoice_date_created
,invoice_date_due
,invoice_group_id
,user_id
,invoice_number
,invoice_url_key
,invoice_terms
,invoice_date_modified
) VALUES (‘20’, ‘2015-03-21’, ‘2015-04-20’, ‘0’, ‘1’, NULL, ‘AwQB9ZhM2w39qQl’, ‘0’, ‘2015-04-08 21:14:16’)
Filename: /home//public_html/****.pickle-it.co.uk/core/MY_Model.php
Line Number: 208
With regards to the database error; if I reload the page the invoice_url_key
, invoice_date_modified
values change.
Please help me fix this.