Hey!
I made a few changes to my PDF design (I tried to replace <div id="client-details"></div> with custom fields). Looks like I made a mistake, now PDFs don’t work anymore. I always get Error - Failed to load PDF document, even after undoing all my changes, saving them and several reloads.
When creating a new invoice I get this error: platformException(error, Promise was rejected with a value of 'undefined0., null, null)
I can’t see anything related to this in the logs, the latest entries are successfully generated PDFs before my changes:
David, how are you?..can you investigate this issue…it is very common. I reported similar issue 2 weeks ago and also in my other post 3 days ago. invoice generation is a hit or miss in v5.
hey @david, thanks for your reply!
unfortunately, that doesn’t help, as I get an error 500 after running php artisan optimize so looks like my system is completely broken…
btw, these are the error logs I got from my hoster:
I know, but I can manually choose another PHP version in the CLI.
Nonetheless, I think that’s not related to the PDF issue, as it used to work very well.
I was working on a quote, and suddenly I got this PDF error.
It even doesn’t work anymore after restoring a backup
and just to be clear: i have the same bug on two completely different systems on completely different shared hostings!
SO ALL THIS WHILE…PDF GENERATIO ISSUES could have been SOLVED simply by USING hosted_ninja instead of phantom??? …tears😢
I redraw my post…it still doesnt work…invoice generation is a big problem in this V5…its make the whole program UNUSEABLE…if you email an invoice to a customer, it wont go with the IMAGE ICON that they have to click to view invoice, that means your invoice cannot be view in the client portal. …i have to separate ninjas on 2 separate servers, one is only local and other is accessed with https. the local is a clone of the https…what i learnt is, from a fresh start, you can view any invoice but soon, it will start giving an error, then you jump to another company, you are able to view the invoices there and soon they also stop opening…then you can create a new invoice which will open fine even though the old invoice wont open in pdf…until after you try to reopen any of the old invoices then the issue will now affect the new one that was just opening fine…leaving you with no opening invoice at all…now, if i open the invoice for editing, then click save as if i changed anything, it will save then during the save progress, the sample invoice will now be generated at the bottom of the editing page…but if you try to view invoice in pdf, you will get a blank page or an error
it looks as if the pdf generator get tired and fed of generating invoices…using snappdf or hosted_ninja doesn’t fix anything.
also, can you re-add the close button the invoice editing page…there is only save and cancel. …maybe change cancel to close to get out of the page after saving the changes