Title: developerincredible's Replies | WordPress.org

---

# developerincredible

  [  ](https://wordpress.org/support/users/developerincredible/)

 *   [Profile](https://wordpress.org/support/users/developerincredible/)
 *   [Topics Started](https://wordpress.org/support/users/developerincredible/topics/)
 *   [Replies Created](https://wordpress.org/support/users/developerincredible/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/developerincredible/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/developerincredible/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/developerincredible/engagements/)
 *   [Favorites](https://wordpress.org/support/users/developerincredible/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Generator for WordPress] Getting Fatal Error](https://wordpress.org/support/topic/getting-fatal-error-38/)
 *  Thread Starter [developerincredible](https://wordpress.org/support/users/developerincredible/)
 * (@developerincredible)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/getting-fatal-error-38/#post-17882543)
 * When I print a PDF, `the pdf-generator-for-wp-admin-template1.php` file template
   is rendered. While rendering the template, the `the_title` filter hook runs. 
   Additionally, other plugins that use the `the_title` filter hook in their constructor
   also run. Due to a few arguments passed in your code, it results in a fatal error.
 *     ```wp-block-code
       Fatal error: Uncaught ArgumentCountError: Too few arguments to function PrestoPlayer\Services\VideoPostType::filterVideoTitle(), 1 passed in /home3/idevsoos/repositories/help-primexm/wp-includes/class-wp-hook.php on line 310 and exactly 2 expected in /home3/idevsoos/repositories/help-primexm/wp-content/plugins/presto-player/inc/Services/VideoPostType.php:689 Stack trace: #0 /home3/idevsoos/repositories/help-primexm/wp-includes/class-wp-hook.php(310): PrestoPlayer\Services\VideoPostType->filterVideoTitle('Modules') #1 /home3/idevsoos/repositories/help-primexm/wp-includes/plugin.php(205): WP_Hook->apply_filters('Modules', Array) #2 /home3/idevsoos/repositories/help-primexm/wp-content/plugins/pdf-generator-for-wp/admin/partials/pdf_templates/pdf-generator-for-wp-admin-template1.php(382): apply_filters('the_title', 'Modules') #3 /home3/idevsoos/repositories/help-primexm/wp-content/plugins/pdf-generator-for-wp/common/class-pdf-generator-for-wp-common.php(215): return_ob_html('33073', '') #4 /home3/idevsoos/repositories/help-primexm/wp-content/plugins/pdf-generator-for-wp/common/class-pdf-generator-for-wp-common.php(121): Pdf_Generator_For_Wp_Common->pgfw_generate_pdf_from_library('33073', 'open_window') #5 /home3/idevsoos/repositories/help-primexm/wp-content/plugins/pdf-generator-for-wp/common/class-pdf-generator-for-wp-common.php(101): Pdf_Generator_For_Wp_Common->pgfw_generate_pdf('33073') #6 /home3/idevsoos/repositories/help-primexm/wp-includes/class-wp-hook.php(310): Pdf_Generator_For_Wp_Common->pgfw_generate_pdf_link_catching_user('') #7 /home3/idevsoos/repositories/help-primexm/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #8 /home3/idevsoos/repositories/help-primexm/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home3/idevsoos/repositories/help-primexm/wp-settings.php(632): do_action('init') #10 /home3/idevsoos/repositories/help-primexm/wp-config.php(99): require_once('/home3/idevsoos...') #11 /home3/idevsoos/repositories/help-primexm/wp-load.php(50): require_once('/home3/idevsoos...') #12 /home3/idevsoos/repositories/help-primexm/wp-blog-header.php(13): require_once('/home3/idevsoos...') #13 /home3/idevsoos/repositories/help-primexm/index.php(17): require('/home3/idevsoos...') #14 {main} thrown in /home3/idevsoos/repositories/help-primexm/wp-content/plugins/presto-player/inc/Services/VideoPostType.php on line 689
       ```
   
    -  This reply was modified 2 years, 1 month ago by [developerincredible](https://wordpress.org/support/users/developerincredible/).
    -  This reply was modified 2 years, 1 month ago by [developerincredible](https://wordpress.org/support/users/developerincredible/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Generator for WordPress] Getting Fatal Error](https://wordpress.org/support/topic/getting-fatal-error-38/)
 *  Thread Starter [developerincredible](https://wordpress.org/support/users/developerincredible/)
 * (@developerincredible)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/getting-fatal-error-38/#post-17880108)
 * Plugin code:
 *     ```wp-block-code
       $html .= '<div class="pgfw-pdf-body-title">	' . do_shortcode( str_replace( '[WORDPRESS_PDF]', '', apply_filters( 'the_title', $post->post_title ) ) ) . '</div>';
       ```
   
 * Change code:
 *     ```wp-block-code
       $html .= '<div class="pgfw-pdf-body-title">	' . do_shortcode( str_replace( '[WORDPRESS_PDF]', '', apply_filters('the_title', $post->post_title , $post->ID) ) ) . '</div>';
       ```
   
 * In 382 line and file path : `pdf-generator-for-wp/admin/partials/pdf_templates/
   pdf-generator-for-wp-admin-template1.php`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Generator for WordPress] Getting Fatal Error](https://wordpress.org/support/topic/getting-fatal-error-38/)
 *  Thread Starter [developerincredible](https://wordpress.org/support/users/developerincredible/)
 * (@developerincredible)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/getting-fatal-error-38/#post-17877540)
 * Thanks for the quick response. Shouldn’t we release new plugin version with above
   fix?
   If I am going to do the fix on plugin files, then if we update they will
   be lost again.

Viewing 3 replies - 1 through 3 (of 3 total)