Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4370

Invoice cache sometimes does not include a JSON file

    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}

        Activity

        admin Paul Phillips created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Sprint 5.2.0 Sprint 2 [ 135 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 6 hours, 48 minutes [ 24480 ]
        Worklog Id 15119 [ 15119 ]
        abdy Abdy Franco made changes -
        Status In Review [ 5 ] Closed [ 6 ]
        abdy Abdy Franco made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        abdy Abdy Franco made changes -
        Status Reopened [ 4 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jul/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 6 hours, 48 minutes
              6h 48m

                Agile