Only variables should be passed by reference (v2022)

/var/www/html/src/DbField.php(907): Only variables should be passed by referenceI got this error when exporting from one page i particular.
Seems to be relating to creation of temp image.The image on the page was quite large, 500px x 500px (max) but thats still within the parameters in config.php:

$CONFIG["PDF_MAX_IMAGE_WIDTH"] = 650; // Make sure image width not larger than page width or "infinite table loop" error
$CONFIG["PDF_MAX_IMAGE_HEIGHT"] = 900; // Make sure image height not larger than page height or "infinite table loop" error

I resized the image to 100px in field settings, the error went away the pdf was exported and the image shown.The error message given doesn’t seem to reflect the actual problem.
For me its no big deal, because I didn’t want the image so large, but others may hit a similar issue.
I should also add that I have image paths encrypted, so maybe that plays into it somehow

What is source code near line 907 in your DbField.php?

return TempImage(file_get_contents($imagefn)); // Use global upload path to make sure the path is in dompdf's "chroot"

It seems that there is no variable passed by reference. You better enable Debug and see the stack trace.