- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020
11:17 AM
05-14-2020
11:17 AM
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 ?
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2020
03:11 AM
05-15-2020
03:11 AM
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/
https://www.manishmittal.com/