cancel
Showing results for 
Search instead for 
Did you mean: 

Error while printing PDF invoice for some customers but not for all

Error while printing PDF invoice for some customers but not for all

Hello all,

 

I've got an error with my M2 2.3.3, only for some customers, when I'm printing invoice :

 

[2020-05-14 18:07:50] main.ERROR: Warning: Invalid argument supplied for foreach() in /var/www/magento/vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php on line 710 [] []

Is someone has an idea from the root cause of this bug ?

 
 
1 REPLY 1

Re: Error while printing PDF invoice for some customers but not for all

Hello @jonas_solutions 

 

Please have look for arguments which you are passing in foreach it seems going null for few customers. Please validate if created pdf  have valid data to print a pdf. you can debug foreach arguments for those customers what you are getting to know the exact issues.

 

 

Manish Mittal
https://www.manishmittal.com/