Warning: imagepng(): Invalid 2nd parameter, it must a filename or a stream in /srv/users/serverpilot/apps/amiin/public/application/actions/public/book-pdf.php on line 112

Fatal error: Uncaught Exception: FPDF error: Image file name is empty in /srv/users/serverpilot/apps/amiin/public/application/libraries/fpdf/fpdf.php:277 Stack trace: #0 /srv/users/serverpilot/apps/amiin/public/application/libraries/fpdf/fpdf.php(874): FPDF->Error('Image file name...') #1 /srv/users/serverpilot/apps/amiin/public/application/actions/public/book-pdf.php(132): FPDF->Image(false, NULL, NULL, NULL, NULL, 'PNG') #2 /srv/users/serverpilot/apps/amiin/public/application/core/loader.php(67): require('/srv/users/serv...') #3 /srv/users/serverpilot/apps/amiin/public/index.php(11): require('/srv/users/serv...') #4 {main} thrown in /srv/users/serverpilot/apps/amiin/public/application/libraries/fpdf/fpdf.php on line 277