A fatal error is generated when donors click the download PDF link on sites that have the Fee Recovery add-on active and run on PHP 8+.
Steps to reproduce:
  • Install the Fee Recovery and PDF receipts add-ons on a server running PHP 8+
  • Make a test donation opting in to include the fee
  • Try to download the PDF using the link in the email receipt or through the WP backend.