Fatal Error with version 2.2.0
-
I had this code working fine to generate a PDF.
User’s would click a link such as
https://dev.catonline.tv/my-profile/certificate/?pdf=5003
and the PDF would be generated. Now a PHO FATAL ERROR is generated with this in the error_log[11-Nov-2025 04:27:16 UTC] PHP Fatal error: Uncaught Exception: Post not found or not published: 5003 in /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/ContextManager.php:67
Stack trace: 0 /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/ContextManager.php(54): Dinamiko\DKPDF\PDF\ContextManager->setupPostContext() 1 /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/Generator.php(36): Dinamiko\DKPDF\PDF\ContextManager->setupContext() 2 /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/PDFModule.php(35): Dinamiko\DKPDF\PDF\Generator->handle_pdf_request() 3 /home/catonlin/dev.catonline.tv/wp-includes/class-wp-hook.php(324): Dinamiko\DKPDF\PDF\PDFModule->Dinamiko\DKPDF\PDF{closure}() 4 /home/catonlin/dev.catonline.tv/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/catonlin/dev.catonline.tv/wp-includes/plugin.php(565): WP_Hook->do_action() 6 /home/catonlin/dev.catonline.tv/wp-includes/class-wp.php(835): do_action_ref_array() 7 /home/catonlin/dev.catonline.tv/wp-includes/functions.php(1342): WP->main() 8 /home/catonlin/dev.catonline.tv/wp-blog-header.php(16): wp() 9 /home/catonlin/dev.catonline.tv/index.php(17): require(‘/home/catonlin/…’) 10 {main}thrown in /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/ContextManager.php on line 67
[11-Nov-2025 04:27:19 UTC] PHP Fatal error: Uncaught Exception: Post not found or not published: 5003 in /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/ContextManager.php:67
Stack trace: 0 /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/ContextManager.php(54): Dinamiko\DKPDF\PDF\ContextManager->setupPostContext() 1 /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/Generator.php(36): Dinamiko\DKPDF\PDF\ContextManager->setupContext() 2 /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/PDFModule.php(35): Dinamiko\DKPDF\PDF\Generator->handle_pdf_request() 3 /home/catonlin/dev.catonline.tv/wp-includes/class-wp-hook.php(324): Dinamiko\DKPDF\PDF\PDFModule->Dinamiko\DKPDF\PDF{closure}() 4 /home/catonlin/dev.catonline.tv/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/catonlin/dev.catonline.tv/wp-includes/plugin.php(565): WP_Hook->do_action() 6 /home/catonlin/dev.catonline.tv/wp-includes/class-wp.php(835): do_action_ref_array() 7 /home/catonlin/dev.catonline.tv/wp-includes/functions.php(1342): WP->main() 8 /home/catonlin/dev.catonline.tv/wp-blog-header.php(16): wp() 9 /home/catonlin/dev.catonline.tv/index.php(17): require(‘/home/catonlin/…’) 10 {main}thrown in /home/catonlin/dev.catonline.tv/wp-content/plugins/dk-pdf220/modules/PDF/ContextManager.php on line 67
Please help!
If I revert to version 2.0.2 it works fineTania
You must be logged in to reply to this topic.