I was accessing InvoiceNinja like I normally do and was looking over some of the old receipts I had in the Expenses tab. I noticed that when I would click ‘view’ or even ‘download’, nothing would happen. I opted to disable the firewall (since this is sitting on my internal network and a bigger firewall is also blocking it from the outside world so there’s no risk there) and accessed the server directly from my internal IP to it’s internal IP (bypassing the reverse proxy) and still got nothing, except I did get something about 30 seconds later. It was the PDF viewer but with no PDF in it and it was saying ‘Promise was rejected with a value of undefined’. This is confusing to me because I’ve done nothing really different since the day I uploaded the receipts and they were viewable, downloaded, etc at that time.
I have don’t have many logs because the larvel.log gets wiped every few days (a thing i setup since the log doesn’t seem to rotate, or at least I couldn’t get it too) but I can still look if need be.
All other PDFs are viewable. Invoices I sent, drafts, quotes, etc are all viewable and downloadable. There could be other places not viewable but I can’t think of any off the top of my head.
I have a picture of the error if need be.
I do have an update to this issue actually. The issue occurs when InvoiceNinja creates a window for the PDF file. This is regardless of where the PDF is opened in the tabs (Expenses, quotes, invoices)
It loads the PDFs when you open them inside the quote or inside the invoice itself but that’s because it doesn’t create a window.
I will get on that very soon. I’m sorry I haven’t replied or given any responses, I’ve been quite busy recently. I will enable debug tonight and start looking at the logs.