Just to add to the above report, I also get the same error, same file, for line 655.
I’m not sure how to fix this. All 4 variables are numbers (or the code wouldn’t work). It’s possible the we need to set each of them to zero so PHP thinks they have a numeric value.
But I’m clutching at straws here.
I don’t have a clue either, but I know that his is a very common error for PHP 7.1 (for many themes and plugins). If you Google the error you’ll find many reports.
One suggestion on how to fix is by prefixing the render call with an @ (Suggested at https://github.com/dompdf/dompdf/issues/1323) I know that worked for a different plugin on the site with a similar issue, but I don’t know if that would work in all cases.
I rolled back to PHP 7.0 on the site where I am reporting it, so no ongoing issue.
I just wanted to report it because going forward, you can probably expect more widespread adoption of PHP 7.1 — and I am just letting developers know when I spot an issue that doesn’t seem to be reported previously. So you probably will want to test everything on PHP 7.1 going forward (as well as PHP 7.0 and PHP 5.6)
I’ve been a web developer for 21 years… so I definitely understand the frustrations when platform and framework upgrades mess up your coding. You work for hours upon hours to get something working correctly, and then the powers that be come along and decide to deprecate some bit of code you are relying on.