Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.1.0
-
Fix Version/s: 5.1.1
-
Component/s: Staff Interface
-
Labels:None
Description
When the cron (both automatically and by clicking the Run Cron Now button) generates an invoice for email delivery for the first time, an invoice PDF is written to cache but not a JSON file. A JSON file & PDF are written when clicking the "View" link to generate an invoice for the first time in the admin UI.
Invoice cache settings are set to JSON + PDF.
When the cron generates the invoice, the following is written to the log:
[2021-07-06T20:05:03.720141+00:00] general.NOTICE: E_NOTICE: Undefined index: temp_dir
{"code":8,"message":"Undefined index: temp_dir","file":"/home/user/public_html/510/components/invoice_delivery/invoice_delivery.php","line":90}